Problems using GWT Designer

9 views
Skip to first unread message

mchhetri

unread,
Aug 28, 2007, 2:38:06 AM8/28/07
to Google Web Toolkit
Hi,

I'm trying to use GWT Designer (evaluation version) with Eclipse. I'm
using Eclipse 3.3.0 and GWT Designer Evaluation Version 2.0.1.

I've been having problems using the designer and keep getting the
error message
" Designer was unable to find any GUI elements in your source. Check
that the open compilation unit is a GUI class"

The stack trace is below:

Stack trace:
com.swtdesigner.gwt.support.host.HostedModeException:
invokeNativeHandle(@com.google.gwt.user.client.impl.DOMImpl::createElement(Ljava.lang.String;)):
Undefined value, expected com.google.gwt.user.client.Element
at com.swtdesigner.gwt.support.host.JsValueGlue.get(JsValueGlue.java:
79)
at
com.swtdesigner.gwt.support.host.ModuleSpace.invokeNativeHandle(ModuleSpace.java:
85)
at
com.swtdesigner.gwt.support.host.JavaScriptHost.invokeNativeHandle(JavaScriptHost.java:
61)
at
com.google.gwt.user.client.impl.DOMImpl.createElement(DOMImpl.java)
at com.google.gwt.user.client.DOM.createButton(DOM.java:98)
at com.google.gwt.user.client.ui.Button.<init>(Button.java:57)
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:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:
448)
at
com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:
133)
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:
1466)
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:
360)
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:
153)
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:
62)
at
com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:
49)
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(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:
152)
at
com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:
112)
at
com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:
95)
at
com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:
88)
at com.swtdesigner.model.parser.JavaInfoParser
$ParserVisitor.isComponentCreation(JavaInfoParser.java:3687)
at com.swtdesigner.model.parser.JavaInfoParser
$ParserVisitor.endVisit(JavaInfoParser.java:1877)
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:2927)
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:
317)
at
com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:
1136)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:
1068)
at
com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:
54)
at
com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:
1062)
at
com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:
1055)
at
com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:
421)
at com.swtdesigner.editors.MultiPageEditor
$2.widgetSelected(MultiPageEditor.java:191)
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:
153)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

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:3698)
at com.swtdesigner.model.parser.JavaInfoParser
$ParserVisitor.endVisit(JavaInfoParser.java:1877)
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:2927)
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:
317)
at
com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:
1136)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:
1068)
at
com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:
54)
at
com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:
1062)
at
com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:
1055)
at
com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:
421)
at com.swtdesigner.editors.MultiPageEditor
$2.widgetSelected(MultiPageEditor.java:191)
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:
153)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
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:
118)
at
com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:
95)
at
com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:
88)
at com.swtdesigner.model.parser.JavaInfoParser
$ParserVisitor.isComponentCreation(JavaInfoParser.java:3687)
... 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:
112)
... 65 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:494)
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:
com.swtdesigner.gwt.support.host.HostedModeException:
invokeNativeHandle(@com.google.gwt.user.client.impl.DOMImpl::createElement(Ljava.lang.String;)):
Undefined value, expected com.google.gwt.user.client.Element
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:
362)
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:
153)
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:
62)
at
com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:
49)
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:
com.swtdesigner.gwt.support.host.HostedModeException:
invokeNativeHandle(@com.google.gwt.user.client.impl.DOMImpl::createElement(Ljava.lang.String;)):
Undefined value, expected com.google.gwt.user.client.Element
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:
1466)
at
com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:
360)
... 79 more
Caused by: com.swtdesigner.gwt.support.host.HostedModeException:
invokeNativeHandle(@com.google.gwt.user.client.impl.DOMImpl::createElement(Ljava.lang.String;)):
Undefined value, expected com.google.gwt.user.client.Element
at com.swtdesigner.gwt.support.host.JsValueGlue.get(JsValueGlue.java:
79)
at
com.swtdesigner.gwt.support.host.ModuleSpace.invokeNativeHandle(ModuleSpace.java:
85)
at
com.swtdesigner.gwt.support.host.JavaScriptHost.invokeNativeHandle(JavaScriptHost.java:
61)
at
com.google.gwt.user.client.impl.DOMImpl.createElement(DOMImpl.java)
at com.google.gwt.user.client.DOM.createButton(DOM.java:98)
at com.google.gwt.user.client.ui.Button.<init>(Button.java:57)
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:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:
448)
at
com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:
133)
... 83 more

I've tried reinstalling Eclipse and the GWT Designer but seem to be
getting the same problem. Has anybody else got a similar problem? If
so what is the solution for it?

Cheers,
Mohan

Peter Blazejewicz

unread,
Aug 28, 2007, 3:55:50 PM8/28/07
to Google Web Toolkit
hi Mohan,

it really depends what you are doing, are you trying to swtich view
from code to design while usign "faceless" object?
also please visit Designer FAQ:
http://downloads.instantiations.com/DesignerDoc/integration/latest/docs/html/faq/faq.htm

regards,
Peter

mchhetri

unread,
Aug 28, 2007, 7:17:51 PM8/28/07
to Google Web Toolkit
Hi Peter,

I tried to follow the very simple example given at
http://download.instantiations.com/DesignerDoc/integration/latest/docs/html/gwt/tutorial/tutorial_login.html

I keep getting the same error when I try to view the LoginManager in
Design mode.

I'm not sure why I'm getting the error.

Cheers,
Mohan

mchhetri

unread,
Aug 28, 2007, 11:34:10 PM8/28/07
to Google Web Toolkit
I solved the problem by getting rid of the proxy settings for IE

Cheers,
Mohan

Eric Clayberg - Instantiations

unread,
Aug 29, 2007, 3:24:45 PM8/29/07
to Google Web Toolkit
Note that this is one of the suggestions in the Designer FAQ...

http://download.instantiations.com/DesignerDoc/integration/latest/docs/html/faq/faq.htm#GWTProblem

"Make sure that anything that might interfere with local
communications is disabled (like any proxy configured in your IE
settings or any overly aggressive anti-virus software). If you have a
proxy server configured in your IE LAN Settings, make sure that the
Bypass proxy server for local addresses option is enabled. As a test,
you can also try disabling the proxy completely."

Reply all
Reply to author
Forward
0 new messages