java.lang.ClassNotFoundException & AnonymousTypeDeclaration2

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

java.lang.ClassNotFoundException & AnonymousTypeDeclaration2

Postby bouba331 » Sat Sep 18, 2010 5:58 am

Hi,

I've just installed the GWT Deisgner Eclipse Plugin but encouter a ClassNotFoundException related to JDT Core.

What i've done to produce this exception is:
- Create a DialogBox using File -> New -> Other ... -> WindowBuilder -> GW Designer -> Basic UI -> DialogBox
- Open the generated DialogBox Java File
- Click on the Design View Tab

The generated Exception is:
java.lang.ClassNotFoundException: org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at com.instantiations.designer.core.utils.ast.ASTNodeUtilities.getTypeByName(ASTNodeUtilities.java:581)
at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1080)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:220)
at com.instantiations.designer.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:216)
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:137)
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:133)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:135)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:408)
at com.instantiations.designer.core.editor.DesignPage.access$10(DesignPage.java:400)
at com.instantiations.designer.core.editor.DesignPage$7$1.run(DesignPage.java:337)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4342)
at com.instantiations.designer.core.editor.DesignPage$7.run(DesignPage.java:334)
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 com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:355)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:304)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:362)
at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:75)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:210)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:197)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:80)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:43)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3256)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2045)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:323)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

Full context stack trace:
java.lang.NoClassDefFoundError: org/eclipse/jdt/core/dom/AnonymousTypeDeclaration2
at com.instantiations.designer.core.utils.ast.ASTNodeUtilities.getTypeByName(ASTNodeUtilities.java:581)
at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1080)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:220)
at com.instantiations.designer.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:216)
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:137)
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:133)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:135)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:408)
at com.instantiations.designer.core.editor.DesignPage.access$10(DesignPage.java:400)
at com.instantiations.designer.core.editor.DesignPage$7$1.run(DesignPage.java:337)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4342)
at com.instantiations.designer.core.editor.DesignPage$7.run(DesignPage.java:334)
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 com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:355)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:304)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:362)
at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:75)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:210)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:197)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:80)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:43)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3256)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2045)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:323)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 60 more


Ok, I've checks the Eclipse JDT core JAR from my Eclipse Galileo 3.5.2 and thei is no org.eclipse.jdt.core.dom.AnonymousTypeDeclaration2 class in the JAR (org.eclipse.jdt.core_3.5.2.v_981_R35x.jar).

I've also tried to see if this class is present in older and newer JDT JAR but found nothing in the following JAR versions:
- org.eclipse.jdt.core_3.5.0.v_963.jar
- org.eclipse.jdt.core_3.5.1.v_972_R35x.jar
- org.eclipse.jdt.core_3.5.2.v_981_R35x.jar
- org.eclipse.jdt.core_3.6.0.v_A58.jar

The version of the GWT Designer i'm using is :
- GWT Designer
- CSS Editor 8.0.0.r35x201009131454
- GWT Designer 8.0.0.r35x201009160831
- GWT Designer Core 8.0.0.r35x201009140724
- Infrastructure
- Shared 6.0.0.r35x201009131414
- WindowBuilder Common UI Support 8.0.0.r35x201009131432
- WindowBuilder Core 8.0.0.r35x201009160631
- WindowBuilder XML Core 8.0.0.r35x201009160634

So where is this AnonymousTypeDeclaration2 class ?
What could be the problem ?

Thanks,

Baptiste
bouba331
 
Posts: 1
Joined: Sat Sep 18, 2010 5:42 am

Re: java.lang.ClassNotFoundException & AnonymousTypeDeclarat

Postby Eric Clayberg » Sat Sep 18, 2010 6:22 am

That ClassNotFoundException indicates that the product was only partially installed.

Do a full install (preferably into a new, clean Eclipse environmental), and it will be fine.

Also make sure that you are your Eclipse environment includes the full JDT and PDE as stated in the product system requirements.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest

cron