Hi This seems to be an error in the JUnit methods. I don't think it should be so difficult to migrate to a new version.
There seems to be a problem in the TelluriumConfig.groovy . Can you post that also Regards Hari On Tue, Nov 24, 2009 at 5:02 PM, khush <[email protected]> wrote: > Hello Hari, > > After using IE that problem goes now i get the following err: > > Wrong test finished. Last started: null stopped: Method Adapter: class > com.basware.bt.web.user.UserTest#testUserLang; class > com.intellij.rt.junit4.Junit4TestMethodAdapter > > java.lang.ExceptionInInitializerError > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:169) > at org.tellurium.bootstrap.TelluriumSupport.class$ > (TelluriumSupport.groovy) > at > org.tellurium.bootstrap.TelluriumSupport.$get$$class$org$tellurium > $framework$TelluriumFrameworkMetaClass(TelluriumSupport.groovy) > at org.tellurium.bootstrap.TelluriumSupport.addSupport > (TelluriumSupport.groovy:17) > at org.tellurium.test.java.TelluriumJavaTestCase.setUpForClass > (TelluriumJavaTestCase.java:22) > 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) > Caused by: > org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot > cast object '{}' with class 'groovy.util.ConfigObject' to class > 'java.lang.Number' > at > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber > (DefaultTypeTransformation.java:135) > at > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber > (DefaultTypeTransformation.java:117) > at > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.intUnbox > (DefaultTypeTransformation.java:56) > at > > org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType > (DefaultTypeTransformation.java:305) > at org.codehaus.groovy.reflection.CachedField.setProperty > (CachedField.java:61) > at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2341) > at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3291) > at org.tellurium.bundle.CommandBundleProcessor.setProperty > (CommandBundleProcessor.groovy) > at groovy.lang.GroovyObject$setProperty.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:129) > at > org.tellurium.config.TelluriumConfigurator.configCommandBundleProcessor > (TelluriumConfigurator.groovy:46) > 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.PogoMetaMethodSite > $PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java: > 266) > at > org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent > (PogoMetaMethodSite.java:51) > 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:151) > at org.tellurium.config.TelluriumConfigurator.config > (TelluriumConfigurator.groovy:219) > at org.tellurium.config.Configurator$config.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:125) > at org.tellurium.framework.TelluriumFramework.<init> > (TelluriumFramework.groovy:86) > 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:196) > at org.tellurium.framework.TelluriumFrameworkMetaClass.<clinit> > (TelluriumFrameworkMetaClass.groovy:11) > ... 25 more > > I never knew that for implementing the diagnosis utility i have to go > through a number of errs. > I am just trying to use the jar files recomended. Do not know what is > the problem with them. > > Thanks, > Khush. > > On Nov 24, 4:16 pm, Harihara Vinayakaram <[email protected]> wrote: > > 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 > > > > ... > > > > read more ยป > > -- > > 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.
