question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error forwarding the new session Empty pool of VM for setup Capabilities [{platform=ANY, browserName=firefox, version=46.0}]

See original GitHub issue

Meta -

OS: WINDOWS 7

Selenium Version:
Standalone server 2.53.0

Browser:
Firefox Browser Version:
46.0 (64-bit

Expected Behavior -

should open a fire fox driver where node is running

Actual Behavior -

getting error on executing the code given below error is :- Exception in thread “main” org.openqa.selenium.WebDriverException: Error forwarding the new session Empty pool of VM for setup Capabilities [{platform=ANY, browserName=firefox, version=46.0}] Command duration or timeout: 484 milliseconds Build info: version: ‘2.53.0’, revision: ‘35ae25b’, time: ‘2016-03-15 16:57:40’ System info: host: ‘ofss312865’, ip: ‘10.180.32.62’, os.name: ‘Windows Server 2008 R2’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.7.0_25’ Driver info: org.openqa.selenium.remote.RemoteWebDriver at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:158) at Drivers.main(Drivers.java:45) Caused by: org.openqa.selenium.WebDriverException: Error forwarding the new session Empty pool of VM for setup Capabilities [{platform=ANY, browserName=firefox, version=46.0}] Build info: version: ‘2.53.0’, revision: ‘35ae25b’, time: ‘2016-03-15 16:57:40’ System info: host: ‘ofss312865’, ip: ‘10.180.32.62’, os.name: ‘Windows Server 2008 R2’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.7.0_25’ Driver info: driver.version: unknown at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:115) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:83) at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:808) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:587) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.seleniumhq.jetty9.server.Server.handle(Server.java:499) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:310) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:257) at org.seleniumhq.jetty9.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Unknown Source)

Steps to reproduce -

created a hub on hum machine : - java -jar selenium-server-standalone-2.53.0.jar -role hub.

created a node on remote machine :- java -Dwebdriver.server.session.timeout=864000000 -jar selenium-server-standalone-2.53.0.jar -role webdriver -hub http://10.180.32.62: 4444/grid/register -port 4444 -browser browserName=firefox,maxInstances=2 -browser browserName=chrome,maxInstances=2 -browser browserName=iexplore,maxInstances=2 -maxSession 2

node is registed with the hud, verified it on console.

code in Main method including all packages :- DesiredCapabilities cap =DesiredCapabilities.firefox(); cap.setBrowserName(“firefox”); cap.setPlatform(Platform.ANY); cap.setVersion(“46.0”);

     //RemoteWebDriver d = new RemoteWebDriver(new URL("http://localhost:4444/"),cap);
     URL TESTURL = new URL("http://localhost:4444/wd/hub");

    WebDriver driver = new RemoteWebDriver(TESTURL, cap);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mrchaconcommented, Oct 10, 2016

Reading a different thread, I found a similar error. The solution was to remove the -role hub part and it should work.

This’s the thread. https://github.com/angular/protractor/issues/1226

1reaction
myselfsufiyancommented, Feb 13, 2017

@mrchacon , thanks your recommendation for removing -role hub works for me. I am using CentOS 6.8 and its a VPS currently hosting websites for me, I am running selenium 3.0.1. for selenium remote standalone server with phantomjs (headless) and created a c# .net client that connects and browse to website…

I have written all the above, so that anyone else trying to achieve things like me can get help… screenshot 2017-02-13 23 36 40

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium Grid +Error forwarding the new session Empty pool ...
I just did a small tweak. 1). I launched the command prompt in "admin mode". 2). Gave the java path as "cd C:\Program...
Read more >
Error forwarding the new session Empty pool of VM for setup ...
One thought on “org.openqa.selenium.WebDriverException: Error forwarding the new session Empty pool of VM for setup Capabilities [{browserName= ...
Read more >
Error forwarding the new session empty pool of VM for Setup ...
I have a bot that makes use of a workflow system, MS Outlook and the build in Excel functions. The Bot is Scheduled...
Read more >
Empty Pool Of Vm For Setup Capabilities - ADocLib
That exception Error forwarding the new session Empty pool of VM means that your Selenium Grid doesn't have any node available with a....
Read more >
webdriverio/webdriverio - Gitter
I'm trying to figure out how to get WebdriverIO set up with Selenium Grid. ... Error forwarding the new session Empty pool of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found