problem running example under linux

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

problem running example under linux

Postby andrewmcveigh » Tue Apr 17, 2007 4:55 am

Hi,

I'm playing around with GWT designer, and I recreated the login example. However, when I run it in hosted mode I always get "... LoginUser.gwt.xml" not found. Sorry I don't have the exact message -- I'm away from my main computer at the moment.

This is with the latest version of GWT (1.3.3?) and GWT designer. I'm using Ubuntu dapper drake, with Eclipse 3.3.

I checked and the file was all there etc. Any ideas? I'm very keen to get to grips with what seems like a nice tool.

Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Re: problem running example under linux

Postby Eric Clayberg » Tue Apr 17, 2007 5:19 am

The exact error rmessage and a test case would be helpful.
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

Postby andrewmcveigh » Tue Apr 17, 2007 6:09 am

Hmm, I tried it at work (rather than at home) this time, and it all worked. I'll have another look at the home configuration.

Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Tue Apr 17, 2007 6:22 am

ok, I have run into problems at work too. Although I can run it, when I enter in the example, create LoginManager.java and switch to design mode, I see no tools in the palette etc.

I'm using Ubuntu, Eclipse-3.2.2, GWT Designer 1.6.0, GWT 1.3.3, JDK6.0.

The error I get in the log is:

com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:96)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:108)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:92)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:85)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3442)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1725)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2705)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:202)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1105)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1040)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1034)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1028)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:413)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:183)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:935)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
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.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:88)
... 64 more
Caused by: org.apache.commons.lang.exception.NestableError: java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'
Your GWT installation may be corrupt
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:323)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:143)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:60)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:48)
at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:34)
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)
... 69 more
Caused by: java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'
Your GWT installation may be corrupt
at com.google.gwt.dev.shell.moz.LowLevelMoz.init(LowLevelMoz.java:283)
at com.google.gwt.dev.shell.moz.LowLevelMoz.registerExternalFactoryHandler(LowLevelMoz.java:290)
at org.eclipse.swt.browser2.Browser.<init>(Browser.java:448)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.createBrowser(GWTStateMoz.java:57)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:127)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.<init>(GWTStateMoz.java:38)
at com.swtdesigner.gwt.support.browser.moz.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1516)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:320)
... 77 more
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Tue Apr 17, 2007 6:25 am

I get a further error before this which indicates it is having trouble with loading gwt-ll.so. I'll try downloading the linux gwt again. The file is there, so I'm not entirely sure what the issue is...

java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'
Your GWT installation may be corrupt
at com.google.gwt.dev.shell.moz.LowLevelMoz.init(LowLevelMoz.java:283)
at com.google.gwt.dev.shell.moz.LowLevelMoz.registerExternalFactoryHandler(LowLevelMoz.java:290)
at org.eclipse.swt.browser2.Browser.<init>(Browser.java:448)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.createBrowser(GWTStateMoz.java:57)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:127)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.<init>(GWTStateMoz.java:38)
at com.swtdesigner.gwt.support.browser.moz.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1516)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:320)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:143)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:60)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:48)
at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:34)
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:513)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:88)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:108)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:92)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:85)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3442)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1725)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2705)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:202)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1105)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1040)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1034)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1028)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:413)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:183)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:935)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Tue Apr 17, 2007 6:27 am

I've restarted and it all works now. Sorry for the false alarm (for now...)

Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Tue Apr 17, 2007 7:00 am

Hmm, I get the unsatisfied link error intermittently. It seems to go away if I restart, but it's not too long until I eventually get other problems. After editing a form for a few minutes, I end up with a source file that doesn't compile -- it had lots of lines saying "RootPanel.get()" and lots of extraneous ";" lines.

Is it a case of the versions of the things I am using, or is the GWT Designer for Linux in its early stages and I should wait a bit longer before testing?

Cheers,
Andrew
p.s. Here is the exception that is printed to stderr:

java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'
Your GWT installation may be corrupt
at com.google.gwt.dev.shell.moz.LowLevelMoz.init(LowLevelMoz.java:283)
at com.google.gwt.dev.shell.moz.LowLevelMoz.registerExternalFactoryHandler(LowLevelMoz.java:290)
at org.eclipse.swt.browser2.Browser.<init>(Browser.java:448)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.createBrowser(GWTStateMoz.java:57)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:127)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.<init>(GWTStateMoz.java:38)
at com.swtdesigner.gwt.support.browser.moz.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1516)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:320)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:143)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:60)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:48)
at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:34)
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:513)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:88)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:108)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:92)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:85)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3442)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1725)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2705)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:202)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1105)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1040)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1034)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1028)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:413)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:183)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:935)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:96)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:108)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:92)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:85)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3442)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1725)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:246)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2513)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2705)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:202)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1105)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1040)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1034)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1028)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:413)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:183)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:935)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
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.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:88)
... 64 more
Caused by: org.apache.commons.lang.exception.NestableError: java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'
Your GWT installation may be corrupt
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:323)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:143)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:60)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:48)
at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:34)
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)
... 69 more
Caused by: java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'
Your GWT installation may be corrupt
at com.google.gwt.dev.shell.moz.LowLevelMoz.init(LowLevelMoz.java:283)
at com.google.gwt.dev.shell.moz.LowLevelMoz.registerExternalFactoryHandler(LowLevelMoz.java:290)
at org.eclipse.swt.browser2.Browser.<init>(Browser.java:448)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.createBrowser(GWTStateMoz.java:57)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:127)
at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.<init>(GWTStateMoz.java:38)
at com.swtdesigner.gwt.support.browser.moz.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1516)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:320)
... 77 more
1176822091469: requestPath: /1/__start.html
1176822091527: requestPath: /1/ImageViewer.css
1176822091592: requestPath: /1/ImageViewer.css_2
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Wed Apr 18, 2007 1:21 am

I've further tried it with GWT-1.2.22, and it has the same issues.

Is this just me, or is something going wrong with the low level mozilla integration under linux? I'm desperate to use (and purchase) this product, as it looks stellar, but I don't have access to Windows.

Any ideas?

Cheers,
Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Wed Apr 18, 2007 1:41 am

just to clarify on the behaviour.

1. I install gwt designer into eclipse 3.2.2 under linux.

2. i restart eclipse with a new workspace.

3. i set up a new GWT java project, and configure it to use GWT 1.3.3.

4. when I move to the design tab, I see no widgets and the console shows the linking error with the gwt-11 library (stack trace is in previous posts).

5. if I quit out of eclipse (actually I have to ctrl-C it, as it leaves a residual process running) and restart, I can then see the widgets (so obviously the library loads now)

6. every time I move a widget, I get a flashing window that shows the full layout of the frame, and it disappears after 0.5 seconds or so. annoying but not a showstopper. (if I could find someway to push it onto the 2nd screen it would be better)

7. i can move stuff around and run fine in the hosted browser now it seems.

8. occasionally, by moving stuff around in the designer, I have managed to get corrupted source. not sure if it is related to the above problems.

So, in summary I can get it to work by jumping through hoops, and the functionality seems excellent, but there are issues.

Cheers,
Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby Eric Clayberg » Wed Apr 18, 2007 12:20 pm

andrewmcveigh wrote:when I move to the design tab, I see no widgets and the console shows the linking error with the gwt-11 library (stack trace is in previous posts).

We have never seen any error like that. The exception appears to be coming from GWT itself and it is claiming that "Your GWT installation may be corrupt".

Are you able to run the GWT samples from the command line at that point? Can you run your code in hosted mode at that point?

andrewmcveigh wrote:every time I move a widget, I get a flashing window that shows the full layout of the frame, and it disappears after 0.5 seconds or so. annoying but not a showstopper. (if I could find someway to push it onto the 2nd screen it would be better)

Designer opens that preview window well off screen, but some window managers force the preview window to be within the visible bounds of the screen.

andrewmcveigh wrote:occasionally, by moving stuff around in the designer, I have managed to get corrupted source. not sure if it is related to the above problems.

Probably not. It would be helpful to see a test case (especially the exact sequence of steps that result in corrupted source).
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

Postby andrewmcveigh » Wed Apr 18, 2007 12:53 pm

Eric Clayberg wrote:Are you able to run the GWT samples from the command line at that point? Can you run your code in hosted mode at that point?

I've narrowed the problem down more -- I doubt it's a GWT thing.

Basically -- the linking problem only occurs if I start in a new workspace, and setup the GWT installation directory in the designer prefs for the first time, and then create a GWT java project without restarting the workbench. If I try to go into the designer without restarting, I get the linking error.

If I set up the GWT installation directory inside preferences, and then restart, everything is fine... Hopefully this sequence may enable you to reproduce the problem.

Eric Clayberg wrote:Probably not. It would be helpful to see a test case (especially the exact sequence of steps that result in corrupted source).

I'd disregard the source corruption for the time being. with all the issues I've been having, it's bound to be something unrepeatable. I've not seen the problem since.

I think the bidirectional source stuff is quite nifty. I had to change the order of widget declarations and I had no problem with the designer.

Now if I could just sort out the preview window thing, which also seems to make things quite slow...

Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby andrewmcveigh » Wed Apr 18, 2007 4:01 pm

andrewmcveigh wrote:4. when I move to the design tab, I see no widgets and the console shows the linking error with the gwt-11 library (stack trace is in previous posts).

5. if I quit out of eclipse (actually I have to ctrl-C it, as it leaves a residual process running) and restart, I can then see the widgets (so obviously the library loads now)

6. every time I move a widget, I get a flashing window that shows the full layout of the frame, and it disappears after 0.5 seconds or so. annoying but not a showstopper. (if I could find someway to push it onto the 2nd screen it would be better)


I've just tried the whole setup on my home computer (slightly earlier version of Ubuntu) with the same versions of eclipse etc. Anyway, I get identical behaviour for (4), except that I don't get a stacktrace written to stderr. However, I can't see any widgets until I restart (step 5).

Also, even though I am running gnome and metacity on this machine also, (6) still happens -- this time however, the preview window flashes up on the 1st screen. It's annoying because it make the whole app feel slower. If I turn off the left monitor and move widgets around if feels much faster -- I know it's only a perceptual effect but it does make a difference.

Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby Eric Clayberg » Mon Apr 23, 2007 5:02 am

Yes, after setting the GWT path preference in a brand new workspace, you need to restart Eclipse for that preference to take effect. That is typically not needed for an existing workspace.
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

Postby andrewmcveigh » Tue Apr 24, 2007 1:26 pm

Eric Clayberg wrote:Yes, after setting the GWT path preference in a brand new workspace, you need to restart Eclipse for that preference to take effect. That is typically not needed for an existing workspace.


Hmm, I didn't see this in the docs or the preference page. It got me, and convinced me initially that it didn't work or at least had problems. Perhaps it would be wise put a warning dialog in after setting -- otherwise others will undoubtedly get caught.

Particularly as setting the GWT path is part of the workflow of creating a new GWT Java project if it hasn't been previously set.

Cheers,
Andrew
andrewmcveigh
 
Posts: 23
Joined: Sat Apr 14, 2007 12:47 pm
Location: London, UK

Postby Eric Clayberg » Tue Apr 24, 2007 5:44 pm

The docs for the GWT pref page and GWT project wizard both include a Linux Note mentioning this.

It is really only an issue for brand new workspaces. It generally does not affect existing workspaces, so it rarely comes up in practice.
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

Next

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests