Skip to content

"Unable to create new create new session"  #464

@asofan

Description

@asofan

What are you trying to achieve? (Expected behavior)

The environment I am running is Windows Server 2008 R2 with IIS 7

I am trying to follow the instructions on the Readme.md file:
https://github.com/facebook/php-webdriver/blob/community/README.md

What do you get instead? (Actual behavior)

"Unable to refresh session list."

and

"Unable to create new session"

How could the issue be reproduced? (Steps to reproduce)

I ran the Selenium server using this method:

CMD > Run-as Administrator

java -jar selenium-server-standalone-3.5.0.jar

The result from the command is:

14:56:56.648 INFO - Selenium build info: version: '3.5.0', revision: '8def36e068'
14:56:56.648 INFO - Launching a standalone Selenium Server
2017-08-23 14:56:56.664:INFO::main: Logging initialized @341ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:56:56.742 INFO - Driver class not found: com.opera.core.systems.OperaDriver
14:56:56.773 INFO - Driver provider class org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform VISTA
14:56:56.804 INFO - Using the passthrough mode handler
2017-08-23 14:56:56.836:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-08-23 14:56:56.851:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@5ce81285{/,null,STARTING} has uncovered http methods for path: /
2017-08-23 14:56:56.867:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@5ce81285{/,null,AVAILABLE}
2017-08-23 14:56:56.960:INFO:osjs.AbstractConnector:main: Started ServerConnector@9660f4e{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-08-23 14:56:56.960:INFO:osjs.Server:main: Started @639ms
14:56:56.960 INFO - Selenium Server is up and running

So I assume everything is running OK. However, when I try to run the http://localhost/example.php file after following the steps in the readme file, I get this error on the browser:

"This page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500"

to troubleshoot, I tried to go to the url: http://localhost:4444/wd/hub/

and at the top of the page I saw a red alert saying

"Unable to refresh session list."

the resulting log from the command prompt:

2017-08-23 14:57:05.288:INFO:osjshC.ROOT:qtp405662939-23: org.openqa.selenium.remote.server.WebDriverServlet-28feb3fa: Initialising WebDriverServlet
14:57:05.444 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.Status@ed2556e
14:57:05.444 INFO - /status: Executing GET on /status (handler: Status)
14:57:05.475 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.NoHandler@7ee495af
14:57:05.475 INFO - /sessions: Executing GET on /sessions (handler: NoHandler)

When I click to create a session, no matter which browser I select, I get "

"Unable to create new session"

the resulting log is:

14:57:13.917 INFO - Binding default provider to: org.openqa.selenium.chrome.ChromeDriverService
14:57:13.917 INFO - Found handler: org.openqa.selenium.remote.server.BeginSession@41762efd
14:57:13.932 INFO - /session: Executing POST on /session (handler: BeginSession)
14:57:13.964 INFO - Capabilities are: Capabilities {browserName=firefox}
14:57:13.964 INFO - Capabilities {browserName=firefox} matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.firefox.GeckoDriverService)
14:57:13.964 INFO - Capabilities {browserName=firefox} matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
2017-08-23 14:57:13.995:WARN:osjs.HttpChannel:qtp405662939-38: /wd/hub/session
java.lang.NullPointerException
at com.google.gson.JsonPrimitive.isPrimitiveOrString(JsonPrimitive.java:278)
at com.google.gson.JsonPrimitive.setValue(JsonPrimitive.java:101)
at com.google.gson.JsonPrimitive.(JsonPrimitive.java:65)
at org.openqa.selenium.remote.server.ExceptionHandler.lambda$execute$0(ExceptionHandler.java:82)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.collect(Unknown Source)
at org.openqa.selenium.remote.server.ExceptionHandler.execute(ExceptionHandler.java:88)
at org.openqa.selenium.remote.server.WebDriverServlet.handle(WebDriverServlet.java:247)
at org.openqa.selenium.remote.server.WebDriverServlet.doPost(WebDriverServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.openqa.selenium.remote.server.WebDriverServlet.service(WebDriverServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841)
at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.seleniumhq.jetty9.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.seleniumhq.jetty9.server.Server.handle(Server.java:564)
at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317)
at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110)
at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Unknown Source)

Details

  • Php-webdriver version: latest
  • PHP version: v5.6
  • Selenium server version: 3.5 (latest)
  • Operating system: Windows 2012 R2
  • Browser used + version: Latest Chrome & Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions