Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348027 - java.lang.NoClassDefFoundError: org/eclipse/jdt/core/dom/AnonymousTypeDeclaration2 when opening 'Design' pane
Summary: java.lang.NoClassDefFoundError: org/eclipse/jdt/core/dom/AnonymousTypeDeclara...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 17:56 EDT by Jesper Moller CLA
Modified: 2021-06-04 16:44 EDT (History)
1 user (show)

See Also:


Attachments
Bug description as created by WindowBuilder (88.50 KB, application/octet-stream)
2011-06-01 17:58 EDT, Jesper Moller CLA
no flags Details
Screenshot of the editor (205.87 KB, image/png)
2011-06-01 18:00 EDT, Jesper Moller CLA
no flags Details
Dump of "bad" Eclipse confiuration details (283.42 KB, text/plain)
2011-06-02 04:58 EDT, Jesper Moller CLA
no flags Details
Dump of "good" Eclipse confiuration details (373.36 KB, text/plain)
2011-06-02 04:59 EDT, Jesper Moller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesper Moller CLA 2011-06-01 17:56:38 EDT
I got the error attached using Indigo RC2 with installed WindowBuilder.

I would expect Mac problems, but this appears to be low-level OSGi / JDT stuff?

Steps to reproduce:
 - Fresh Indigo RC2 with just a few plugins (XML tooling, M2E, EGit, Mylyn)
 - Create a "SWT/JFace Java Project"
 - Create any SWT based class
 - Open the newly creatd class
 - Switch to Design tab
 - exception occurs
 
 AnonymousTypeDeclaration2
	at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1174)
	at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:244)
	at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:240)
	at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
	at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
	at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:153)
	at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
	at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:512)
	at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:500)
	at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:433)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4608)
	at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:430)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
	at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:449)
	at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:399)
	at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
	at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
	at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:247)
	at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:225)
	at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
	at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4123)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2745)
	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1432)
	at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4123)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3969)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3608)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:344)
	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:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 63 more
Comment 1 Jesper Moller CLA 2011-06-01 17:58:34 EDT
Created attachment 197184 [details]
Bug description as created by WindowBuilder
Comment 2 Jesper Moller CLA 2011-06-01 18:00:20 EDT
Created attachment 197185 [details]
Screenshot of the editor
Comment 3 Jesper Moller CLA 2011-06-01 18:01:23 EDT
Sorry, could be wrong component, but no entry for 'just' SWT.
Comment 4 Jesper Moller CLA 2011-06-02 04:58:30 EDT
Created attachment 197222 [details]
Dump of "bad" Eclipse confiuration details

I tried the plugins with a simpler Eclipse install, and it worked, so the problem must be caused by interference with other bundles.

This is the config which fails.
Comment 5 Jesper Moller CLA 2011-06-02 04:59:01 EDT
Created attachment 197223 [details]
Dump of "good" Eclipse confiuration details

And this is the good one.
Comment 6 Konstantin Scheglov CLA 2011-06-03 11:14:54 EDT
Works for me.

I see a lot of exceptions in log.
I see also that many bundles in "bad" configuration stuck in [Starting] state, which means that their start() method started to run, but not finished.
So, I think that this is Eclipse configuration problem.

Reopen, if you know exact steps how to reproduce this and think that this is bug in WB.