GWT Design view throws RuntimeException

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 Design view throws RuntimeException

Postby sape » Wed Jan 02, 2008 11:33 pm

I installed the GWT designer on a clean Eclipse 3.3 but it doesn't seem to work. I get the following stack trace. Does anybody have an idea why I get this exception?
Code: Select all
Stack Trace:
java.lang.RuntimeException: Error (The specified module could not be found.
) executing JavaScript:
window["__defineStatic"] = function(__arg0) { window.__static = __arg0;
};

    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.execute(ModuleSpaceIE6.java:122)
    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.createNative(ModuleSpaceIE6.java:102)
    at com.swtdesigner.gwt.support.host.ModuleSpace.initializeStaticDispatcher(ModuleSpace.java:40)
    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.<init>(ModuleSpaceIE6.java:29)
    at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.prepareShellJavaScriptHost(GWTStateIE6.java:39)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:131)
    at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:28)
    at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1470)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:394)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:181)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:63)
    at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:50)
    at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:35)
    at com.swtdesigner.gwt.model.widgets.panel.PanelInfo.<init>(PanelInfo.java:25)
    at com.swtdesigner.gwt.model.widgets.panel.ComplexPanelInfo.<init>(ComplexPanelInfo.java:23)
    at com.swtdesigner.gwt.model.widgets.panel.AbsolutePanelInfo.<init>(AbsolutePanelInfo.java:36)
    at com.swtdesigner.gwt.model.widgets.panel.RootPanelInfo.<init>(RootPanelInfo.java:23)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:152)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
    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.isComponentCreation(JavaInfoParser.java:3766)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1885)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
    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.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
    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.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
    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:3003)
    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:320)
    at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1140)
    at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1072)
    at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1066)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1059)
    at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:426)
    at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:196)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)
Full stack trace (to see full context):
org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3777)
    at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1885)
    at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
    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.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
    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.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
    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:3003)
    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:320)
    at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1140)
    at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1072)
    at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1066)
    at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1059)
    at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:426)
    at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:196)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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: 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.isComponentCreation(JavaInfoParser.java:3766)
    ... 62 more
Caused by: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
    at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:160)
    at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
    ... 65 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:152)
    ... 66 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: java.lang.RuntimeException: java.lang.RuntimeException: initializeStaticDispatcher(0): Failed to create JSNI method with signature '__defineStatic'
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:396)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:181)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:63)
    at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:50)
    at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:35)
    at com.swtdesigner.gwt.model.widgets.panel.PanelInfo.<init>(PanelInfo.java:25)
    at com.swtdesigner.gwt.model.widgets.panel.ComplexPanelInfo.<init>(ComplexPanelInfo.java:23)
    at com.swtdesigner.gwt.model.widgets.panel.AbsolutePanelInfo.<init>(AbsolutePanelInfo.java:36)
    at com.swtdesigner.gwt.model.widgets.panel.RootPanelInfo.<init>(RootPanelInfo.java:23)
    ... 71 more
Caused by: org.apache.commons.lang.exception.NestableError: java.lang.RuntimeException: java.lang.RuntimeException: initializeStaticDispatcher(0): Failed to create JSNI method with signature '__defineStatic'
    at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:139)
    at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:28)
    at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1470)
    at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:394)
    ... 79 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: initializeStaticDispatcher(0): Failed to create JSNI method with signature '__defineStatic'
    at com.swtdesigner.gwt.support.host.ModuleSpace.initializeStaticDispatcher(ModuleSpace.java:45)
    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.<init>(ModuleSpaceIE6.java:29)
    at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.prepareShellJavaScriptHost(GWTStateIE6.java:39)
    at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:131)
    ... 83 more
Caused by: java.lang.RuntimeException: initializeStaticDispatcher(0): Failed to create JSNI method with signature '__defineStatic'
    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.createNative(ModuleSpaceIE6.java:107)
    at com.swtdesigner.gwt.support.host.ModuleSpace.initializeStaticDispatcher(ModuleSpace.java:40)
    ... 86 more
Caused by: java.lang.RuntimeException: Error (The specified module could not be found.
) executing JavaScript:
window["__defineStatic"] = function(__arg0) { window.__static = __arg0;
};

    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.execute(ModuleSpaceIE6.java:122)
    at com.swtdesigner.gwt.support.host.ModuleSpaceIE6.createNative(ModuleSpaceIE6.java:102)
    ... 87 more
sape
 
Posts: 3
Joined: Wed Jan 02, 2008 3:01 am

Re: GWT Design view throws RuntimeException

Postby Eric Clayberg » Thu Jan 03, 2008 10:00 am

See our response to this same question that you sent in via e-mail.

In general, this type of problem is addressed by the GWT Designer FAQ.
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 Design view throws RuntimeException

Postby sape » Mon Jan 07, 2008 6:49 am

Eric Clayberg wrote:See our response to this same question that you sent in via e-mail.

In general, this type of problem is addressed by the GWT Designer FAQ.


I tried the options on the FAQ but it still keeps giving me that exception :(
Does anybody have an idea how to fix this?
sape
 
Posts: 3
Joined: Wed Jan 02, 2008 3:01 am

Re: GWT Design view throws RuntimeException

Postby Eric Clayberg » Mon Jan 07, 2008 8:50 am

Are you able to launch the file you are trying to edit with the Run As > GWT Application command?

Is GWT hosted mode working in general?

Do you have a working IE6/7 Javascript environment?

The exception you sent implies a local configuration problem with your machine. The suggestions in the FAQ are the only known solutions.
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 Design view throws RuntimeException

Postby sape » Tue Jan 08, 2008 12:14 am

Eric Clayberg wrote:Are you able to launch the file you are trying to edit with the Run As > GWT Application command?

Is GWT hosted mode working in general?

Do you have a working IE6/7 Javascript environment?

The exception you sent implies a local configuration problem with your machine. The suggestions in the FAQ are the only known solutions.


I haven't changed anything since the last post I did but I guess a miracle happened :D .. I reinstalled it again and it works :)

Thanks for your help.
sape
 
Posts: 3
Joined: Wed Jan 02, 2008 3:01 am

Re: GWT Design view throws RuntimeException

Postby Eric Clayberg » Tue Jan 08, 2008 4:28 am

sape wrote:
Eric Clayberg wrote:I haven't changed anything since the last post I did but I guess a miracle happened :D .. I reinstalled it again and it works

...which was the 9th suggestion in the FAQ entry I referenced. ;-)
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