Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Exception in thread "WorkbenchTestable"
Exception in thread "WorkbenchTestable" [message #884488] Mon, 11 June 2012 07:14 Go to next message
Roger Gilliar is currently offline Roger GilliarFriend
Messages: 40
Registered: March 2010
Member
Hi after successfuly using SWTbot on a test project at home I tried using it on a real project at the office. Now I get:

Exception in thread "WorkbenchTestable" java.lang.IllegalArgumentException: No Classloader found for plug-in de.test.toolboox
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getClassLoader(RemotePluginTestRunner.java:79)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getTestClassLoader(RemotePluginTestRunner.java:73)

It seems that log4j is missing. But I added a log4j dependency (1.2.16). That should at least satisfy [1.2.13,1.3.0).
And org.apache.log4j_1.2.12 is missing. But how to add that as a plugin ?

BTW: I'm using Eclipse 3.7.2 on Mac OS x.

Regards
Roger

Logoutput:

!ENTRY org.eclipse.osgi 2 0 2012-06-11 09:00:00.958
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-11 09:00:00.959
!MESSAGE Bundle reference:file:/Applications/eclipseRCP/plugins/org.eclipse.swtbot.eclipse.gef.finder_2.0.5.20111003_1754-3676ac8-dev-e36.jar was not resolved.
!SUBENTRY 2 org.eclipse.swtbot.eclipse.gef.finder 2 0 2012-06-11 09:00:00.959
!MESSAGE Missing imported package org.apache.log4j_[1.2.13,1.3.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-11 09:00:00.959
!MESSAGE Bundle reference:file:/Applications/eclipseRCP/plugins/org.eclipse.swtbot.eclipse.finder_2.0.5.20111003_1754-3676ac8-dev-e36.jar was not resolved.
!SUBENTRY 2 org.eclipse.swtbot.eclipse.finder 2 0 2012-06-11 09:00:00.960
!MESSAGE Missing imported package org.apache.log4j_[1.2.13,1.3.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-11 09:00:00.960
!MESSAGE Bundle reference:file:/Applications/eclipseRCP/plugins/org.eclipse.swtbot.junit4_x_2.0.5.20111003_1754-3676ac8-dev-e36.jar was not resolved.
!SUBENTRY 2 org.eclipse.swtbot.junit4_x 2 0 2012-06-11 09:00:00.960
!MESSAGE Missing imported package org.apache.log4j_1.2.12.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-06-11 09:00:00.960
!MESSAGE Bundle reference:file:/Applications/eclipseRCP/plugins/com.sun.syndication_0.9.0.v200803061811.jar was not resolved.
!SUBENTRY 2 com.sun.syndication 2 0 2012-06-11 09:00:00.961
!MESSAGE Missing imported package org.jdom.filter_1.0.0.
Re: Exception in thread "WorkbenchTestable" [message #884657 is a reply to message #884488] Mon, 11 June 2012 15:12 Go to previous messageGo to next message
Roger Gilliar is currently offline Roger GilliarFriend
Messages: 40
Registered: March 2010
Member
The problem is that there is a plugin project with newer log4j libraries. As soon as I close this project SWTBot works. The problem is that all the other plugins require this dependency. I tried configuring a run configration without the log4j dependency (using 'plugins selected below' instead of 'all workspace and target enabled plugins') .
But after that I got:

org.eclipse.core.runtime.AssertionFailedException: null argument:Could not find IExtension for application: org.eclipse.ui.ide.workbench

Regards
Roger
Re: Exception in thread "WorkbenchTestable" [message #884932 is a reply to message #884657] Tue, 12 June 2012 05:58 Go to previous message
Roger Gilliar is currently offline Roger GilliarFriend
Messages: 40
Registered: March 2010
Member
Problem is solved. I used 'plug-ins selected below only' selected all plugins from the Target Platform and selected only the test plugin from the workspace.

Regards
Roger
Previous Topic:test JVM exiting unexpectedly
Next Topic:SWTBot cannot find pop up message box
Goto Forum:
  


Current Time: Fri Apr 19 10:47:43 GMT 2024

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

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

Back to the top