Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Grid not work with selenium server 2.19 #3366

Closed
lukeis opened this issue Mar 3, 2016 · 4 comments
Closed

Grid not work with selenium server 2.19 #3366

lukeis opened this issue Mar 3, 2016 · 4 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3366

Try to start test using Grid
1. start hub with: java -jar selenium-server-standalone-2.19.0.jar -role hub

2. start node on same machine with: java -jar selenium-serr-standalone-2.19.0.jar -role
node  -hub http://localhost:4444/grid/register

3. in app test launch driver for test:
driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), DesiredCapabilities.firefox());

What is the expected output?
Launch firefox browser and navigating to the given url

What do you see instead?
Got this error:
Exception in thread "Thread-1" 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.19.0', revision: '15849', time: '2012-02-08 16:12:19'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.38-13-generic', 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.startSession(RemoteWebDriver.java:139)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:102)
    ......................
Caused by: org.apache.http.ConnectionClosedException: Premature end of Content-Length
delimited message body (expected: 5359; received: 2543
    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:498)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:386)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:416)
    ... 8 more

Selenium version: selenium-server-standalone-2.19.0.jar, selenium-2.19.0.jar
OS: Linux Mint LXDE
Browser: Firefox
Browser version: 10
Java version: 
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)

Note:
-same code work ok using WebDriver or RemoteWebDriver without grid (connect directly
to selenium server)
-hub and node start without error
-hub console work

Reported by fratiman.vladut on 2012-02-11 20:21:40

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Fixed in r16032

Reported by kristian.rosenvold on 2012-02-28 17:16:45

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks!!! I will expect the new release.

Reported by fratiman.vladut on 2012-02-28 18:52:28

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Still not work.
See my post here:
https://groups.google.com/forum/?fromgroups#!topic/selenium-users/ZKuXrW1-III

Reported by fratiman.vladut on 2012-03-10 13:54:04

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:48

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant