Selenium server starts OK, but when trying to execute some tests the following error occures:
-------------------------------------------------------
20:21:28.334 INFO - Checking Resource aliases
20:21:28.349 INFO - Command request: getNewBrowserSession[*chrome, http://localhost:8080/konakart/, ] on session null
20:21:28.365 INFO - creating new remote session
20:21:29.802 INFO - Allocated session 0f8f5a8b5e9f4959a73efca935ea3dcf for http://localhost:8080/konakart/
, launching...
20:21:30.162 INFO - Preparing Firefox profile...
20:22:05.397 ERROR - Failed to start new browser session, shutdown browser and clear all session data
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:311)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350)
at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:699)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException: Lock file still present! C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway(FirefoxChromeLauncher.java:269)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:309)
... 19 more
20:22:19.522 INFO - Got result: Failed to start new browser session: Unable to delete file C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock on session null
java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Unable to delete file C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at launcher.TestRunner.startSelenium(TestRunner.java:155)
at launcher.TestRunner.run(TestRunner.java:128)
at launcher.TestRunner.run(TestRunner.java:101)
at launcher.TestRunner.main(TestRunner.java:249)
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: Unable to delete file C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
at com.unitedinternet.portal.selenium.utils.logging.LoggingCommandProcessor.start(LoggingCommandProcessor.java:269)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
... 4 more
-------------------------------------------------------
Works fine on Firefox 3.5.3
And the same error occures with FF 3.6 on XP SP2.