Empty palette pane and unkown window type

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

Empty palette pane and unkown window type

Postby colinzhao » Sun Dec 31, 2006 7:22 pm

I liked what I saw and read in the doc and downloaded a trial version. But I could not not get the palette pane to work for me.

I installed the latest version (Designer 6.0.1 and GWT 1.0.1) with Eclipse 3.2.1 and GWT 1.3.1. Created a project and a module, openned the generated java class, switched to the designer pane and saw an empty palette and "unknown window type" on the top of design pane. With that the console gives me the following exception:

eclipse.buildId=M20060921-0945
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

Error
Sun Dec 31 22:41:22 EST 2006
Designer internal error [6.0.1.20061230033429]: No or multiple broswer support plugins.

java.lang.IllegalStateException: No or multiple broswer support plugins.
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1326)
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:59)
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:38)
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:87)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:104)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:88)
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:81)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.isComponentCreation(JavaInfoParser.java:3420)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1724)
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:2694)
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:201)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1011)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:948)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:942)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:938)
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:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
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:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)


Colin
colinzhao
 
Posts: 24
Joined: Sun Dec 31, 2006 4:03 pm

Re: Empty palette pane and unkown window type

Postby Eric Clayberg » Sun Dec 31, 2006 9:06 pm

Install the latest v1.0.1 build listed on the GWT Designer download page and you should be fine.
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: Empty palette pane and unkown window type

Postby colinzhao » Mon Jan 01, 2007 5:38 am

Eric Clayberg wrote:Install the latest v1.0.1 build listed on the GWT Designer download page and you should be fine.


I have the latest version of GWT designer 1.0.1 installed(GWTDesigner_v1.0.1_win32_x86.exe).
I downloaded it at 3:42pm in 12/30/06.
colinzhao
 
Posts: 24
Joined: Sun Dec 31, 2006 4:03 pm

Re: Empty palette pane and unkown window type

Postby colinzhao » Mon Jan 01, 2007 6:03 am

I have the latest version of GWT designer 1.0.1 installed(GWTDesigner_v1.0.1_win32_x86.exe).
I downloaded it at 3:42pm in 12/30/06.[/quote]
Eric: you are right. I download the 1.0.1 again and see the file size changed. You must have fixed it with a patch. It works now. It would be nice if you can leave a note on the patch.

Thanks for the help.

Colin
colinzhao
 
Posts: 24
Joined: Sun Dec 31, 2006 4:03 pm

Re: Empty palette pane and unkown window type

Postby Eric Clayberg » Mon Jan 01, 2007 6:39 am

There was no "patch". We were doing some work over the weekend and the wrong file was temporarily made available for download. The problem was discovered and corrected.
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

Same issue with the latest build

Postby eura » Wed Jan 03, 2007 7:32 am

Hello,

I got the latest (Jan 2) build and it worked for an hour and then at some point asked for registration, after that it stopped working with the same Unknown window type thing. I've got Eclipse 3.2.1, JDK 1.5.0_09 (could be a problem?), and MyEclipse 5.1.0.

Thanks
eura
 
Posts: 2
Joined: Tue Jan 02, 2007 2:36 pm
Location: Denver

Re: Same issue with the latest build

Postby Eric Clayberg » Wed Jan 03, 2007 8:37 am

eura wrote:I got the latest (Jan 2) build and it worked for an hour and then at some point asked for registration, after that it stopped working with the same Unknown window type thing.

Probably not the "same Unknown window type thing".

Please provide a test case and your Eclipse ".log" file.
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: Same issue with the latest build

Postby Chris Ravel » Thu Jan 04, 2007 4:42 am

eura wrote:Hello,

I got the latest (Jan 2) build and it worked for an hour and then at some point asked for registration, after that it stopped working with the same Unknown window type thing. I've got Eclipse 3.2.1, JDK 1.5.0_09 (could be a problem?), and MyEclipse 5.1.0.

Thanks


Hi!

I got the same issue after a problem in eclipse.
My solution was to :
1) close eclipse
2) delete the .metadata\.plugins\com.swtdesigner.gwt\bytesCache\index.dat file
3) relaunch eclipse without -clean option

Everything came back without any probem.
Hope it helps...

So far, my evaluation of GWT Designer is very positive, congratulation to all the Instanciation team :D

Chris
Chris Ravel
 
Posts: 1
Joined: Thu Jan 04, 2007 1:08 am

Re: Same issue with the latest build

Postby Eric Clayberg » Fri Jan 05, 2007 4:52 am

Chris Ravel wrote:I got the same issue after a problem in eclipse.

That would be unlikely as the previous poster has not described a specific problem. He was definitely not having the same problem as the person who started the thread (as that issue was already resolved).

An "unknown window type" message is very generic and can be the result of dozens of different issues (both legitimate and not). It's like saying that your car is making strange noises without saying what the noises are. In order to diagnose the real problem, we need to see a test case and your Eclipse ".log" file as stated in the Designer FAQ.

Chris Ravel wrote:1) close eclipse
2) delete the .metadata\.plugins\com.swtdesigner.gwt\bytesCache\index.dat file
3) relaunch eclipse without -clean option

As suggested in the FAQ, refreshing and rebuilding your project using the Project > Clean command would likely have fixed the problem.

The "bytesCache\index.dat" file is an index of cached classes that we use to avoid rewriting byte codes each time that a class is loaded. In general, we don't need to update/clear this file because it holds not only the name of a class, but also its location (path to jar or directory) and modification time. So, if your project was rebuilt, the classes would have new modification times, and we would rewrite those new classes and store them in the cache.

Chris Ravel wrote:So far, my evaluation of GWT Designer is very positive, congratulation to all the Instantiations team

Thank you! :-)
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

Issue resolved

Postby eura » Fri Jan 05, 2007 9:09 am

This turned out to be a different issue: an error message clearly noted that corresponding .html file in public folder is not found for the .java file (they had different names).
So after synchronizing their names GWT Designer works fine.
eura
 
Posts: 2
Joined: Tue Jan 02, 2007 2:36 pm
Location: Denver

Re: Issue resolved

Postby Eric Clayberg » Fri Jan 05, 2007 10:53 am

eura wrote:This turned out to be a different issue: an error message clearly noted that corresponding .html file in public folder is not found for the .java file (they had different names). So after synchronizing their names GWT Designer works fine.

That would do it.

Anyone who gets an "unknown window type" error, should look in their Eclipse ".log" file for an explanation.

If that does not help, send us a test case.
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