I get this error on Linux too . Not sure where the problem is . But this goes away when you delete the lock file in the profile directory
Can you shutdown firefox and then try to delete the file C:\DOCUME~1\KHUSHW~1\LOCALS~1\Temp\customProfileDirb21e1a26f6154d049b59face5449cab1\parent.lock using Windows Explorer or whatever and then try again Is there any work around that anybody has Regards Hari On Tue, Nov 24, 2009 at 4:43 PM, khush <[email protected]> wrote: > Hi, > > now i am having following files in my project's lib directory: > > 1) json_simple-r1.jar > 2) selenium-grid-tools-1.0.2.jar > 3)selenium-java-client-driver-1.0.1.jar > 4) selenium-server-1.0-te-2.jar > 5) stringtree-json-2.0.10.jar > 6) tellurium-core-0.7.0-20090529.134708-1.jar files. > > > When i try to run my web test i get this awkward err: > > ERROR [SocketListener0-1] 11-24 16:39:55 Failed to start new browser > session, shutdown browser and clear all session data > (BrowserSessionFactory.java:367) > java.lang.RuntimeException: Firefox refused shutdown while preparing a > profile > at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated > (FirefoxChromeLauncher.java:267) > at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory > (FirefoxChromeLauncher.java:119) > at > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch > (FirefoxChromeLauncher.java:96) > at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession > (FirefoxChromeLauncher.java:310) > at > org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession > (BrowserSessionFactory.java:351) > at > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession > (BrowserSessionFactory.java:119) > at > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession > (BrowserSessionFactory.java:82) > at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession > (SeleniumDriverResourceHandler.java:658) > at > org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand > (SeleniumDriverResourceHandler.java:392) > at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest > (SeleniumDriverResourceHandler.java:368) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle > (SeleniumDriverResourceHandler.java:129) > 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:816) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java: > 982) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at org.mortbay.http.SocketListener.handleConnection > (SocketListener.java:244) > 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: > \DOCUME~1\KHUSHW~1\LOCALS~1\Temp > \customProfileDirb21e1a26f6154d049b59face5449cab1\parent.lock > at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway > (FirefoxChromeLauncher.java:225) > at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated > (FirefoxChromeLauncher.java:265) > ... 19 more > WARN [SocketListener0-1] 11-24 16:40:07 POST /selenium-server/driver/ > HTTP/1.1 (HttpConnection.java:780) > Unable to delete file C:\DOCUME~1\KHUSHW~1\LOCALS~1\Temp > \customProfileDirb21e1a26f6154d049b59face5449cab1\parent.lock > at org.apache.tools.ant.taskdefs.Delete.handle(Delete.java:624) > at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:683) > at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:543) > at > > org.openqa.selenium.server.browserlaunchers.LauncherUtils.recursivelyDeleteDir > (LauncherUtils.java:72) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:80) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:84) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:84) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:84) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:84) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:84) > at > org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTryAgain > (LauncherUtils.java:84) > at > > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.removeCustomProfileDir > (FirefoxChromeLauncher.java:194) > at > org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.close > (FirefoxChromeLauncher.java:176) > at > > org.openqa.selenium.server.BrowserSessionFactory.shutdownBrowserAndClearSessionData > (BrowserSessionFactory.java:234) > at > org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession > (BrowserSessionFactory.java:368) > at > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession > (BrowserSessionFactory.java:119) > at > org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession > (BrowserSessionFactory.java:82) > at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession > (SeleniumDriverResourceHandler.java:658) > at > org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand > (SeleniumDriverResourceHandler.java:392) > at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest > (SeleniumDriverResourceHandler.java:368) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle > (SeleniumDriverResourceHandler.java:129) > 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:816) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java: > 982) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at org.mortbay.http.SocketListener.handleConnection > (SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > Wrong test finished. Last started: null stopped: Method Adapter: class > com.basware.bt.web.user.UserTest#testUserLang; class > com.intellij.rt.junit4.Junit4TestMethodAdapter > > org.tellurium.exception.TelluriumException: Cannot start > selenium:Could not start Selenium session: Internal Server Error > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance > (NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > (DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.codehaus.groovy.reflection.CachedConstructor.invoke > (CachedConstructor.java:77) > at org.codehaus.groovy.runtime.callsite.ConstructorSite > $ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java: > 107) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor > (CallSiteArray.java:52) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor > (AbstractCallSite.java:192) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor > (AbstractCallSite.java:200) > at org.tellurium.connector.CustomSelenium.startSeleniumSession > (CustomSelenium.groovy:55) > at org.tellurium.connector.CustomSelenium$startSeleniumSession.call > (Unknown Source) > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > (CallSiteArray.java:40) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:117) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:137) > at org.tellurium.connector.SeleniumConnector.connectSeleniumServer > (SeleniumConnector.groovy:66) > at org.tellurium.connector.SeleniumConnector > $connectSeleniumServer.call(Unknown Source) > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > (CallSiteArray.java:40) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:117) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:121) > at org.tellurium.framework.TelluriumFramework.start > (TelluriumFramework.groovy:106) > at org.tellurium.framework.TelluriumFramework$start.callCurrent > (Unknown Source) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent > (CallSiteArray.java:44) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > (AbstractCallSite.java:143) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > (AbstractCallSite.java:147) > at org.tellurium.framework.TelluriumFramework.start > (TelluriumFramework.groovy:112) > at org.tellurium.test.java.TelluriumJavaTestCase.setUpForClass > (TelluriumJavaTestCase.java:23) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at > org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java: > 49) > at org.junit.internal.runners.ClassRoadie.runProtected > (ClassRoadie.java:36) > at org.junit.internal.runners.JUnit4ClassRunner.run > (JUnit4ClassRunner.java:42) > at com.intellij.rt.junit4.Junit4TestMethodAdapter.run > (Junit4TestMethodAdapter.java:62) > at com.intellij.rt.execution.junit.JUnitStarter.main > (JUnitStarter.java:40) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java: > 90) > > ERROR [SocketListener0-1] 11-24 16:40:07 Exception running 'cleanCache > 'command on session null (SeleniumCoreCommand.java:40) > java.lang.NullPointerException: sessionId should not be null; has this > session been started yet? > at org.openqa.selenium.server.FrameGroupCommandQueueSet.getQueueSet > (FrameGroupCommandQueueSet.java:212) > at org.openqa.selenium.server.commands.SeleniumCoreCommand.execute > (SeleniumCoreCommand.java:34) > at > org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand > (SeleniumDriverResourceHandler.java:516) > at > > org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest > (SeleniumDriverResourceHandler.java:368) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle > (SeleniumDriverResourceHandler.java:129) > 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:816) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java: > 982) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) > at org.mortbay.http.SocketListener.handleConnection > (SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > Wrong test finished. Last started: null stopped: Method Adapter: class > com.basware.bt.web.user.UserTest#testUserLang; class > com.intellij.rt.junit4.Junit4TestMethodAdapter > > com.thoughtworks.selenium.SeleniumException: ERROR Server Exception: > sessionId should not be null; has this session been started yet? > at > > com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError > (HttpCommandProcessor.java:97) > at com.thoughtworks.selenium.HttpCommandProcessor.doCommand > (HttpCommandProcessor.java:91) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite > $PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java: > 229) > at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call > (PojoMetaMethodSite.java:52) > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > (CallSiteArray.java:40) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:117) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:129) > at org.tellurium.connector.CustomSelenium.cleanSelectorCache > (CustomSelenium.groovy:145) > at org.tellurium.connector.CustomSelenium$cleanSelectorCache.call > (Unknown Source) > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > (CallSiteArray.java:40) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:117) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:121) > at > org.tellurium.connector.SeleniumConnector.disconnectSeleniumServer > (SeleniumConnector.groovy:95) > at org.tellurium.connector.SeleniumConnector > $disconnectSeleniumServer.call(Unknown Source) > at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > (CallSiteArray.java:40) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:117) > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > (AbstractCallSite.java:121) > at org.tellurium.framework.TelluriumFramework.stop > (TelluriumFramework.groovy:147) > at org.tellurium.test.java.TelluriumJavaTestCase.tearDownForClass > (TelluriumJavaTestCase.java:31) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at > org.junit.internal.runners.ClassRoadie.runAfters(ClassRoadie.java: > 65) > at org.junit.internal.runners.ClassRoadie.runProtected > (ClassRoadie.java:40) > at org.junit.internal.runners.JUnit4ClassRunner.run > (JUnit4ClassRunner.java:42) > at com.intellij.rt.junit4.Junit4TestMethodAdapter.run > (Junit4TestMethodAdapter.java:62) > at com.intellij.rt.execution.junit.JUnitStarter.main > (JUnitStarter.java:40) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java: > 90) > > > Thanks, > Khush. > On Nov 24, 3:46 pm, Harihara Vinayakaram <[email protected]> wrote: > > Hi > > Please check the following threads to see if you are having the same > > error > > > > http://groups.google.co.in/group/tellurium-users/browse_thread/thread... > > > > Regards > > Hari > > > > On Tue, Nov 24, 2009 at 4:11 PM, khush <[email protected]> > wrote: > > > > > I tried to replace tellurium 0.6.0 with 0.7.0 and also selenium-server > > > with selenium-server-1.0.1-te but i got the configuration err some > > > property file is missing. > > > > > I am just wondering if i want to have any other file with them or > > > should i also replace the other 4 files also? > > > > > thanks, > > > khush > > > On Nov 24, 3:07 pm, Harihara Vinayakaram <[email protected]> wrote: > > > > Hi > > > > Would it be better to move to tellurium-0.7.0 . If you can > additional > > > jar > > > > files can you not replace 0.6.0 with 0.7.0 > > > > > > Just curious > > > > > > Regards > > > > Hari > > > > > > On Tue, Nov 24, 2009 at 3:32 PM, khush <[email protected]> > > > wrote: > > > > > Hi All, > > > > > > > I want to integrate TelluriumPowerUtilityDiagnose in my project. > > > > > > > currently i am using tellurium 6 and its related jar file but for > > > > > TelluriumPowerUtilityDiagnose i need to have tellurium 7 > snapshot > > > > > and custom selenium server te2 jar files. > > > > > > > I want to know : > > > > > > > 1) The exact locations of these two jar files > > > > > 2) There are four other jar files json_simple.jar, selenium-grid- > > > > > tools.jar, selenium-java-client-driver.jar, stringtree-json.jar in > my > > > > > existing tellurium6 project . Will these files will work with > > > > > tellurium 7 snapshot also or their new versions also required for > > > > > TelluriumPowerUtilityDiagnose implementation. > > > > > > > Please if anybody knows this information share with me i need to > > > > > implementl TelluriumPowerUtilityDiagnose utility in my project. > > > > > > > Thanks and Regards, > > > > > Khushwinder. > > > > > > > -- > > > > > > > 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]> > <tellurium-users%[email protected]<tellurium-users%[email protected]> > > > > > <tellurium-users%[email protected]<tellurium-users%[email protected]> > <tellurium-users%[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]<tellurium-users%[email protected]> > <tellurium-users%[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]<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.
