Failed to start test application with "Application Error" message [message #632082] |
Mon, 11 October 2010 13:50 |
Ravi Messages: 7 Registered: October 2010 |
Junior Member |
|
|
Hi Ketan
I tried to execute a swtbot test using "headless" option on an exported Eclipse application. But, it fails to start the test application with "Application error" message. Following are the logs:
Install location:
file:/c:/Program Files/XXXX/XXXX/
Configuration file:
file:/c:/Program Files/XXXX/XXXX/configuration/config.ini loaded
Configuration location:
file:/c:/Program Files/XXXX/XXXX/configuration/
Framework located:
file:/c:/Program Files/XXXX/XXXX/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
Framework classpath:
file:/c:/Program Files/XXXX/XXXX/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
Debug options:
file:/C:/Documents and Settings/rsingal/Desktop/.options not found
Time to load bundles: 15
Starting application: 1110
!SESSION 2010-10-11 19:05:55.592 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_19
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion -testApplication com.lm.uc.app.application -product com.lm.uc.app.product formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,results.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter -testPluginName com.lm.uc.app.product.swtbottests -className MyFirstTestCase
Command-line arguments: -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion -testApplication com.lm.uc.app.application -product com.lm.uc.app.product -data test-workspace formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,results.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter -testPluginName com.lm.uc.app.product.swtbottests -className MyFirstTestCase -os win32 -ws win32 -arch x86 -consoleLog -debug
!ENTRY org.eclipse.osgi 4 0 2010-10-11 19:05:56.749
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .start(UITestApplication.java:47)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
at org.eclipse.core.launcher.Main.main(Main.java:34)
I do not have access to the source code of the test application. I copied the required plugin jar files in the ECLIPSE_HOME/plugins folder and then executed the following command from the Command Prompt:
java -Xms256M -Xmx512M -XX:MaxPermSize=512M -classpath "C:\Program Files\XXXX\XXXX\plugins\org.eclipse.equinox.launcher_1.0.200 .v20090520.jar " org.eclipse.core.launcher.Main -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion -testApplication com.lm.uc.app.application -product com.lm.uc.app.product -data test-workspace formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,results.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain JUnitResultFormatter -testPluginName com.lm.uc.app.product.swtbottests -className MyFirstTestCase -os win32 -ws win32 -arch x86 -consoleLog -debug
but, it fails to start the application. Am I missing some required plugin or we have to make some changes in the test application itself?
[Updated on: Mon, 11 October 2010 13:51] Report message to a moderator
|
|
|
Re: Failed to start test application [message #632124 is a reply to message #632082] |
Mon, 11 October 2010 15:45 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
Looking at the stacktrace indicates that the application corresponding
to -testApplication is not found. I've fixed the error messages to
provide more information on what went wrong instead of a stacktrace like
the one you just saw.
Please see http://wiki.eclipse.org/SWTBot/Troubleshooting if you're
unable to run eclipse with the following args
-application com.your.application.id -consoleLog -debug -os win32 -ws
win32 -arch x86
If you're unable to start the app with the above command line, means
that your application might be missing some dependencies, or that swtbot
may have broken some of your apps dependencies causing it to not startup...
--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr
On 10/11/10 6:50 AM, Ravi wrote:
> Hi Ketan
>
> I tried to execute a swtbot test using "headless" option on an exported
> Eclipse application. But, it fails to start the test application with
> "Application error" message. Following are the logs:
>
> Install location:
> file:/c:/Program Files/XXXX/XXXX/
> Configuration file:
> file:/c:/Program Files/XXXX/XXXX/configuration/config.ini loaded
> Configuration location:
> file:/c:/Program Files/XXXX/XXXX/configuration/
> Framework located:
> file:/c:/Program
> Files/XXXX/XXXX/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
> Framework classpath:
> file:/c:/Program
> Files/XXXX/XXXX/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
> Debug options:
> file:/C:/Documents and Settings/rsingal/Desktop/.options not found
> Time to load bundles: 15
> Starting application: 1110
> !SESSION 2010-10-11 19:05:55.592
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_19
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -application
> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion
> -testApplication com.lm.uc.app.application -product
> com.lm.uc.app.product
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU
> nitResultFormatter,results.xml
> formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain
> JUnitResultFormatter -testPluginName com.lm.uc.app.product.swtbottests
> -className MyFirstTestCase
> Command-line arguments: -application
> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion
> -testApplication com.lm.uc.app.application -product
> com.lm.uc.app.product -data test-workspace
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU
> nitResultFormatter,results.xml
> formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain
> JUnitResultFormatter -testPluginName com.lm.uc.app.product.swtbottests
> -className MyFirstTestCase -os win32 -ws win32 -arch x86 -consoleLog -debug
>
> !ENTRY org.eclipse.osgi 4 0 2010-10-11 19:05:56.749
> !MESSAGE Application error
> !STACK 1
> org.eclipse.core.runtime.AssertionFailedException: null argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .start(UITestApplication.java:47)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:368)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> at org.eclipse.core.launcher.Main.main(Main.java:34)
>
> I do not have access to the source code of the test application. I
> copied the required plugin jar files in the ECLIPSE_HOME/plugins folder
> and then executed the following command from the Command Prompt:
>
> java -Xms256M -Xmx512M -XX:MaxPermSize=512M -classpath "C:\Program
> Files\XXXX\XXXX\plugins\org.eclipse.equinox.launcher_1.0.200
> .v20090520.jar " org.eclipse.core.launcher.Main -application
> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion
> -testApplication com.lm.uc.app.application -product
> com.lm.uc.app.product -data test-workspace
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU
> nitResultFormatter,results.xml
> formatter=org.apache.tools.ant.taskdefs.optional.junit.Plain
> JUnitResultFormatter -testPluginName com.lm.uc.app.product.swtbottests
> -className MyFirstTestCase -os win32 -ws win32 -arch x86 -consoleLog -debug
> but, it fails to start the application. Am I missing some required
> plugin or we have to make some changes in the test application itself?
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds