Gwt-Designer and Gwt-Ext crashes

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-Designer and Gwt-Ext crashes

Postby justaprogger » Tue Jul 21, 2009 5:15 am

Hi,
I'm using eclipse 3.4, Gwt 1.6.4, gwt-ext 2.06 and Gwt-Designer 7.1.0. I'm trying to use the designer together with gwt-ext. I've created a new workspace in which I've created an new package and module. I then created a Gwt-Ext Window. When I click on the design tab the following error is displayed:

WindowBuilder internal error

WindowBuilder encountered unexpected internal error. Please contact support.

com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' ist Null oder kein Objekt number: -2146823281 description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt

Stack trace:
com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' ist Null oder kein Objekt
number: -2146823281
description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)

Full context stack trace:
java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
at java.lang.reflect.Field.get(Unknown Source)
at com.instantiations.designer.core.model.property.editor.StaticFieldPropertyEditor.initialize(StaticFieldPropertyEditor.java:197)
at com.instantiations.designer.core.model.property.editor.StaticFieldPropertyEditor.configure(StaticFieldPropertyEditor.java:170)
at com.instantiations.designer.core.model.description.internal.AbstractConfigurableDescription.configure(AbstractConfigurableDescription.java:49)
at com.instantiations.designer.core.model.description.internal.PropertyEditorDescription.getConfiguredEditor(PropertyEditorDescription.java:35)
at com.instantiations.designer.core.model.description.rules.PropertyEditorRule.end(PropertyEditorRule.java:45)
at org.apache.commons.digester.Digester.endElement(Digester.java:1332)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1887)
at com.instantiations.designer.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:361)
at com.instantiations.designer.core.model.description.helpers.ComponentDescriptionHelper.getDescription(ComponentDescriptionHelper.java:250)
at com.instantiations.designer.core.model.JavaInfoUtils.createJavaInfo(JavaInfoUtils.java:318)
at com.instantiations.designer.gwt.parser.ParseFactory.getRootContext(ParseFactory.java:107)
at com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:836)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:210)
at com.instantiations.designer.core.parser.JavaInfoParser.access$000(JavaInfoParser.java:110)
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:132)
at com.instantiations.designer.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:131)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:99)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:130)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:408)
at com.instantiations.designer.core.editor.DesignPage.access$800(DesignPage.java:57)
at com.instantiations.designer.core.editor.DesignPage$7$1.run(DesignPage.java:316)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:178)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4251)
at com.instantiations.designer.core.editor.DesignPage$7.run(DesignPage.java:313)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:334)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:444)
at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:77)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:216)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:203)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:80)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:43)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3242)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2017)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' ist Null oder kein Objekt
number: -2146823281
description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)

Any idea's anybody? Could it be a configuration problem? Thanks in advance!

Ciao
Lars
justaprogger
 
Posts: 2
Joined: Tue Jul 21, 2009 5:07 am

Re: Gwt-Designer and Gwt-Ext crashes

Postby Eric Clayberg » Tue Jul 21, 2009 6:10 am

You don't have your project configure to use GWT-Ext properly.

You can either follow the setup instructions on the GWT-Ext web site or read our docs on the subject.
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-Designer and Gwt-Ext crashes

Postby justaprogger » Tue Jul 21, 2009 6:50 am

Thank you for the quick response, that was indeed the problem. Now everything seems to work except that the designer crashes when I try to ad any Gwt-Ext Layout to it. I receive the error:

WindowBuilder internal error

WindowBuilder encountered unexpected internal error. Please contact support.

Stack trace:
java.lang.NullPointerException
at com.instantiations.designer.gwt.gwtext.model.layout.Layout_StackContainerSupport.getChildren(Layout_StackContainerSupport.java:36)
at com.instantiations.designer.core.model.util.StackContainerSupport.isChild(StackContainerSupport.java:97)
at com.instantiations.designer.core.model.util.StackContainerSupport.access$000(StackContainerSupport.java:18)
at com.instantiations.designer.core.model.util.StackContainerSupport$1.childAddAfter(StackContainerSupport.java:32)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.instantiations.designer.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:196)
at com.instantiations.designer.core.model.broadcast.ObjectEventListener$$EnhancerByCGLIB$$765bfb9c.childAddAfter(<generated>)
at com.instantiations.designer.core.model.ObjectInfo.addChild(ObjectInfo.java:167)
at com.instantiations.designer.core.model.ObjectInfo.addChild(ObjectInfo.java:121)
at com.instantiations.designer.core.model.nonvisual.NonVisualBeanContainerInfo.addNonVisualInfo(NonVisualBeanContainerInfo.java:68)
at com.instantiations.designer.core.gef.policy.nonvisual.NonVisualLayoutEditPolicy$1.executeEdit(NonVisualLayoutEditPolicy.java:72)
at com.instantiations.designer.core.gef.command.EditCommand$1.run(EditCommand.java:35)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:240)
at com.instantiations.designer.core.gef.command.EditCommand.execute(EditCommand.java:33)
at com.instantiations.gef.core.EditDomain.executeCommand(EditDomain.java:38)
at com.instantiations.gef.core.tools.Tool.executeCommand(Tool.java:182)
at com.instantiations.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:50)
at com.instantiations.gef.core.tools.Tool.mouseUp(Tool.java:351)
at com.instantiations.gef.core.EditDomain.mouseUp(EditDomain.java:196)
at com.instantiations.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:131)
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 com.instantiations.draw2d.EventManager$8.invoke(EventManager.java:288)
at $Proxy1.mouseUp(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:207)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)

What could be the problem?

Edit: Another Question: is it possible that not all controls that are displayed on the gwt-ext demo page are beeing offered in the designer? There seem to be a lot of Grid types to be missing.
justaprogger
 
Posts: 2
Joined: Tue Jul 21, 2009 5:07 am

Re: Gwt-Designer and Gwt-Ext crashes

Postby Eric Clayberg » Tue Jul 21, 2009 9:30 am

The built-in GWT panels do not support GWT-Ext layouts.

GWT-Ext layouts should only be dropped on GWT-Ext panels.
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 1 guest