24 |
import org.w3c.dom.Document; |
import org.w3c.dom.Document; |
25 |
import org.w3c.dom.Element; |
import org.w3c.dom.Element; |
26 |
|
|
27 |
import dk.thoerup.curcuitbreaker.CircuitBreakerException; |
import dk.thoerup.circuitbreaker.CircuitBreakerException; |
28 |
import dk.thoerup.traininfoservice.DBConnection; |
import dk.thoerup.traininfoservice.DBConnection; |
29 |
|
|
30 |
/** |
/** |
56 |
|
|
57 |
try { |
try { |
58 |
beans = fetcher.cachedLookupDepartures(station); |
beans = fetcher.cachedLookupDepartures(station); |
59 |
} catch (java.net.SocketTimeoutException ste) { |
} catch (java.io.IOException ioe) { |
60 |
logger.warning("Read timed out, station="+station); |
logger.warning("Read failed, station="+station + ". " + ioe.getMessage() ); |
61 |
resp.sendError(500); |
resp.sendError(500); |
62 |
return; |
return; |
63 |
} catch (CircuitBreakerException cbe) { |
} catch (CircuitBreakerException cbe) { |