|
|
Re: Starting SWT AUT [message #690322 is a reply to message #690318] |
Wed, 29 June 2011 11:28 |
Francois Genolini Messages: 14 Registered: June 2011 Location: UK, Aberdeen |
Junior Member |
|
|
You say that you have successfully managed to start at least one of the Jubula example AUTs. Because they work, then its your app that is not starting.
Does your app start from the command line?
Have you specified the JRE as well as your app?
The logs are in the user's home directory under .jubula/logs/aut_agent_0.log
[Updated on: Wed, 29 June 2011 11:32] Report message to a moderator
|
|
|
|
Re: Starting SWT AUT [message #690977 is a reply to message #690958] |
Thu, 30 June 2011 13:49 |
Francois Genolini Messages: 14 Registered: June 2011 Location: UK, Aberdeen |
Junior Member |
|
|
I have tried to do something similar to what you suggest, but mine works.
The difference seems to be that I have a few more lines at the start of my batch file:
D:
CD \Folder\Where\JAR\File\Is
"C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe" -jar name_of_jar_file.jar %1 %2 %3
As long as all the paths are known, this should work.
I have not managed to get the same error as you have, but I have others.
For example if deliberately specify the wrong jar file (typo, jar file not in class path because batch file started from another drive and folder...) I get the following error message in the client log:
[Connection.ReaderThread:Socket[addr=/myIP,port=60000,localport=63748]] ERROR o.e.j.c.c.c.StartAUTServerStateCommand - AUTServer could not start: invalid arguments
Also if I deliberately make my Java application fail and return error code -1 using System.exit(-1), I get an error message in the standalone ITE saying:
5009: AUT start failed
Establishing connection to AUT failed.
Please check the AUT configuration.
I also get an error message in the Client log:
[Connection.ReaderThread:Socket[addr=/myIP,port=60000,localport=64068]] ERROR o.e.j.c.c.c.StartAUTServerStateCommand - AUTServer could not start: unknown AUTServer exit code: '-1'
This all seems to work as designed and be rather good at error reporting
[Updated on: Thu, 30 June 2011 14:24] Report message to a moderator
|
|
|
Re: Starting SWT AUT [message #691061 is a reply to message #690958] |
Thu, 30 June 2011 15:59 |
Eclipse User |
|
|
|
Originally posted by:
On 2011-06-30 15:18:16 +0200, Stephan said:
> The batch file I am trying to start as AUT (and I can start it
> manually) looks like this:
>
> "C:\Program Files\Java\jdk1.6.0_19\jre\bin\javaw" -jar pedit.jar %1 %2 %3
> The parameters are optional.
Francois might be on to something. Did you set the the "AUT
Base/Working Directory" in the AUT configuration? jar files and all
other elements with relative path names on the classpath are looked up
using this directory as its base. The default for this directory is the
installation directory of the AUTAgent.
- Achim
|
|
|
|
|
|
|
|
|
Re: Starting SWT AUT [message #1505246 is a reply to message #689868] |
Tue, 09 December 2014 23:48 |
|
I have encountered the same issue. Was a resolution ever found? My application also starts correctly outside of Jubula, but when I startAUT, the JVM terminates with exit code 25.
|
|
|
|
Re: Starting SWT AUT [message #1506125 is a reply to message #1505246] |
Wed, 10 December 2014 15:54 |
|
Resolution found. I am using Hudson jobs to build and deploy the AUT. A different user owned the file permissions for the workspace/.metadata in the base/working directory than the user running the test. Either need to have the same user, or open file permissions in the working directory.
|
|
|
|
Re: Starting SWT AUT [message #1699002 is a reply to message #689868] |
Fri, 19 June 2015 12:10 |
Nick S Messages: 4 Registered: March 2014 |
Junior Member |
|
|
I have what seems to be exactly this problem (persistent 5009: AUT start failed), using the Jubula Function Testing plugin 2.3.0.201406030848 downloaded via the eclipse marketplace. (I have Eclipse Juno, Service Release 2 build ID 3.0.201406030848, and am running on Ubuntu Precise.) I am using the embedded AUT.
There appears to be no information in the logs, the help->client log and help->aut log menu items do nothing, and in ~/.jubula/logs I find only old log files for aut_agent.log and client.log (with errors from my previous efforts, no doubt)
However, checking the process information for eclipse, I see it is writing in ~/.xsession-errors, and there's a clue there (see below). Essentially it looks like there's an exception killing the AUT, "NoClassDefFoundError: org/apache/log4j/Level". Note this is not a ClassNotFoundException. The SLF4J message is allegedly just a warning, I am not sure if it is relevant.
Elsewhere in the .xsession-errors file, I also see the error (also below) "No appenders could be found for logger (org.eclipse.jubula.client.core.ClientTestImpl)."
Being bold, Iguessed the SLG4J message *is* related, so I moved the older jar mentioned (org.slf4j.impl.log4j12_1.7.2.v20131105-2200.jar) away, and restarted eclipse. Now the AUT fails, but again the error appears in .xsession-errors, and for a different error, one created by my application. Now that error is one I know how to fix, and the next time I run the AUT, the application starts!
So, the important thing seems to be to remember to look in .xsession-errors (or an equivalent), as the Log4J initialisation can fail. In my case, SLF4J seems to have two bindings, and the wrong one is chosen. Maybe this will help someone else.
AUT:SLF4J: Class path contains multiple SLF4J bindings.
AUT:SLF4J: Found binding in [jar:file:/home/nick/i/eclipse/plugins/org.slf4j.impl.log4j12_1.7.2.v20131105-2200.jar!/org/slf4j/impl/StaticLoggerBinder.class]
AUT:SLF4J: Found binding in [jar:file:/home/nick/i/eclipse/plugins/ch.qos.logback.slf4j_1.0.7.v20121108-1250.jar!/org/slf4j/impl/StaticLoggerBinder.class]
AUT:SLF4J: See http //www.slf4j.org/codes.html#multiple_bindings for an explanation.
AUT:Failed to instantiate SLF4J LoggerFactory
AUT:Reported exception:
AUT:java.lang.NoClassDefFoundError: org/apache/log4j/Level
AUT: at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
AUT: at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
AUT: at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
AUT: at org.eclipse.jubula.rc.common.AUTServer.<clinit>(AUTServer.java:78)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
AUT: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
AUT: at java.lang.reflect.Method.invoke(Method.java:606)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher.main(AutServerLauncher.java:96)
AUT:Caused by: java.lang.ClassNotFoundExceptioAUT:SLF4J: Class path contains multiple SLF4J bindings.
AUT:SLF4J: Found binding in [jar:file:/home/nick/i/eclipse/plugins/org.slf4j.impl.log4j12_1.7.2.v20131105-2200.jar!/org/slf4j/impl/StaticLoggerBinder.class]
AUT:SLF4J: Found binding in [jar:file:/home/nick/i/eclipse/plugins/ch.qos.logback.slf4j_1.0.7.v20121108-1250.jar!/org/slf4j/impl/StaticLoggerBinder.class]
AUT:SLF4J: See http //www.slf4j.org/codes.html#multiple_bindings for an explanation.
AUT:Failed to instantiate SLF4J LoggerFactory
AUT:Reported exception:
AUT:java.lang.NoClassDefFoundError: org/apache/log4j/Level
AUT: at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
AUT: at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
AUT: at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
AUT: at org.eclipse.jubula.rc.common.AUTServer.<clinit>(AUTServer.java:78)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
AUT: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
AUT: at java.lang.reflect.Method.invoke(Method.java:606)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher.main(AutServerLauncher.java:96)
AUT:Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
AUT: at java.security.AccessController.doPrivileged(Native Method)
AUT: at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
AUT: at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:228)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:246)
AUT: ... 11 more
AUT:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
AUT: at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
AUT: at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
AUT: at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
AUT: at org.eclipse.jubula.rc.common.AUTServer.<clinit>(AUTServer.java:78)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
AUT: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
AUT: at java.lang.reflect.Method.invoke(Method.java:606)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher.main(AutServerLauncher.java:96)
AUT:Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
AUT: at java.security.AccessController.doPrivileged(Native Method)
AUT: at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
AUT: at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:228)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:246)
AUT: ... 11 more
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 146 has no property named 'icon'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 146 has no property named 'time'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 146 has no property named 'draw-attention'
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 147 has no property named 'icon'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 147 has no property named 'time'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 147 has no property named 'draw-attention'
n: org.apache.log4j.Level
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
AUT: at java.security.AccessController.doPrivileged(Native Method)
AUT: at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
AUT: at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:228)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:246)
AUT: ... 11 more
AUT:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level
AUT: at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
AUT: at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
AUT: at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
AUT: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
AUT: at org.eclipse.jubula.rc.common.AUTServer.<clinit>(AUTServer.java:78)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
AUT: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
AUT: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
AUT: at java.lang.reflect.Method.invoke(Method.java:606)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher.main(AutServerLauncher.java:96)
AUT:Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
AUT: at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
AUT: at java.security.AccessController.doPrivileged(Native Method)
AUT: at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
AUT: at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:228)
AUT: at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:246)
AUT: ... 11 more
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 146 has no property named 'icon'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 146 has no property named 'time'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 146 has no property named 'draw-attention'
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
plasma-desktop(2590)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 147 has no property named 'icon'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 147 has no property named 'time'
(process:2590): libindicate-WARNING **: Unable to get property data: GDBus.Error:com.canonical.indicate.NO_SUCH_PROPERTY: Indicator 147 has no property named 'draw-attention'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://2381.fwk295932193:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://2381.fwk295932193:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http //www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (org.eclipse.jubula.client.core.ClientTestImpl).
log4j:WARN Please initialize the log4j system properly.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05394 seconds