Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Unable to start AUT which is a JNLP successfully
Unable to start AUT which is a JNLP successfully [message #1795489] Mon, 24 September 2018 09:37 Go to next message
Meghana  Iyer is currently offline Meghana IyerFriend
Messages: 6
Registered: September 2018
Junior Member
Trying to configure an AUT which is a JNLP.
This is an swt based applicationindex.php/fa/33933/0/

1. JNLP is downloaded to the below mentioned path /home/meghana/Desktop/jubula_8.6.0.262/examples/AUTs/mgmtConsole

2. The same path has a shell script which invokes the jnlp using javaws command

3. On clicking "try AUT ", below error is thrown

5009: AUT start failed
Establishing connection to AUT failed.
Please check the AUT configuration. AUTServer could not start: Unknown AUTServer exit code: 31.
Picked up _JAVA_OPTIONS: "-javaagent:/home/meghana/Desktop/jubula_8.6.0.262/ite/plugins/org.eclipse.jubula.rc.common.agent_6.0.0.201802230740.jar"
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jubula.rc.common.AutServerLauncher.main(AutServerLauncher.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jubula.rc.common.agent.RCAgent.premain(RCAgent.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Listener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:224)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:245)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:224)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:245)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:224)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:245)
at org.eclipse.jubula.rc.swt.SwtAUTServer.<init>(SwtAUTServer.java:79)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.jubula.rc.common.AUTServer.getInstance(AUTServer.java:325)
at org.eclipse.jubula.rc.common.AUTServer.main(AUTServer.java:357)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Listener
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:227)
at org.eclipse.jubula.rc.common.AutServerLauncher$UrlDefaultClassLoader.loadClass(AutServerLauncher.java:245)
... 57 more
Re: Unable to start AUT which is a JNLP successfully [message #1795544 is a reply to message #1795489] Tue, 25 September 2018 06:40 Go to previous message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 255
Registered: March 2012
Senior Member
Hello Meghana Iyer,

Jubula does not support JNLP as a startable application[1]. The problem is that the e.g. the javaws application which is started first is seen as the AUT which should be tested. That why jubula is than Missing SWT classes because this application is not a SWT one. The only possibility is to start the downloaded application and not to start it over the JNLP.

best regards
Marvin Mueller
[1] https://testing.bredex.de/faqs/can-jubula-test-java-web-start-applications.html
Previous Topic:Starting SWT AUT
Next Topic:Second time running automation, Not able to click on OK button
Goto Forum:
  


Current Time: Sun Oct 06 14:46:02 GMT 2024

Powered by FUDForum. Page generated in 0.05025 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top