WindowsTesterPro record fails to launch my swing application

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

WindowsTesterPro record fails to launch my swing application

Postby keico » Wed Jan 05, 2011 9:06 am

Hello,

I was able to run a swing application in eclipse. However, within the WindowsTester Pro Record this application failed to launch. Below are the exceptions I received from the Eclipse console:
...
Caused by: gov.nasa.worldwind.exception.WWRuntimeException: Error while creating World Wind component gov.nasa.worldwind.BasicSceneController
at gov.nasa.worldwind.WorldWind.createComponent(Unknown Source)
... 33 more
Caused by: java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper
at gov.nasa.worldwind.render.DrawContextImpl.<init>(Unknown Source)
at gov.nasa.worldwind.AbstractSceneController.<init>(Unknown Source)
at gov.nasa.worldwind.BasicSceneController.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
... 34 more
Caused by: java.lang.ClassNotFoundException: com.sun.gluegen.runtime.DynamicLookupHelper
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 43 more

I believe one of the reasons that my swing application failed to launch within the WindowsTester Pro is that the org.eclipse.osgi.internal.loader.BundleLoader was not able to locate this class at run time: com.sun.gluegen.runtime.DynamicLookupHelper

Suppose I have a jar file, named c:\jar\gluegen-rt.jar that contains the class: com.sun.gluegen.runtime.DynamicLookupHelper.class
I was wondering if there is a way to set class path so that the org.eclipse.osgi.internal.loader.BundleLoader can find the the missing class at run time.

Here are additional information of my system:
Eclipse
Version: Helios Service Release 1
Build id: 20100917-0705
java - 1.6.0_21
OS - Windows XP Service Pack 3

Your help is greatly appreciated!
Thank you!
keico
 
Posts: 21
Joined: Wed Jan 05, 2011 7:37 am

Re: WindowsTesterPro record fails to launch my swing applica

Postby keertip » Wed Jan 05, 2011 1:34 pm

Is this jar on the classpath for the application? (Java Build Path > Libraries)
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: WindowsTesterPro record fails to launch my swing applica

Postby keico » Mon Jan 10, 2011 8:33 am

First, I would like to thank you for your quick response. After received your reply, I did a quick check and verified that the jar file was in fact on the classpath. So that didn't help much. However when I renamed this jar file to other name but gluegen-rt.jar, the tool picked up the changes and it WORKED just fine. I still do not understand why the name of a jar file is the cause of the issue here but I got it finally working.
keico
 
Posts: 21
Joined: Wed Jan 05, 2011 7:37 am

Re: WindowsTesterPro record fails to launch my swing applica

Postby keertip » Mon Jan 10, 2011 9:51 am

Not sure why the rename helped, but glad that the problem was solved!
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: WindowsTesterPro record fails to launch my swing applica

Postby mijo » Thu Mar 31, 2011 5:20 am

I was having the same problem as keico except WindowsTester was failing to find a class in a jar named jaxws-rt. I applied keico's solution and it worked for me. Thanks keico. I experimented with different jar names and it seems that the problem may be when the jar name ends with "-rt" (dash and lower case rt).
mijo
 
Posts: 1
Joined: Thu Mar 31, 2011 4:32 am

Re: WindowsTesterPro record fails to launch my swing applica

Postby keertip » Thu Mar 31, 2011 10:40 am

Glad that keico solution worked!
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron