Issue 1242 in selenium: Selenium Server will not start any browsers (windows xp)

1 view
Skip to first unread message

sele...@googlecode.com

unread,
Jan 28, 2011, 5:27:03 PM1/28/11
to selenium-deve...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1242 by fenton...@gmail.com: Selenium Server will not start any
browsers (windows xp)
http://code.google.com/p/selenium/issues/detail?id=1242

What steps will reproduce the problem?
1. Start server as normal from bat file
2. Attempt to execute a test.

What is the expected output? What do you see instead?
The browser of choice should show up, whether *iexplore or *chrome, etc.
Instead I get an 'error while launching browser on session null'.
However I do noticed in the output that when I have *chrome configured as
my browser I get: 'java.lang.IllegalArgumentException: Resource not found:
/customProfileDirCUSTFFCHROME'
and when I have *iexplore configured as my browser I
get: 'java.lang.IllegalArgumentException: Resource not found: /core

What version of the product are you using? On what operating system?
1.0.3 (This has happened in 2.0b1 as well)

Please provide any additional information below.
This bug happens randomly after a week or so of use and I can not for the
life of me get it to work again, even after re downloading.


sele...@googlecode.com

unread,
Jan 29, 2011, 10:08:15 AM1/29/11
to selenium-deve...@googlegroups.com
Updates:
Status: NeedsClarification
Labels: Component-RC

Comment #1 on issue 1242 by jari.bakken: Selenium Server will not start any

Can you provide the full stacktrace from the server, if available?

sele...@googlecode.com

unread,
Jan 31, 2011, 10:34:22 PM1/31/11
to selenium-deve...@googlegroups.com

Comment #2 on issue 1242 by antl...@gmail.com: Selenium Server will not

have you moved anything around?

/core is a package (afaik) and customProfileDirCUSTFFCHROME is a folder
that firefox profile files are stored in. Not sure why you would be seeing
those errors if you are using a prebuilt jar though.

sele...@googlecode.com

unread,
Feb 22, 2011, 4:40:12 AM2/22/11
to selenium-deve...@googlegroups.com
Updates:
Status: WontFix

Comment #3 on issue 1242 by simon.m.stewart: Selenium Server will not start

Marked as NeedsClarification about a month ago, with no clarification.
Marking as WontFix.

sele...@googlecode.com

unread,
Mar 11, 2011, 6:26:25 AM3/11/11
to selenium-deve...@googlegroups.com

Comment #4 on issue 1242 by venumadh...@gmail.com: Selenium Server will not

I too got the same issue, below is the stack trace

15:52:13.437 INFO - Java: Sun Microsystems Inc. 16.3-b01
15:52:13.468 INFO - OS: Windows XP 5.1 x86
15:52:13.484 INFO - v2.0 [a2], with Core v2.0 [a2]
15:52:13.625 INFO - RemoteWebDriver instances should connect to:
http://127.0.0.1:4444/wd/hub
selenium server org.openqa.selenium.server.SeleniumServer@192d342
tostart the server
15:52:13.640 INFO - Version Jetty/5.1.x
15:52:13.640 INFO - Started
HttpContext[/selenium-server/driver,/selenium-server/driver]
15:52:13.656 INFO - Started HttpContext[/selenium-server,/selenium-server]
15:52:13.656 INFO - Started HttpContext[/,/]
15:52:13.671 INFO - Started
org.openqa.jetty.jetty.servlet.ServletHandler@18fe7c3
15:52:13.687 INFO - Started HttpContext[/wd,/wd]
15:52:13.687 INFO - Started SocketListener on 0.0.0.0:4444
15:52:13.703 INFO - Started org.openqa.jetty.jetty.Server@a01335
tostart the server..............:::::::::
15:52:13.703 INFO - Contacting Selenium RC at localhost:4444
15:52:13.796 INFO - Checking Resource aliases
15:52:13.796 INFO - Command request: getNewBrowserSession[*chrome,
http://google.com, ] on session null
15:52:13.812 INFO - creating new remote session
15:52:13.906 INFO - Allocated session bf2aab1b18aa43cba9a1f7883a94fc0e for
http://google.com, launching...
15:52:13.937 ERROR - Failed to start new browser session, shutdown browser
and clear all session data


java.lang.IllegalArgumentException: Resource not found:
/customProfileDirCUSTFFCHROME

at
org.openqa.selenium.server.browserlaunchers.ResourceExtractor.extractResourcePath(ResourceExtractor.java:39)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.extractProfileFromJar(FirefoxChromeLauncher.java:164)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.makeCustomProfile(FirefoxChromeLauncher.java:204)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:90)
at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:400)
at
org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:372)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:124)
at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:86)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:733)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:399)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:370)
at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:129)
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:245)
at
org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at
org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
15:52:14.062 INFO - Got result: Failed to start new browser session: Error

while launching browser on session null

Could not start Selenium session: Failed to start new browser session:
Error while launching browser


sele...@googlecode.com

unread,
May 23, 2011, 9:27:54 AM5/23/11
to selenium-deve...@googlegroups.com

Comment #5 on issue 1242 by kotipall...@gmail.com: Selenium Server will not

I also get this error only when i run in *iexplore and run the tests from
within a java class.

My Stack Trace:

[java] 23 May 11 15:21:08, ERROR Failed to start new browser session,

shutdown browser and clear all session data

[java] java.lang.IllegalArgumentException: Resource not found: /core
[java] at
org.openqa.selenium.server.browserlaunchers.ResourceExtractor.extractResourcePath(ResourceExtractor.java:39)
[java] at
org.openqa.selenium.server.browserlaunchers.HTABrowserLauncher.createHTAFiles(HTABrowserLauncher.java:88)
[java] at
org.openqa.selenium.server.browserlaunchers.HTABrowserLauncher.launch(HTABrowserLauncher.java:63)
[java] at
org.openqa.selenium.server.browserlaunchers.HTABrowserLauncher.launchRemoteSession(HTABrowserLauncher.java:166)
[java] at
org.openqa.selenium.server.browserlaunchers.InternetExplorerLauncher.launchRemoteSession(InternetExplorerLauncher.java:77)
[java] at
org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:372)
[java] at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:124)
[java] at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:86)
[java] at
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:733)
[java] at
org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:399)
[java] at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:370)
[java] at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:129)
[java] at
org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
[java] at
org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
[java] at
org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
[java] at
org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
[java] at
org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
[java] at
org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
[java] at
org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:245)
[java] at
org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
[java] at
org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
[java] 23 May 11 15:21:08, INFO Got result: Failed to start new

browser session: Error while launching browser on session null

This error occurs only when i run selenium test cases from a java class as
below:
public static void main(String[] args) {
org.junit.runner.JUnitCore.main("com.selenium.test.TestSelenium");
}

This error is not occured when selenium is run from Ant script as below
<target name="test" depends="setclasspath">
<property name="myclasspath" refid="test.classpath"/>
<echo message="Classpath = ${myclasspath}"/>
<junit fork="yes" haltonfailure="yes">
<classpath refid="test.classpath" />
<test name="${test.class.name}" />
<formatter type="plain" usefile="false" />
</junit>
</target>

Please provide some inputs on this

sele...@googlecode.com

unread,
Jul 11, 2011, 6:02:43 AM7/11/11
to selenium-deve...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 2020

Comment #6 on issue 1242 by dawagner: Selenium Server will not start any

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages