I shut down the depot, without shutting down all the containers that had agents in them, and there was a constant stream of java exceptions (one for every ping, so one a second)
This is probably part of a larger story about considering what happens if communications between an agent and the depot get interrupted, how long till the depot gives up on a container and reassigns to another one, but in the meantime these messages do get a bit annoying.
–
2008-12-05 11:51:54,464 [WARN] Caught exception while polling Agent: (AgentPoll
er)
com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Con
nection refused: connect
at com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler.h
andle(URLConnectionClientHandler.java:193)
at org.apache.servicemix.grid.agent.AuthClientFilter.handle(AuthClientFi
lter.java:26)
at com.sun.jersey.api.client.Client.handle(Client.java:404)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:462)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:64)
at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:35
6)
at org.apache.servicemix.grid.agent.RestTemplate.poll(RestTemplate.java:
69)
at org.apache.servicemix.grid.agent.RestGridClient.pollAgentHistory(Rest
GridClient.java:159)
at org.apache.servicemix.grid.agent.InstallerAgent.call(InstallerAgent.j
ava:141)
at org.apache.servicemix.grid.agent.AgentPoller.agentPoll(AgentPoller.ja
va:64)
at org.apache.servicemix.grid.agent.AgentPoller$1.run(AgentPoller.java:5
7)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:813)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:765)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:690)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:934)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367
)
at com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler._
invoke(URLConnectionClientHandler.java:233)
at com.sun.jersey.impl.client.urlconnection.URLConnectionClientHandler.h
andle(URLConnectionClientHandler.java:191)
... 12 more
2008-12-05 11:51:55,555 [WARN] Caught exception while polling Agent: (AgentPoll
er)