I am also getting same error with FF 3.6 and driver version 2.16.1 is this
issue fixed or not?
I have tried with Selenium version 2.19 and this issue still reproduces.
Same here. Seeing in 2.19.0. running this code snippet:
for( String voucherId : resultSet ) {
try {
element = driver.findElement(By.xpath("//div[@title='"+voucherId+"']"));
assertEquals("Verify expired voucher id is on page.",
element.getText(), voucherId);
} catch( NoSuchElementException nsee ) {
fail("Failed to ...'"+voucherId+"' on the page.");
}
}
Using Firefox Browser 10.0.1 and WebDriver:
for( String voucherId : resultSet ) {
try {
element = driver.findElement(By.xpath("//div[@title='"+voucherId+"']"));
assertEquals("Verify expired voucher id is on page.",
element.getText(), voucherId);
} catch( NoSuchElementException nsee ) {
fail("Failed to ...'"+voucherId+"' on the page.");
}
}
Here the stack trace:
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating
with the remote browser. It may have died.
Build info: version: '2.19.0', revision: '15849', time: '2012-02-08
16:10:57'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
java.version: '1.6.0_30'
Driver info: driver.version: RemoteWebDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:436)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:443)
at
org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:318)
at
org.openqa.selenium.WebDriverCommandProcessor.stop(WebDriverCommandProcessor.java:110)
at com.thoughtworks.selenium.DefaultSelenium.stop(DefaultSelenium.java:139)
at com.eversave.tests.BaseTests.tearDown(BaseTests.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to
http://127.0.0.1:7055 refused
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at
org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:403)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:382)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:122)
at
org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:236)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:416)
... 28 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 38 more
Also happening to me with firefox 3.6 and hub version 2.19
We are seeing this time and again in our nightly execution too.
Browsers: Firefox 3.6, IE 8 and IE 9
Hello,
we've just updated to 2.20.0 and still experiencing the same problem.
With 2.12.0 everything was working fine.
Could not start a new session. Possible causes are invalid address of the
remote server or browser start-up failure. Build info: version: '2.20.0',
revision: '16008', time: '2012-02-27 19:03:59' System info:
os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.26-2-xen-amd64',
java.version: '1.6.0_23' Driver info: driver.version: RemoteWebDriver
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a
new session. Possible causes are invalid address of the remote server or
browser start-up failure.
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27
19:03:59'
System info: os.name: 'Linux', os.arch: 'amd64',
os.version: '2.6.26-2-xen-amd64', java.version: '1.6.0_23'
Driver info: driver.version: RemoteWebDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:435)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:139)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:102)
at
de.abas.eb.selenium.rule.ConfigureFirefox.loadGridDriver(ConfigureFirefox.java:54)
at
de.abas.eb.selenium.rule.ConfigureFirefox.before(ConfigureFirefox.java:33)
at de.abas.eb.selenium.rule.WithSelenium.before(WithSelenium.java:64)
at de.abas.eb.selenium.Selenium2TestBase.before(Selenium2TestBase.java:71)
Caused by: org.apache.http.ConnectionClosedException: Premature end of
Content-Length delimited message body (expected: 5767; received: 3769
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:197)
at
org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthInputStream.java:105)
at
org.apache.http.conn.BasicManagedEntity.streamClosed(BasicManagedEntity.java:152)
at
org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:237)
at
org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:186)
at org.apache.http.util.EntityUtils.consume(EntityUtils.java:67)
at
org.openqa.selenium.remote.HttpCommandExecutor$EntityWithEncoding.<init>(HttpCommandExecutor.java:399)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:287)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:415)
I also got the same error for my IE with selenium 2.18.0. But it was
because "Enable protected mode" was enabled for few of the zones under
Internet options - Security. I unchecked "Enable protected mode" for all
the zones and saved. Then, I could launch the browser successfully via grid.
I get the message: Exception in thread "main"
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating
with the remote browser. It may have died.
Could it be a problem with the proxy?
FirefoxDriver has not a method like setAutoProxy(proxy) like
HtmlUnitDriver... and when I change the FirefoxDriver to HtmlUnitDriver, I
get an error: Cannot make a static reference to the non-static method
setAutoProxy(String) from the type HtmlUnitDriver. And this error won't
dissapear!
How can I set a Proxy with the FirefoxDriver?
Greetings
Attachments:
Error.jpg 304 KB
Given I can reproduce this at will, as far as I'm concerned it happened
after the release of 2.11 and is reproducible in 2.12 through to 2.20 today.
Hypothesis: Is it possible that code is interacting with the remote
browser too fast? Especially in terms of retry or polling style wait-fors ?
The error message is a general error handler that simply
indicates "something" is wrong, which is illustrated by the fact that this
issue contains stacktraces from *all* the browsers, with and without grid.
The "good news" for all of the grid users is that this message will change
for 2.21, and there is a significant chance that you will be seeing a
different problem (the real one).
Since there are at least 5 distinct problems reported in this thread, this
issue is turning into an epic that will never be fixed. Please do not
report anything but ChromeDriver related problems further in this thread;
even though you are getting the same error message it is not the same
problem.
I would like to have someone confirm that it's still happening with the
latest release of chromedriver and chrome.
I will be very interested in trying that when 2.21.0 comes out. I had
always suspected it was a generic message that was hiding the real issue.