Hi is a blog for the same error. http://geekswithblogs.net/thomasweller/archive/2010/02/14/making-selenium-1.0.1-work-with-firefox-3.6.aspx
Seems the problem is caused by the version mismatch. What version of custom selenium server are you using? I thought 1.0.1-te3 already got the version number fixed. Thanks, Jian On Thu, Apr 22, 2010 at 11:44 PM, khush <[email protected]> wrote: > Hi all, > > I got the following err with firefox 3.6 version while running > tellurium web tests > > Configure Selenium Client with default values > [junit] INFO 04-21 03:23:05 Contacting Selenium RC at localhost: > 4444 (ThreadSafeSeleniumSessionStorage.java:24) > [junit] INFO 04-21 03:23:05 Checking Resource aliases > (FileResource.java:60) > [junit] INFO 04-21 03:23:05 Command request: > getNewBrowserSession[*chrome, http://localhost:8080, ] on session > null (SeleniumDriverResourceHandler.java:384) > [junit] INFO 04-21 03:23:05 creating new remote session > (BrowserSessionFactory.java:121) > [junit] INFO 04-21 03:23:05 Allocated session > 320ed0fbf9b341a58c266be8f27a5168 for http://localhost:8080, > launching... (BrowserSessionFactory.java:354) > [junit] INFO 04-21 03:23:05 Preparing Firefox profile... > (FirefoxChromeLauncher.java:103) > [junit] ERROR 04-21 03:23:26 Failed to start new browser session, > shutdown browser and clear all session data > (BrowserSessionFactory.java:373) > [junit] java.lang.RuntimeException: Firefox refused shutdown while > preparing a profile > [junit] at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java: > 311) > [junit] at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java: > 106) > [junit] at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java: > 83) > [junit] at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java: > 350) > [junit] at > > org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java: > 357) > [junit] at > > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java: > 122) > [junit] at > > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java: > 84) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java: > 712) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java: > 393) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java: > 364) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java: > 125) > [junit] at org.mortbay.http.HttpContext.handle(HttpContext.java: > 1530) > [junit] at org.mortbay.http.HttpContext.handle(HttpContext.java: > 1482) > [junit] at org.mortbay.http.HttpServer.service(HttpServer.java: > 909) > [junit] at > org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > [junit] at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > [junit] at > org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > [junit] at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java: > 245) > [junit] at > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > [junit] at org.mortbay.util.ThreadPool > $PoolThread.run(ThreadPool.java:534) > [junit] Caused by: > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher > $FileLockRemainedException: Lock file still present! C:\Windows\TEMP > \customProfileDir320ed0fbf9b341a58c266be8f27a5168\parent.lock > [junit] at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway(FirefoxChromeLauncher.java: > 269) > [junit] at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java: > 309) > [junit] ... 19 more > [junit] INFO 04-21 03:23:39 Got result: Failed to start new > browser session: Unable to delete file C:\Windows\TEMP > \customProfileDir320ed0fbf9b341a58c266be8f27a5168\parent.lock on > session null (SeleniumDriverResourceHandler.java:560) > [junit] INFO 04-21 03:23:39 Command request: cleanCache[, ] on > session null (SeleniumDriverResourceHandler.java:384) > [junit] ERROR 04-21 03:23:39 Exception running 'cleanCache > 'command on session null (SeleniumCoreCommand.java:40) > [junit] java.lang.NullPointerException: sessionId should not be > null; has this session been started yet? > [junit] at > > org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet(FrameGroupCommandQueueSet.java: > 214) > [junit] at > > org.openqa.selenium.server.commands.SeleniumCoreCommand.execute(SeleniumCoreCommand.java: > 34) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java: > 549) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java: > 364) > [junit] at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java: > 125) > [junit] at org.mortbay.http.HttpContext.handle(HttpContext.java: > 1530) > [junit] at org.mortbay.http.HttpContext.handle(HttpContext.java: > 1482) > [junit] at org.mortbay.http.HttpServer.service(HttpServer.java: > 909) > [junit] at > org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > [junit] at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > [junit] at > org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > [junit] at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java: > 245) > [junit] at > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > [junit] at org.mortbay.util.ThreadPool > $PoolThread.run(ThreadPool.java:534) > [junit] INFO 04-21 03:23:39 Got result: ERROR Server Exception: > sessionId should not be null; has this session been started yet? on > session null (SeleniumDriverResourceHandler.java:560) > [junit] ------------- ---------------- --------------- > [junit] Testcase: UserTest: Caused an ERROR > [junit] Cannot start selenium:Could not start Selenium session: > Failed to start new browser session: Unable to delete file C:\Windows > \TEMP\customProfileDir320ed0fbf9b341a58c266be8f27a5168\parent.lock > [junit] org.tellurium.exception.TelluriumException: Cannot start > selenium:Could not start Selenium session: Failed to start new browser > session: Unable to delete file C:\Windows\TEMP > \customProfileDir320ed0fbf9b341a58c266be8f27a5168\parent.lock > [junit] at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > [junit] at > > org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java: > 70) > [junit] at org.codehaus.groovy.runtime.callsite.ConstructorSite > $ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java: > 102) > [junit] at > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java: > 55) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java: > 191) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java: > 199) > [junit] at > > org.tellurium.connector.CustomSelenium.startSeleniumSession(CustomSelenium.groovy: > 55) > [junit] at org.tellurium.connector.CustomSelenium > $startSeleniumSession.call(Unknown Source) > [junit] at > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java: > 43) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: > 116) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: > 136) > [junit] at > > org.tellurium.connector.SeleniumConnector.connectSeleniumServer(SeleniumConnector.groovy: > 65) > [junit] at org.tellurium.connector.SeleniumConnector > $connectSeleniumServer.call(Unknown Source) > [junit] at > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java: > 43) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: > 116) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java: > 120) > [junit] at > org.tellurium.framework.TelluriumFramework.start(TelluriumFramework.groovy: > 102) > [junit] at org.tellurium.framework.TelluriumFramework > $start.callCurrent(Unknown Source) > [junit] at > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java: > 47) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java: > 142) > [junit] at > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java: > 146) > [junit] at > org.tellurium.framework.TelluriumFramework.start(TelluriumFramework.groovy: > 108) > [junit] at > > org.tellurium.test.java.TelluriumJavaTestCase.setUpForClass(TelluriumJavaTestCase.java: > 23) > [junit] at > > org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java: > 61) > [junit] at > > org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java: > 70) > [junit] at > > org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java: > 180) > [junit] > > The err went away when i revert back my firefox version to 3.5. > > Any idea. > > Thanks, > Khush > > -- > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
