"No GUI roots detected" error after upgrading to 4.0.0

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

"No GUI roots detected" error after upgrading to 4.0.0

Postby TomHj » Tue Mar 04, 2008 10:12 am

Hi recently upgraded my GWTDesigner to the latest 4.0.0 version. But after I did that, I can't use the WYSIWYG editor. Steps to reproduce:

Right click on any "client" package from an existing GWT/Java project in the Package explorer
Select the Google Web Toolkit --> Composite menu item.
Enter a valid Composite class name ("Blah" in my example) and click enter.
Class is created and the source file comes up like this:

Code: Select all
import com.google.gwt.user.client.ui.Composite;

public class Blah extends Composite
{

   public Blah()
   {
   }

}


[I left out the package statement...].

So far so good. Then I click the "Design" tab to switch to the WYSIWYG editor and I get the following:
Image

One thing that looks odd is it doesn't look like my GWT Designer is licensed. But when I go to Window...Preferences and drill down to Designer and License, I see that my current license is valid for another 205 days left in support.

My Eclipse version is 3.3.1.1 build id: M20071023-1652. I have a co-worker that just installed Eclipse and a trial copy of GWTDesigner 4.0.0 on her new laptop and she is seeing the exact same thing.

Any clues?

thanks,
Tom
TomHj
 
Posts: 7
Joined: Fri Jan 25, 2008 2:37 pm

Re: "No GUI roots detected" error after upgrading to 4.0.0

Postby Eric Clayberg » Tue Mar 04, 2008 10:51 am

I tried your example in v4.0.0 and it worked fine.

It sounds like you don't have GWT Designer installed and/or configured correctly.

I would start by reviewing the suggestions in 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: "No GUI roots detected" error after upgrading to 4.0.0

Postby TomHj » Tue Mar 04, 2008 11:02 am

Hmm - I don't know what could be wrong with the install/configuration. I've used GWTDesigner successfully for the last 6 months. The install/upgrade is pretty brainless - I just ran through it again. It correctly found my one and only one Eclipse installation and I let it "clean" the configuration in the process. But the result is the same.

Also, as I mentioned before, the other developer who just joined my company installed Eclipse and the GWT designer 4.0.0 and hit the exact same thing.

What can I check for to look deeper?

thanks,
Tom
TomHj
 
Posts: 7
Joined: Fri Jan 25, 2008 2:37 pm

Re: "No GUI roots detected" error after upgrading to 4.0.0

Postby Eric Clayberg » Tue Mar 04, 2008 11:12 am

Have you looked at your Eclipse ".log" file?

Did you try everything suggested in the 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: "No GUI roots detected" error after upgrading to 4.0.0

Postby TomHj » Wed Mar 05, 2008 10:17 pm

Hi Eric,

I tried the FAQ "doesn't work after install" suggestions with no luck.

The Eclipse .log file has a good clue though:

java.lang.NoSuchMethodException: net.mygwt.ui.client.widget.tree.Tree.setAnimate(boolean)

I'm using MyGWT version 0.4.42 - are you assuming a particular version of MyGWT? BTW, that is what I'm most interested in with the 4.0.0 version of GWT Designer. I'm a big user of MyGWT....

Here is the complete entry from my Eclipse .log file:
!ENTRY com.swtdesigner 4 4 2008-03-06 00:15:18.703
!MESSAGE Designer [6.6.0.200802270623]: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: java.lang.NoSuchMethodException: net.mygwt.ui.client.widget.tree.Tree.setAnimate(boolean)

Product: GWT Designer Subscription
Version: 4.0.0.200802270701
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name:
Actual Eclipse Build ID: M20071023-1652
IDE Actual Name: Eclipse
IDE Actual Version: 3.3.2.R33x_v20071022
IDE Actual NL: en_US
Serial Number: GWTDesignerSubscription-02999-2827
Activation Key: GWTDesignerSubscription-SD0SD-PN0GH-WH37X
Physical Address: 00-1A-6B-C6-45-A2, HardwareAddress[00-1C-23-A5-51-5D], HardwareAddress[00-1C-26-AC-F0-E9]
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
GWT Home: C:/3rdparty/gwt-windows-1.4.61
Platform Product: Eclipse
Platform Version: 3.3.2.R33x_v20071022
OS Name: Windows XP
OS Architecture: x86
OS Version: 5.1

!STACK 0
org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: java.lang.NoSuchMethodException: net.mygwt.ui.client.widget.tree.Tree.setAnimate(boolean)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:186)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:66)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:52)
at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:37)
at com.swtdesigner.gwt.model.widgets.panel.ThisCompositeInfo.<init>(ThisCompositeInfo.java:45)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:218)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2733)
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:1161)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1089)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1083)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1074)
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: org.apache.commons.lang.exception.NestableError: java.lang.NoSuchMethodException: net.mygwt.ui.client.widget.tree.Tree.setAnimate(boolean)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:404)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:184)
... 52 more
Caused by: org.apache.commons.lang.exception.NestableError: java.lang.NoSuchMethodException: net.mygwt.ui.client.widget.tree.Tree.setAnimate(boolean)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:141)
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:1576)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:397)
... 53 more
Caused by: java.lang.NoSuchMethodException: net.mygwt.ui.client.widget.tree.Tree.setAnimate(boolean)
at java.lang.Class.getMethod(Unknown Source)
at com.swtdesigner.gwt.model.widgets.support.GWTState.initClassesAndMethods(GWTState.java:650)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:135)
... 57 more

thanks,
Tom
TomHj
 
Posts: 7
Joined: Fri Jan 25, 2008 2:37 pm

Re: "No GUI roots detected" error after upgrading to 4.0.0

Postby Eric Clayberg » Fri Mar 07, 2008 12:34 pm

TomHj wrote:I'm using MyGWT version 0.4.42 - are you assuming a particular version of MyGWT?

Were assuming the latest version, so you would have needed to be using 0.5.0.

In the latest build, we have gone back and added some support for MyGWT 0.4.44 as well.

Note that incompatible versions and changing APIs are one of the main reasons we hesitate to provide full support for any of the 3rd party GWT widget packages. It is often better to wait until they get to at least v1.0 and are somewhat stabilized. It is very easy to burn a lot of time supporting libraries that are in a state of flux, and even then it is very difficult to suppor multiple versions of those libraries. Going forward, we will only support the latest MyGWT and GWT-Ext versions.
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