Navigation Menu

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

sessionId should not be null; has this session been started yet? #2716

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

sessionId should not be null; has this session been started yet? #2716

lukeis opened this issue Mar 3, 2016 · 16 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2716

What steps will reproduce the problem?
1. Send a blank space to a text field

What is the expected output? What do you see instead?
Expected would be allowing it to continue.

Instead, Selenium Server complains "sessionId should not be null; has this session
been started yet?"

Selenium version: 2.9.0
OS: Windows Vista
Browsers: Firefox 7.0.1, Chrome 14.0.835.202

Several tests are run against this text field.  The moment I send a blank space for
a value, it crashes.  Trimmed Selenium log with -debug -browserSideLog:

17:34:37.103 DEBUG [28] org.openqa.selenium.server.FrameGroupCommandQueueSet - ---------retrieving
CommandQueue for sel_32883
17:34:37.103 INFO [28] org.openqa.selenium.server.SeleniumDriverResourceHandler.browserSideLog
- Executing: |getValue | name=gamekey_id |  |
17:34:37.103 DEBUG [28] org.openqa.jetty.http.HttpContext - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [28] org.openqa.jetty.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 00:34:37 GMT
Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.6.0_26
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 4


17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpConnection - REQUEST from SocketListener0@0.0.0.0:4444:
POST http://dev.admin.armorgames.com/selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_32883&sessionId=c28cf8f849f74811a2cba5eb500b89bf&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1319589277118&sequenceNumber=57
HTTP/1.1
Host: dev.admin.armorgames.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202
Safari/535.1
Accept: */*
Referer: http://dev.admin.armorgames.com/selenium-server/core/RemoteRunner.html?sessionId=c28cf8f849f74811a2cba5eb500b89bf&multiWindow=true&baseUrl=http%3A%2F%2Fdev.admin.armorgames.com%2F&debugMode=true
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Content-Length: 48
Origin: http://dev.admin.armorgames.com
Content-Type: application/xml
Cookie: ag_admin_session=ja9kpo5grpcpm2a9b3ucncrnl2; __utma=31514667.1679621917.1319589175.1319589175.1319589175.1;
__utmb=31514667.1.10.1319589175; __utmc=31514667; __utmz=31514667.1319589175.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)


17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpServer - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpServer - Try HttpContext[/selenium-server,/selenium-server],0
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.jetty.http.handler.SecurityHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.StaticContentHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [18] org.openqa.jetty.http.handler.ResourceHandler - PATH=/driver/
RESOURCE=file:/C:/Windows/System32/MISSING%20RESOURCE
17:34:37.103 DEBUG [18] org.openqa.jetty.http.handler.ResourceHandler - Looking for
file:/C:/Windows/System32/MISSING%20RESOURCE
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.SessionExtensionJsHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@10dd1f7
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.CachedContentTestHandler@67ac19
17:34:37.103 DEBUG [18] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [18] org.openqa.selenium.server.SeleniumDriverResourceHandler -
req: POST http://dev.admin.armorgames.com/selenium-server/driver/?&localFrameAddress=top&seleniumWindowName=&uniqueId=sel_32883&sessionId=c28cf8f849f74811a2cba5eb500b89bf&counterToMakeURsUniqueAndSoStopPageCachingInTheBrowser=1319589277118&sequenceNumber=57
HTTP/1.1
Host: dev.admin.armorgames.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202
Safari/535.1
Accept: */*
Referer: http://dev.admin.armorgames.com/selenium-server/core/RemoteRunner.html?sessionId=c28cf8f849f74811a2cba5eb500b89bf&multiWindow=true&baseUrl=http%3A%2F%2Fdev.admin.armorgames.com%2F&debugMode=true
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Content-Length: 48
Origin: http://dev.admin.armorgames.com
Content-Type: application/xml
Cookie: ag_admin_session=ja9kpo5grpcpm2a9b3ucncrnl2; __utma=31514667.1679621917.1319589175.1319589175.1319589175.1;
__utmb=31514667.1.10.1319589175; __utmc=31514667; __utmz=31514667.1319589175.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)


17:34:37.103 DEBUG [18] org.openqa.selenium.server.FrameGroupCommandQueueSet - ---------retrieving
CommandQueue for sel_32883
17:34:37.103 DEBUG [18] org.openqa.selenium.server.SeleniumDriverResourceHandler -
Browser c28cf8f849f74811a2cba5eb500b89bf/:top sel_32883 posted OK,abcdef1234567890abcdef1234567890
17:34:37.103 DEBUG [18] org.openqa.selenium.server.FrameGroupCommandQueueSet - ---------retrieving
CommandQueue for sel_32883
17:34:37.103 DEBUG [18] org.openqa.selenium.server.SingleEntryAsyncQueue - putting
command: OK,abcdef1234567890abcdef1234567890
17:34:37.103 DEBUG [18] org.openqa.selenium.server.SingleEntryAsyncQueue - ..command
put?: true
17:34:37.103 DEBUG [43] org.openqa.selenium.server.SingleEntryAsyncQueue - data from
polling: OK,abcdef1234567890abcdef1234567890
17:34:37.103 DEBUG [18] org.openqa.selenium.server.CommandHolder -  sel_32883 commandHolder
sel_32883 getCommand() called
17:34:37.103 DEBUG [43] org.openqa.selenium.server.CommandResultHolder -    sel_32883
commandResultHolder sel_32883 getResult() -> OK,abcdef1234567890abcdef1234567890
17:34:37.103 DEBUG [18] org.openqa.selenium.server.SingleEntryAsyncQueue - waiting
for data for at most 10 more s
17:34:37.103 DEBUG [43] org.openqa.selenium.server.commands.SeleniumCoreCommand - Got
result: OK,abcdef1234567890abcdef1234567890 on session c28cf8f849f74811a2cba5eb500b89bf
17:34:37.103 INFO [43] org.openqa.selenium.server.SeleniumDriverResourceHandler - Got
result: OK,abcdef1234567890abcdef1234567890 on session c28cf8f849f74811a2cba5eb500b89bf
17:34:37.103 DEBUG [43] org.openqa.jetty.http.HttpContext - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.103 DEBUG [43] org.openqa.jetty.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 00:34:36 GMT
Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.6.0_26
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Connection: close


17:34:37.417 DEBUG [43] org.openqa.jetty.http.HttpConnection - EOFException()
17:34:37.422 DEBUG [43] org.openqa.jetty.http.HttpConnection - new HttpConnection:
Socket[addr=/192.168.168.47,port=50043,localport=4444]
17:34:37.541 DEBUG [43] org.openqa.jetty.http.HttpConnection - REQUEST from SocketListener0@0.0.0.0:4444:
GET /selenium-server/driver/?cmd=testComplete&sessionId=c28cf8f849f74811a2cba5eb500b89bf
HTTP/1.0
Host: 192.168.168.110:4444


17:34:37.542 DEBUG [43] org.openqa.jetty.http.HttpServer - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:34:37.542 DEBUG [43] org.openqa.jetty.http.HttpServer - Try HttpContext[/selenium-server,/selenium-server],0
17:34:37.542 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.jetty.http.handler.SecurityHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.542 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.StaticContentHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.542 DEBUG [43] org.openqa.jetty.http.handler.ResourceHandler - PATH=/driver/
RESOURCE=file:/C:/Windows/System32/MISSING%20RESOURCE
17:34:37.542 DEBUG [43] org.openqa.jetty.http.handler.ResourceHandler - Looking for
file:/C:/Windows/System32/MISSING%20RESOURCE
17:34:37.543 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.SessionExtensionJsHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.543 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.543 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@10dd1f7
17:34:37.543 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.CachedContentTestHandler@67ac19
17:34:37.543 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.543 DEBUG [43] org.openqa.selenium.server.SeleniumDriverResourceHandler -
req: GET /selenium-server/driver/?cmd=testComplete&sessionId=c28cf8f849f74811a2cba5eb500b89bf
HTTP/1.0
Host: 192.168.168.110:4444


17:34:37.543 INFO [43] org.openqa.selenium.server.SeleniumDriverResourceHandler - Command
request: testComplete[, ] on session c28cf8f849f74811a2cba5eb500b89bf
17:34:37.544 INFO [43] org.openqa.selenium.server.browserlaunchers.GoogleChromeLauncher
- Killing Google Chrome...
17:34:37.561 DEBUG [13] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.607 DEBUG [51] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.623 DEBUG [15] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.623 DEBUG [17] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.623 DEBUG [16] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.623 DEBUG [50] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.623 DEBUG [21] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [20] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [14] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [33] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [23] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [36] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [29] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [45] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [46] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [28] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [22] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.638 DEBUG [27] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.701 DEBUG [43] org.openqa.selenium.server.FrameGroupCommandQueueSet - clearing
queue set
17:34:37.716 DEBUG [43] org.openqa.selenium.server.SingleEntryAsyncQueue - putting
command: CommandResultHolder.POISON
17:34:37.716 DEBUG [43] org.openqa.selenium.server.SingleEntryAsyncQueue - ..command
put?: true
17:34:37.716 DEBUG [43] org.openqa.selenium.server.CommandHolder -  sel_32883 commandHolder
sel_32883 getCommand()  poisoning pollers
17:34:37.716 DEBUG [43] org.openqa.selenium.server.SingleEntryAsyncQueue - putting
command: json={command:"CommandHolder.POISION",target:"",value:""}
17:34:37.716 DEBUG [18] org.openqa.selenium.server.SingleEntryAsyncQueue - data from
polling: json={command:"CommandHolder.POISION",target:"",value:""}
17:34:37.732 DEBUG [18] org.openqa.selenium.server.CommandHolder -  sel_32883 commandHolder
sel_32883 getCommand() -> null
17:34:37.732 DEBUG [18] org.openqa.jetty.http.HttpContext - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.732 DEBUG [18] org.openqa.jetty.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 00:34:37 GMT
Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.6.0_26
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0


17:34:37.748 DEBUG [18] org.openqa.jetty.http.HttpConnection - java.net.SocketException:
Connection reset
17:34:37.732 DEBUG [43] org.openqa.selenium.server.SingleEntryAsyncQueue - ..command
put?: true
17:34:37.748 INFO [43] org.openqa.selenium.server.SeleniumDriverResourceHandler - Got
result: OK on session c28cf8f849f74811a2cba5eb500b89bf
17:34:37.748 DEBUG [43] org.openqa.jetty.http.HttpContext - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.748 DEBUG [43] org.openqa.jetty.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 00:34:37 GMT
Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.6.0_26
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Connection: close


17:34:37.748 DEBUG [43] org.openqa.jetty.http.HttpConnection - EOFException()
17:34:37.763 DEBUG [43] org.openqa.jetty.http.HttpConnection - new HttpConnection:
Socket[addr=/192.168.168.47,port=50044,localport=4444]
17:34:37.857 DEBUG [43] org.openqa.jetty.http.HttpConnection - REQUEST from SocketListener0@0.0.0.0:4444:
GET /selenium-server/driver/?cmd=getLocation HTTP/1.0
Host: 192.168.168.110:4444


17:34:37.857 DEBUG [43] org.openqa.jetty.http.HttpServer - Try HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:34:37.857 DEBUG [43] org.openqa.jetty.http.HttpServer - Try HttpContext[/selenium-server,/selenium-server],0
17:34:37.857 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.jetty.http.handler.SecurityHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.StaticContentHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.872 DEBUG [43] org.openqa.jetty.http.handler.ResourceHandler - PATH=/driver/
RESOURCE=file:/C:/Windows/System32/MISSING%20RESOURCE
17:34:37.872 DEBUG [43] org.openqa.jetty.http.handler.ResourceHandler - Looking for
file:/C:/Windows/System32/MISSING%20RESOURCE
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.SessionExtensionJsHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@10dd1f7
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.CachedContentTestHandler@67ac19
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handler org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.872 DEBUG [43] org.openqa.selenium.server.SeleniumDriverResourceHandler -
req: GET /selenium-server/driver/?cmd=getLocation HTTP/1.0
Host: 192.168.168.110:4444


17:34:37.872 INFO [43] org.openqa.selenium.server.SeleniumDriverResourceHandler - Command
request: getLocation[, ] on session null
17:34:37.872 DEBUG [43] org.openqa.selenium.server.commands.SeleniumCoreCommand - Executing
'getLocation' selenium core command on session null
17:34:37.872 DEBUG [43] org.openqa.selenium.server.commands.SeleniumCoreCommand - Session
null going to doCommand(getLocation,,)
17:34:37.872 ERROR [43] org.openqa.selenium.server.commands.SeleniumCoreCommand - Exception
running 'getLocation 'command on session null
java.lang.NullPointerException: sessionId should not be null; has this session been
started yet?
    at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java:219)
    at org.openqa.selenium.server.commands.SeleniumCoreCommand.execute(SeleniumCoreCommand.java:37)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:611)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:405)
    at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:149)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
    at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
    at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
    at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
    at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
    at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
