SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

ERROR - Failed to start new browser session, shutdown browser and clear all session data #1409

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 1409

What steps will reproduce the problem?
1.java -jar selenium-server-standalone-2.0b2.jar
2.perl gopro.pl
3.

What is the expected output? What do you see instead?
see below output in console, as far as browser goes it won't even lunch (i think that's
the problem i'm having)

What version of the product are you using? On what operating system?

15:25:43.298 INFO - v2.0 [b2], with Core v2.0 [b2]

[root@wcmisdlin02 ~]# java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
[root@wcmisdlin02 ~]# 

Please provide any additional information below.:
[root@wcmisdlin02 ~]# java -jar selenium-server-standalone-2.0b2.jar 
15:25:43.294 INFO - Java: Sun Microsystems Inc. 14.0-b16
15:25:43.295 INFO - OS: Linux 2.6.18-194.32.1.el5 amd64
15:25:43.298 INFO - v2.0 [b2], with Core v2.0 [b2]
15:25:43.482 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
15:25:43.483 INFO - Version Jetty/5.1.x
15:25:43.483 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
15:25:43.484 INFO - Started HttpContext[/selenium-server,/selenium-server]
15:25:43.484 INFO - Started HttpContext[/,/]
15:25:43.494 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1cb8deef
15:25:43.494 INFO - Started HttpContext[/wd,/wd]
15:25:43.497 INFO - Started SocketListener on 0.0.0.0:4444
15:25:43.497 INFO - Started org.openqa.jetty.jetty.Server@2c64f6cd
15:27:49.151 INFO - Checking Resource aliases
15:27:49.155 INFO - Command request: getNewBrowserSession[*chrome, http://gopro.com/daily-giveaway/]
on session null
15:27:49.157 INFO - creating new remote session
15:27:49.201 INFO - Allocated session 98d2058445da49228bab249198acb042 for http://gopro.com/daily-giveaway/,
launching...
15:27:49.269 INFO - Preparing Firefox profile...
15:28:09.357 ERROR - Failed to start new browser session, shutdown browser and clear
all session data
java.lang.NullPointerException
        at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:259)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:117)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:84)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:413)
        at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:373)
        at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:125)
        at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:87)
        at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:786)
        at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:423)
        at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:394)
        at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:147)
        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)
15:28:09.395 INFO - Got result: Failed to start new browser session: Error while launching
browser on session null

Reported by alexus on 2011-03-16 19:31:22

lukeis commented 8 years ago
Hi, my name is Sedrik.
I'm using Kubuntu 9.10.
Starting Selenium-Test with PHPUnit 3.5.13, I have the same problem. I try to do test
with FireFox 4.0.
When I try to do test with Opera 11 or GoogleChrome 10, the Selenium Server freezes,
and I can't kill its process with console command "kill".

Reported by chipiga86 on 2011-04-23 05:40:52

lukeis commented 8 years ago
P.S. I'm using selenium-server-standalone-2.0b3.jar

Reported by chipiga86 on 2011-04-23 05:43:04

lukeis commented 8 years ago
I am facing this problem too, It wasnt there till yesterday. It suddently started behaving
in this way. m on windows xp

Reported by vineet.bindal@saama.com on 2011-06-08 20:45:22

lukeis commented 8 years ago
Unfortunately we don't support the PHP and Perl bindings. If you can replicate it with
a supported language please reopen

Reported by david.burns@theautomatedtester.co.uk on 2011-09-02 19:48:15

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:12:05