FAQ
I started using grid 2 recently am having some issues getting the browsers
to launch in my vm. Here is my setup:

hub is run on my mac (if i register nodes on the mac, tests run fine)
node is running on a vista virtualbox vm

I start the node by running:
java -jar selenium-server-standalone-2.22.0.jar -role node -hub
http://10.10.1.4:4444/grid/register

In my script, I try to launch the browser by doing:

URL server = new URL("http://"+hubserver+":4444/wd/hub");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setBrowserName("firefox");
Browser = new RemoteWebDriver(server, capabilities);

with hubserver being the ip to the hub.

When I try to run the test, this is the error that shows up:

org.openqa.selenium.WebDriverException: Error forwarding the new session
Error forwarding the request Connection to http://10.0.2.15:5555 refused

Command duration or timeout: 74.91 seconds

Build info: version: '2.22.0', revision: '17049', time: '2012-05-29
13:32:05'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8',
java.version: '1.6.0_31'

Driver info: driver.version: RemoteWebDriver

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at org.openqa.selenium.remote.ErrorHandler.createThrowable(
ErrorHandler.java:188)

at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(
ErrorHandler.java:145)

at org.openqa.selenium.remote.RemoteWebDriver.execute(
RemoteWebDriver.java:458)

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 com.kongregate.browser_tests.FirefoxGuestGameLoads.DriverSetup(
FirefoxGuestGameLoads.java:62)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:80)

at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551)

at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

at org.testng.internal.Invoker.invokeMethod(Invoker.java:640)

at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)

at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)

at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)

at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

at org.testng.TestRunner.privateRun(TestRunner.java:768)

at org.testng.TestRunner.run(TestRunner.java:617)

at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)

at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

at org.testng.SuiteRunner.run(SuiteRunner.java:240)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)

at org.testng.TestNG.run(TestNG.java:1022)

at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)

Caused by: org.openqa.grid.common.exception.GridException: Error forwarding
the new session Error forwarding the request Connection to
http://10.0.2.15:5555 refused

at org.openqa.grid.web.servlet.handler.RequestHandler.process(
RequestHandler.java:111)

at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:84)

at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:68)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.seleniumhq.jetty7.servlet.ServletHolder.handle(ServletHolder.java:565
)

at org.seleniumhq.jetty7.servlet.ServletHandler.doHandle(
ServletHandler.java:479)

at org.seleniumhq.jetty7.server.session.SessionHandler.doHandle(
SessionHandler.java:225)

at org.seleniumhq.jetty7.server.handler.ContextHandler.doHandle(
ContextHandler.java:1031)

at org.seleniumhq.jetty7.servlet.ServletHandler.doScope(
ServletHandler.java:406)

at org.seleniumhq.jetty7.server.session.SessionHandler.doScope(
SessionHandler.java:186)

at org.seleniumhq.jetty7.server.handler.ContextHandler.doScope(
ContextHandler.java:965)

at org.seleniumhq.jetty7.server.handler.ScopedHandler.handle(
ScopedHandler.java:117)

at org.seleniumhq.jetty7.server.handler.HandlerWrapper.handle(
HandlerWrapper.java:111)

at org.seleniumhq.jetty7.server.Server.handle(Server.java:349)

at org.seleniumhq.jetty7.server.AbstractHttpConnection.handleRequest(
AbstractHttpConnection.java:452)

at org.seleniumhq.jetty7.server.BlockingHttpConnection.handleRequest(
BlockingHttpConnection.java:47)

at org.seleniumhq.jetty7.server.AbstractHttpConnection.content(
AbstractHttpConnection.java:894)

at
org.seleniumhq.jetty7.server.AbstractHttpConnection$RequestHandler.content(
AbstractHttpConnection.java:948)

at org.seleniumhq.jetty7.http.HttpParser.parseNext(HttpParser.java:857)

at org.seleniumhq.jetty7.http.HttpParser.parseAvailable(HttpParser.java:235)

at org.seleniumhq.jetty7.server.BlockingHttpConnection.handle(
BlockingHttpConnection.java:66)

at org.seleniumhq.jetty7.server.bio.SocketConnector$ConnectorEndPoint.run(
SocketConnector.java:254)

at org.seleniumhq.jetty7.util.thread.QueuedThreadPool.runJob(
QueuedThreadPool.java:599)

at org.seleniumhq.jetty7.util.thread.QueuedThreadPool$3.run(
QueuedThreadPool.java:534)

at java.lang.Thread.run(Thread.java:680)


Any help will be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/8xGxK854RIIJ.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.

