GWT Designer Stack Trace

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

GWT Designer Stack Trace

Postby pegasuswebservices » Tue Jun 17, 2008 11:06 am

I added the GWT Designer to an existing project and I'm getting a stack trace. I email'd Tech Support who told me to compare it with the Test Project. I compared all, but didn't see anything obvious. I'm seeing a stack trace indicating a class not found for the gwtext Panel when switching from the Source to the Design tab.

The first error in the stack trace is: Caused by: java.lang.NoClassDefFoundError: com.gwtext.client.widgets.Panel
It looks like some kindof classpath problem for the GWT Designer tool as the application builds and runs fine.

Any help would be greatly appreciated. As I checked the Project Configuration and I'm stumped.

Here's the stack trace:

org.apache.commons.lang.exception.NestableError: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:119)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:96)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:89)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1446)
at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:336)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:311)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:143)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:3018)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:213)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:319)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1149)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1077)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1071)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1062)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:391)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:178)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:171)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
... 64 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.swtdesigner.gwt.model.GwtExtSupport.create(GwtExtSupport.java:117)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:141)
... 65 more
Caused by: java.lang.NoClassDefFoundError: com.gwtext.client.widgets.Panel
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at java.beans.Introspector$1.run(Introspector.java:1272)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1270)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1136)
at java.beans.Introspector.getBeanInfo(Introspector.java:387)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at com.swtdesigner.model.swing.JavaBeanInfo.createSharedBeanDefinition(JavaBeanInfo.java:3172)
at com.swtdesigner.model.swing.JavaBeanInfo.getSharedBeanDefinition(JavaBeanInfo.java:3135)
at com.swtdesigner.model.swing.JavaBeanInfo.initClassAndBounds(JavaBeanInfo.java:1739)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.initClassAndBounds(UIObjectInfo.java:118)
at com.swtdesigner.model.swing.JavaBeanInfo.<init>(JavaBeanInfo.java:277)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:68)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:52)
at com.swtdesigner.gwt.model.widgets.GwtExtGridPanelInfo.<init>(GwtExtGridPanelInfo.java:32)
... 71 more
pegasuswebservices
 
Posts: 3
Joined: Tue Jun 17, 2008 9:48 am

Re: GWT Designer Stack Trace

Postby Eric Clayberg » Tue Jun 17, 2008 11:22 am

A NoClassDefFoundError exception pointing to a GWT-Ext class typically means that you don't have your project configured to use GWT-Ext correctly.

Did you follow the instructions on the GWT-Ext web site?

What exact steps did you follow to add GWT-Ext to your project?

If our test project works for you and your project doesn't, your project must be missing something significant.

You can always send a test case, if you need further help.
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

Re: GWT Designer Stack Trace

Postby pegasuswebservices » Tue Jun 17, 2008 12:35 pm

Two key factors here....This project has been using GWT-EXT and has building and running fine. It is only the transition from the Source Tab to the Design Tab does this problem occur.

As far as how this project was created. It was already created when I arrived here. If you need additional information I can pursue the answer to this. It is my understanding that it was created using Maven.

If you'd like I can zip up the project and email it to you.

-- Jeff
pegasuswebservices
 
Posts: 3
Joined: Tue Jun 17, 2008 9:48 am

Re: GWT Designer Stack Trace

Postby Eric Clayberg » Tue Jun 17, 2008 12:55 pm

If the project was not created with GWT Designer, have you converted it into a GWT Designer project yet?

Feel free to send us a test case any time you like.
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

Re: GWT Designer Stack Trace

Postby pegasuswebservices » Tue Jun 17, 2008 1:33 pm

No I haven't. Are there directions somewhere that tell me how to do so?

-- Jeff
pegasuswebservices
 
Posts: 3
Joined: Tue Jun 17, 2008 9:48 am

Re: GWT Designer Stack Trace

Postby Eric Clayberg » Tue Jun 17, 2008 2:26 pm

pegasuswebservices wrote:No I haven't. Are there directions somewhere that tell me how to do so?

Yes. This is covered in the docs (both on-line and in your Eclipse Help).
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 3 guests