Occasional "Connection reset" while running tests in parallel

25 views
Skip to first unread message

Wade Catron

unread,
Oct 22, 2008, 9:05:43 PM10/22/08
to selenium-users...@googlegroups.com
I'm using Selenium Grid 1.0, and once in a while when I have several tests running, one or more will fail with the following Selenium error:

{font:style=font-family: andale mono,times;}{font:style=font-size: 8pt;}[exec] SeleniumCommandError: <html> \\ [exec] <head> \\ [exec] <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> \\ [exec] <title>Error 500 </title> \\ [exec] </head> \\ [exec] <body><h2>HTTP ERROR: 500</h2><pre>Connection reset</pre> \\ [exec] <p>RequestURI=/selenium-server/driver/</p><h3>Caused by:</h3><pre>java.net.SocketException: Connection reset \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at java.net.SocketInputStream.read(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at java.io.BufferedInputStream.fill(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at java.io.BufferedInputStream.read(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.HttpClient.request(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.HttpClient.post(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.hub.remotecontrol.RemoteControlProxy.forward(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.hub.remotecontrol.commands.SeleneseCommand.execute(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.hub.HubServlet.forward(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.hub.HubServlet.process(Unknown Source) \\ [exec]&nbsp;&nbsp;&nbsp;&nbsp; at com.thoughtworks.selenium.grid.hub.HubServlet.doGet(Unknown Source{font}){font}

This seems to correspond with an interesting message in the Grid Hub console:
\\ {font:style=font-family: andale mono,times; font-size: 8pt;}INFO: Processing 'sessionId => "8084fd509c964dd2a7be70f3989930e1", cmd => "testComplete"' \\ Oct 22, 2008 5:04:16 PM org.apache.commons.httpclient.SimpleHttpConnectionManager getConnectionWithTimeout \\ WARNING: SimpleHttpConnectionManager being used incorrectly.&nbsp; Be sure that HttpMethod.releaseConnection() is always called and that only one thread and/or method is using this connection manager at a time. \\ \\{font}
Has anyone seen anything similar?&nbsp; Any ideas regarding what might be causing it?

While I haven't completely ruled out intermittent network connectivity issues as a cause, I'm fairly confident that it's not a network related problem.

Thanks.

Reply all
Reply to author
Forward
0 new messages