Error communicating with remote browser

77 views
Skip to first unread message

Greg Martz

unread,
Mar 14, 2017, 2:04:57 PM3/14/17
to seleniu...@googlegroups.com
Selenium 2.53.1, Firefox 42.  Things used to work no problems.  Now I'm getting random "UnreachableBrowser Exception: Error communicating with the remote browser.  It may have died."

Anyone have any ideas at all?  This happen randomly when running the suite.  Here is the error trace:

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'L7EIS-DEV504', ip: '172.21.229.107', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: RemoteWebDriver
Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=42.0, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 392b6271-d8be-40cb-b59f-95749e748b3a
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
at org.openqa.selenium.remote.RemoteWebElement.isSelected(RemoteWebElement.java:159)
at org.openqa.selenium.support.ui.Select.getFirstSelectedOption(Select.java:95)
at main.java.Utility.selectDropdownByVisibleText(Utility.java:1424)
at test.java.InitiateBuyPlan.testInitiateBuyPlan(InitiateBuyPlan.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)
Caused by: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 104; received: 0
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180)
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:200)
at org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthInputStream.java:103)
at org.apache.http.impl.execchain.ResponseEntityProxy.streamClosed(ResponseEntityProxy.java:128)
at org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:228)
at org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:174)
at org.apache.http.util.EntityUtils.consume(EntityUtils.java:88)
at org.openqa.selenium.remote.internal.ApacheHttpClient.createResponse(ApacheHttpClient.java:113)
at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:94)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:160)
at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:380)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
... 30 more


Thanks!
Greg

Kundana Devi

unread,
Mar 15, 2017, 4:42:51 AM3/15/17
to seleniu...@googlegroups.com
Hi Greg,

According to me,it usually comes when all the nodes are occupied and also all the browsers in the nodes.


 Regards,
Kundana

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0e0b42e5-2538-4208-9c10-9beb91bc18e6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Greg Martz

unread,
Mar 15, 2017, 9:01:22 AM3/15/17
to seleniu...@googlegroups.com
I'm not using nodes however.  This is running locally.  And happening for everyone who is running the automation.


Thanks!
Greg

Greg Martz
Test Analyst III - Sr. Software Automation Analyst  |  (425)416-5039  |  gma...@Costco.com 

"Confidentiality Notice:  This e-mail message, including any attachments, is for the sole use to the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message."


To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Kundana Devi

unread,
Mar 15, 2017, 9:38:07 AM3/15/17
to seleniu...@googlegroups.com
Hi Greg, 
Usually remote browser concept comes in grid. 

Thanks, 
Kundana

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Greg Martz

unread,
Mar 15, 2017, 9:43:57 AM3/15/17
to seleniu...@googlegroups.com
I know, but I'm not using remote browser.  


Thanks!
Greg

On Wed, Mar 15, 2017 at 6:37 AM, Kundana Devi <kunda...@gmail.com> wrote:
Hi Greg, 
Usually remote browser concept comes in grid. 

Thanks, 
Kundana
On Mar 15, 2017 18:31, "Greg Martz" <gma...@costco.com> wrote:
I'm not using nodes however.  This is running locally.  And happening for everyone who is running the automation.


Thanks!
Greg



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Billy @ FBA

unread,
Mar 15, 2017, 1:20:05 PM3/15/17
to Selenium Users

Not sure if this is related, but here is what I am seeing in Visual Studio on Windows 7 (see screenshots).

Specs:
java -Xrs -jar selenium-server-standalone-3.3.1.jar -role hub -port 4747
java -Xrs -Dwebdriver.ie.driver="C://WebDriverServer//IEDriverServer_x64_3.3.0.exe" -jar selenium-server-standalone-3.3.1.jar -role node -hub http://localhost:4747/grid/register -browser "browserName=internet explorer,version=latest,maxInstances=1,seleniumProtocol=WebDriver"

Context:
I am using c sharp console app and a grid hub - grid node (1 IE instance) setup to navigate to 2 different urls.
I used breakpoints to show that when the browser is first launched, it seems to behave normally.
Screenshot_3.png


Then once I send it my first command (navigate to url 1) , it behaves strangely and throws errors from which it does not recover.
Screenshot_4.png


It stops running any commands. See the node stacktrace.


I hope you guys can help me figure out why!

Cheers!
Screenshot_4.png
Screenshot_3.png
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3
Reply all
Reply to author
Forward
0 new messages