Search Discussions

  • Joe at Jun 6, 2012 at 7:29 am
    I think I figured out what's going on. I need to be vpned on the main
    computer to be able to access our testing servers which gives the vm a
    different ip domain (10.0.2.*). Is there a way around this? I tried
    hostfiling the vm ip to a local shared ip and it doesn't seem to work.
    On Tuesday, June 5, 2012 11:07:22 PM UTC-7, Joe wrote:

    I started using grid 2 recently am having some issues getting the browsers
    to launch in my vm. Here is my setup:

    hub is run on my mac (if i register nodes on the mac, tests run fine)
    node is running on a vista virtualbox vm

    I start the node by running:
    java -jar selenium-server-standalone-2.22.0.jar -role node -hub
    http://10.10.1.4:4444/grid/register

    In my script, I try to launch the browser by doing:

    URL server = new URL("http://"+hubserver+":4444/wd/hub");
    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setBrowserName("firefox");
    Browser = new RemoteWebDriver(server, capabilities);

    with hubserver being the ip to the hub.

    When I try to run the test, this is the error that shows up:

    org.openqa.selenium.WebDriverException: Error forwarding the new session
    Error forwarding the request Connection to http://10.0.2.15:5555 refused

    Command duration or timeout: 74.91 seconds

    Build info: version: '2.22.0', revision: '17049', time: '2012-05-29
    13:32:05'

    System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
    '10.6.8', java.version: '1.6.0_31'

    Driver info: driver.version: RemoteWebDriver

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    NativeConstructorAccessorImpl.java:39)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at org.openqa.selenium.remote.ErrorHandler.createThrowable(
    ErrorHandler.java:188)

    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(
    ErrorHandler.java:145)

    at org.openqa.selenium.remote.RemoteWebDriver.execute(
    RemoteWebDriver.java:458)

    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 com.kongregate.browser_tests.FirefoxGuestGameLoads.DriverSetup(
    FirefoxGuestGameLoads.java:62)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(
    NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.testng.internal.MethodInvocationHelper.invokeMethod(
    MethodInvocationHelper.java:80)

    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551)

    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)

    at org.testng.internal.Invoker.invokeMethod(Invoker.java:640)

    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)

    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)

    at org.testng.internal.TestMethodWorker.invokeTestMethods(
    TestMethodWorker.java:127)

    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

    at org.testng.TestRunner.privateRun(TestRunner.java:768)

    at org.testng.TestRunner.run(TestRunner.java:617)

    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)

    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)

    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

    at org.testng.SuiteRunner.run(SuiteRunner.java:240)

    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)

    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)

    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)

    at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)

    at org.testng.TestNG.run(TestNG.java:1022)

    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)

    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)

    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)

    Caused by: org.openqa.grid.common.exception.GridException: Error
    forwarding the new session Error forwarding the request Connection to
    http://10.0.2.15:5555 refused

    at org.openqa.grid.web.servlet.handler.RequestHandler.process(
    RequestHandler.java:111)

    at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:84
    )

    at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:68)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    at org.seleniumhq.jetty7.servlet.ServletHolder.handle(
    ServletHolder.java:565)

    at org.seleniumhq.jetty7.servlet.ServletHandler.doHandle(
    ServletHandler.java:479)

    at org.seleniumhq.jetty7.server.session.SessionHandler.doHandle(
    SessionHandler.java:225)

    at org.seleniumhq.jetty7.server.handler.ContextHandler.doHandle(
    ContextHandler.java:1031)

    at org.seleniumhq.jetty7.servlet.ServletHandler.doScope(
    ServletHandler.java:406)

    at org.seleniumhq.jetty7.server.session.SessionHandler.doScope(
    SessionHandler.java:186)

    at org.seleniumhq.jetty7.server.handler.ContextHandler.doScope(
    ContextHandler.java:965)

    at org.seleniumhq.jetty7.server.handler.ScopedHandler.handle(
    ScopedHandler.java:117)

    at org.seleniumhq.jetty7.server.handler.HandlerWrapper.handle(
    HandlerWrapper.java:111)

    at org.seleniumhq.jetty7.server.Server.handle(Server.java:349)

    at org.seleniumhq.jetty7.server.AbstractHttpConnection.handleRequest(
    AbstractHttpConnection.java:452)

    at org.seleniumhq.jetty7.server.BlockingHttpConnection.handleRequest(
    BlockingHttpConnection.java:47)

    at org.seleniumhq.jetty7.server.AbstractHttpConnection.content(
    AbstractHttpConnection.java:894)

    at
    org.seleniumhq.jetty7.server.AbstractHttpConnection$RequestHandler.content(
    AbstractHttpConnection.java:948)

    at org.seleniumhq.jetty7.http.HttpParser.parseNext(HttpParser.java:857)

    at org.seleniumhq.jetty7.http.HttpParser.parseAvailable(
    HttpParser.java:235)

    at org.seleniumhq.jetty7.server.BlockingHttpConnection.handle(
    BlockingHttpConnection.java:66)

    at org.seleniumhq.jetty7.server.bio.SocketConnector$ConnectorEndPoint.run(
    SocketConnector.java:254)

    at org.seleniumhq.jetty7.util.thread.QueuedThreadPool.runJob(
    QueuedThreadPool.java:599)

    at org.seleniumhq.jetty7.util.thread.QueuedThreadPool$3.run(
    QueuedThreadPool.java:534)

    at java.lang.Thread.run(Thread.java:680)


    Any help will be greatly appreciated.
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/QRmsSp2bWyUJ.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedJun 6, '12 at 6:07a
activeJun 6, '12 at 7:29a
posts2
users1
websiteseleniumhq.org

1 user in discussion

Joe: 2 posts

People

Translate

site design / logo © 2022 Grokbase