Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343998 - NoClassDefFoundError
Summary: NoClassDefFoundError
Status: CLOSED WORKSFORME
Alias: None
Product: Jubula
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: Indigo SR2   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 13:15 EDT by Vladimir CLA
Modified: 2011-10-18 10:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir CLA 2011-04-27 13:15:02 EDT
Use demo EclipseConTest provided by your company.

1) Download Eclipse Ganymede for J2EE development
2) Start Jubula
3) Go to test properties and add new AUT configuration to GEF 
4) Point to Ganymede
5) Start AUT via Jubula
6) Manually create new Java project
7) Manually add new class. Popup NoClassDefFoundError message occurs 
8) Open log file and you can see message:
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
With stack trace:
java.lang.NoClassDefFoundError: org.eclipse.gef.GraphicalViewer
	at org.eclipse.jubula.rc.rcp.gef.listener.GefPartListener.class$(Unknown Source)
	at org.eclipse.jubula.rc.rcp.gef.listener.GefPartListener.partOpened(Unknown Source)
	at org.eclipse.jubula.rc.rcp.gef.listener.GefPartListener.partVisible(Unknown Source)
	at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:880)
	at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
	at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
	at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:252)
	at org.eclipse.ui.internal.WWinPartService$1.partVisible(WWinPartService.java:60)
	at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:880)
	at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
	at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
	at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:252)
	at org.eclipse.ui.internal.PartService$PartVisible.fire(PartService.java:109)
	at org.eclipse.ui.internal.PartService.processPartJobs(PartService.java:160)
	at org.eclipse.ui.internal.PartService$PartListener.handleEvent(PartService.java:87)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1566)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1439)
	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2949)
	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:1006)
	at org.eclipse.swt.widgets.Decorations.restoreFocus(Decorations.java:413)
	at org.eclipse.swt.widgets.Shell.kEventWindowActivated(Shell.java:1004)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2035)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4171)
	at org.eclipse.swt.internal.carbon.OS.ShowWindow(Native Method)
	at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:1792)
	at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1764)
	at org.eclipse.swt.widgets.Shell.open(Shell.java:1298)
	at org.eclipse.jface.window.Window.open(Window.java:797)
	at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow.java:778)
	at org.eclipse.ui.internal.Workbench$22.runWithException(Workbench.java:1043)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:178)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:3955)
	at org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExceptions(StartupThreading.java:50)
	at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:1040)
	at org.eclipse.ui.internal.Workbench.access$29(Workbench.java:1001)
	at org.eclipse.ui.internal.Workbench$51.run(Workbench.java:1984)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.Workbench.openWorkbenchWindow(Workbench.java:1981)
	at org.eclipse.ui.internal.handlers.OpenInNewWindowHandler.execute(OpenInNewWindowHandler.java:58)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

9) If you run demo tests you will see failures
Comment 1 Vladimir CLA 2011-04-27 13:23:55 EDT
You can create test which adds new class to the Java project but it is easy to reproduce error when you do it manually.
Comment 2 Achim Loerke CLA 2011-05-11 05:55:37 EDT
Was GEF installed with the Ganymede Eclipse? If not, this would explain the error.
Comment 3 Vladimir CLA 2011-05-11 12:32:25 EDT
OK. Forget about EclipseConTest and GEF. Use Eclipse Ganymede as your AUT. Add RCP plugin into plugins directory. Use the same steps:
5) Start AUT via Jubula
6) Manually create new Java project. Popup NoClassDefFoundError message occurs
7) Manually add new class. Popup NoClassDefFoundError message occurs 
8) Open log file and you can see message: bla-bla-bla

This error occurs each time when Jubula runs tests.
Comment 4 Vladimir CLA 2011-05-11 13:55:38 EDT
BTW I am using JEE version of Eclipse Ganymede (eclipse-jee-ganymede-SR2-win32) There is another point: you can start Eclipse manually and observe the same error.
Comment 5 Alexandra Schladebeck CLA 2011-07-19 08:39:35 EDT
This problem has also been noted in the GUIdancer Bugzilla:

http://bugzilla.bredex.de/52
Comment 6 Alexandra Schladebeck CLA 2011-07-21 02:42:57 EDT
Vladimir, another customer who was having this problem found that after a resetup (uninstall and reinstall of Eclipse plugins), the problem no longer occurred. Are you still able to reproduce the problem after reinstalling plugins? If so, please let us know which GEF version plugins you are using.
Comment 7 Zeb Ford-Reitz CLA 2011-09-13 11:48:40 EDT
Missed the cutoff for Indigo SR1. Re-scheduling to Indigo SR2.
Comment 8 Alexandra Schladebeck CLA 2011-10-18 10:03:08 EDT
As there has been no further input from the reporter, I am closing this bug as works for me.