17:34:37.872 INFO [43] org.openqa.selenium.server.SeleniumDriverResourceHandler - Got
result: ERROR Server Exception: sessionId should not be null; has this session been
started yet? on session null
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpContext - Handled by org.openqa.selenium.server.SeleniumDriverResourceHandler
in HttpContext[/selenium-server,/selenium-server]
17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 00:34:37 GMT
Server: Jetty/5.1.x (Windows Vista/6.0 x86 java/1.6.0_26
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Connection: close


17:34:37.872 DEBUG [43] org.openqa.jetty.http.HttpConnection - EOFException()








Reported by philip@armorgames.com on 2011-10-26 00:48:59

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

More log detail attached here

Reported by philip@armorgames.com on 2011-10-26 00:56:23


- _Attachment: [paired down log.txt](https://storage.googleapis.com/google-code-attachments/selenium/issue-2716/comment-1/paired down log.txt)_

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2011-10-27 06:04:07

  • Labels added: Component-RC

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This works with firefox, fails with chrome:


  @Test
  public void testWebDriverSomething() throws MalformedURLException {
    WebDriver webDriver = new RemoteWebDriver(new URL("http://localhost:4444//wd/hub"),
DesiredCapabilities.chrome());
      webDriver.get("http://www.google.com");
    webDriver.findElement(By.name("q")).sendKeys(" ");
    webDriver.close();
    webDriver.quit();
  }

Reported by kristian.rosenvold@zenior.no on 2011-10-27 18:56:17

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This problem has been fixed if you download the latest version of the native chromedriver
binaries

Reported by kristian.rosenvold on 2011-10-27 19:00:16

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Please re-open -- this happens also when using Firefox 7 and Selenium Server 2.10.0

Reported by philip@armorgames.com on 2011-10-28 20:42:51

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by kristian.rosenvold on 2011-10-28 20:50:37

  • Status changed: New

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Just to be specific; I was not talking about updating to 2.10 or 2.11, but updating
the local binary from http://code.google.com/p/chromium/downloads/list (version 16.0.92).
Please just confirm that this does not fix the problem.

Reported by kristian.rosenvold on 2011-10-28 21:31:48

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I've since switched to Firefox-only, as capturing screenshots are only configured for
a Firefox profile.  Please fix it for Firefox.

Reported by philip@armorgames.com on 2011-10-28 21:35:46

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

From the log I see the following sequence of commands:

getValue | name=gamekey_id
testComplete
getLocation

and "Exception running 'getLocation 'command on session null" as the resuld of the
last command, that is quite reasonable after 'testComplete' command right before it.

I can't see how this stack trace is related to sending a blank space to a text field,
can you explain it?

Reported by barancev on 2011-10-30 19:51:01

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

barancev: I wish I could help you, but I'm just a dumb user trying to get this setup
to work consistently.

Reported by philip@armorgames.com on 2011-10-31 15:45:39

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Then, just show you setup to allow us to understand what's happening in your tests.

From the attached log file it is obvious that you've called getLocation after testComplete,
and it's no surprise you've got a message that states that there is no active session.

So I'm marking this issue as WorkingAsIntended, but if you'll have more info to investigate
don't hesitate to ask to reopen it or create a new issue.

Reported by barancev on 2011-10-31 16:26:06

  • Status changed: WorkingAsIntended

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

barancev -- How in G-d's name is the error message "sessionId should not be null; has
this session been started yet?" when I'm just sending commands to Selenium server "working
as intended"? 

I'm not trying to pull a fast one.  I'm just trying to send it a bunch of commands
and expect either a success or failure message.  I'm not closing the browser.  The
browser is not crashing.  So where is this sessionId message coming from?

Re-open this issue.

Reported by philip@armorgames.com on 2011-10-31 16:49:52

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Please look at your log:

17:34:37.543 DEBUG [43] org.openqa.selenium.server.SeleniumDriverResourceHandler -
req: GET /selenium-server/driver/?cmd=testComplete&sessionId=c28cf8f849f74811a2cba5eb500b89bf
HTTP/1.0
Host: 192.168.168.110:4444


17:34:37.543 INFO [43] org.openqa.selenium.server.SeleniumDriverResourceHandler - Command
request: testComplete[, ] on session c28cf8f849f74811a2cba5eb500b89bf
17:34:37.544 INFO [43] org.openqa.selenium.server.browserlaunchers.GoogleChromeLauncher
- Killing Google Chrome...

This means that you've sent a 'testComplete' command and as a result the browser was
stopped. Any command sent after that will fail with 'sessionId should not be null'
message, because there is no active browser session anymore.

Reported by barancev on 2011-10-31 16:59:14

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I have additional information - the issue is probably related to PHPUnit Selenium extention,
right?

It seems to be a bug in this extention. When a test fails PHPUnit tries to get the
current URL and take a screenshot (for reporting purposes), see onNotSuccessfulTest
method in the extention. But sometimes it closes session after failed test (as you
can see from the log file, I pointed this fact). In this case PHPUnit *should not*
try to get the current URL, or at least it should handle a possible failure.

It is not an issue in Selenium, it is illegal use of Selenium by PHPUnit extention.

I'd recomment you report this issue to PHPUnit bug tracker (if they still support Selenium
extention).

Reported by barancev on 2011-11-08 07:00:24

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

barancev -- correct, this is being executed via PHPUnit.  I'll send it there.

Reported by philip@armorgames.com on 2011-11-08 17:13:17

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:13:59

  • 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