Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SwtBot 2 and RCP apps
SwtBot 2 and RCP apps [message #29485] Mon, 23 March 2009 17:21 Go to next message
Nicolas Bihan is currently offline Nicolas Bihan
Messages: 49
Registered: July 2009
Member
Hello there,

just tried SWTBot with my RCP application.

So I Installed SWTBot from the update site :

http://download.eclipse.org/technology/swtbot/ganymede/dev-b uild/update-site

Tested the Project creation example from the wiki. It fails creating the
project but it can launch Eclipse.

Now I want to test my own RCP app. I selected the product in the "Run
configurations..." of my test.
But I get this error

Caused by: java.lang.NoClassDefFoundError:
org/eclipse/debug/ui/actions/AbstractLaunchToolbarAction
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:165)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:554)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:524)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:455)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:443)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:423)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
com.itnsa.fwk.rcp.commons.osgi.BundleManager.loadClass(Bundl eManager.java:80)
at
com.itnsa.fwk.rcp.actions.command.mapping.ActionMapping.getA ctionClass(ActionMapping.java:61)
at
com.itnsa.fwk.rcp.actions.command.mapping.ActionCommandMappi ngManager.addMapping(ActionCommandMappingManager.java:40)
at com.itnsa.assurance.rcp.core.Activator.start(Activator.java: 106)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 43 more
Caused by:
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.debug.ui (107).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
... 60 more
Caused by: org.osgi.framework.BundleException: Exception in
org.eclipse.debug.internal.ui.DebugUIPlugin.start() of bundle
org.eclipse.debug.ui.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 61 more
Caused by: java.lang.IllegalStateException: Workbench has not been
created yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingReso urceManager.startup(LaunchingResourceManager.java:528)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.getLaunchingReso urceManager(DebugUIPlugin.java:297)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.start(DebugUIPlu gin.java:494)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 66 more

hum, I have org.eclipse.debug.ui selected in my plugins list of the test
launcher oO..

Now if I remove the org.eclipse.debug.ui my app start but there is no
test, it just launch my app...

I'm confused, any idea to help me please ?

I will give a try to a more basic RCP app later (RCP mail).

Nicolas Bihan
Re: SwtBot 2 and RCP apps [message #29523 is a reply to message #29485] Mon, 23 March 2009 19:51 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
On 23/3/09 14:21, Nicolas Bihan wrote:
> Caused by: java.lang.IllegalStateException: Workbench has not been
> created yet.
> at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)

Perhaps that is the culprit, how are you launching your tests. You need
to launch them with the swtbot launch configuration.

-- Ketan
Re: SwtBot 2 and RCP apps [message #29553 is a reply to message #29523] Mon, 23 March 2009 21:05 Go to previous message
Nicolas Bihan is currently offline Nicolas Bihan
Messages: 49
Registered: July 2009
Member
Ketan Padegaonkar a écrit :
> On 23/3/09 14:21, Nicolas Bihan wrote:
>> Caused by: java.lang.IllegalStateException: Workbench has not been
>> created yet.
>> at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
>
> Perhaps that is the culprit, how are you launching your tests. You need
> to launch them with the swtbot launch configuration.
>
> -- Ketan

Yes, I use the swtbot launch configuration.
Previous Topic:problem with the main SWTBot update site?
Next Topic:Simulate mouse click on Zest Graph control.
Goto Forum:
  


Current Time: Thu Aug 28 01:16:37 EDT 2014

Powered by FUDForum. Page generated in 0.02938 seconds