GWT Designer throws exception when showing Mail example

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 throws exception when showing Mail example

Postby suneetha » Mon Apr 13, 2009 1:45 pm

I am playing around with the evaluation version of GWT Designer Ver: 7.0.0. I imported the Mail sample which came with gwt-windows-1.5.3. (gwt-windows-1.5.3\samples\Mail) and tried to view its EntryPoint class in the "Design" view and it threw up an Exception. Below is the stack trace.

This was my first stunt with GWT Designer and wondering what caused this.
Eclipse Version: 3.3.2
JRE: 1.6

------------------------- 8< -------------------------
Exception during constructor evaluation
Exception happened during evaluation of

new MailList()

Constructor public com.google.gwt.sample.mail.client.MailList() was used with parameters {}.

Stack trace:
com.instantiations.designer.core.utils.exception.DesignerException: 307. new MailList() public com.google.gwt.sample.mail.client.MailList() {}
at com.instantiations.designer.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:234)
at com.instantiations.designer.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:66)
at com.instantiations.designer.core.eval.ASTEvaluationEngine.evaluate(ASTEvaluationEngine.java:76)
at com.instantiations.designer.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:526)
at com.instantiations.designer.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:412)
at com.instantiations.designer.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:933)
at com.instantiations.designer.core.parser.JavaInfoParser.access$500(JavaInfoParser.java:96)
at com.instantiations.designer.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$2.run(JavaInfoParser.java:418)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:64)
at com.instantiations.designer.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:407)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:311)
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.ExpressionStatement.accept0(ExpressionStatement.java:143)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:301)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:224)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:244)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:224)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:181)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:144)
at com.instantiations.designer.core.parser.JavaInfoParser.parseRootMethods0(JavaInfoParser.java:208)
at com.instantiations.designer.core.parser.JavaInfoParser.access$000(JavaInfoParser.java:96)
at com.instantiations.designer.core.parser.JavaInfoParser$1.run(JavaInfoParser.java:197)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:87)
at com.instantiations.designer.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:195)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:188)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:118)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:330)
at com.instantiations.designer.core.editor.DesignPage.access$600(DesignPage.java:44)
at com.instantiations.designer.core.editor.DesignPage$6$1.run(DesignPage.java:262)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:158)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:118)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
at com.instantiations.designer.core.editor.DesignPage$6.run(DesignPage.java:259)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:280)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:421)
at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:77)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:189)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:176)
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: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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.reflect.InvocationTargetException
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.instantiations.designer.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:232)
... 80 more
Caused by: java.lang.NullPointerException
at com.google.gwt.sample.mail.client.MailList.selectRow(MailList.java:145)
at com.google.gwt.sample.mail.client.MailList.update(MailList.java:196)
at com.google.gwt.sample.mail.client.MailList.<init>(MailList.java:69)
... 85 more

Full context stack trace:
com.instantiations.designer.core.utils.exception.DesignerException: 0.
at com.instantiations.designer.core.parser.JavaInfoParser.parseRootMethods0(JavaInfoParser.java:231)
at com.instantiations.designer.core.parser.JavaInfoParser.access$000(JavaInfoParser.java:96)
at com.instantiations.designer.core.parser.JavaInfoParser$1.run(JavaInfoParser.java:197)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:87)
at com.instantiations.designer.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:195)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:188)
at com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:118)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:330)
at com.instantiations.designer.core.editor.DesignPage.access$600(DesignPage.java:44)
at com.instantiations.designer.core.editor.DesignPage$6$1.run(DesignPage.java:262)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:158)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:118)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
at com.instantiations.designer.core.editor.DesignPage$6.run(DesignPage.java:259)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:280)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:421)
at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:77)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:189)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:176)
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: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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: org.apache.commons.lang.exception.NestableError: com.instantiations.designer.core.utils.exception.DesignerException: 0.
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:66)
at com.instantiations.designer.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:407)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:311)
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.ExpressionStatement.accept0(ExpressionStatement.java:143)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:301)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:224)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:244)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:224)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:181)
at com.instantiations.designer.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:144)
at com.instantiations.designer.core.parser.JavaInfoParser.parseRootMethods0(JavaInfoParser.java:208)
... 57 more
Caused by: com.instantiations.designer.core.utils.exception.DesignerException: 0.
at com.instantiations.designer.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:938)
at com.instantiations.designer.core.parser.JavaInfoParser.access$500(JavaInfoParser.java:96)
at com.instantiations.designer.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$2.run(JavaInfoParser.java:418)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:64)
... 72 more
Caused by: com.instantiations.designer.core.utils.exception.DesignerException: 0.
at com.instantiations.designer.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:486)
at com.instantiations.designer.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:933)
... 75 more
Caused by: com.instantiations.designer.core.utils.exception.DesignerException: 307. new MailList() public com.google.gwt.sample.mail.client.MailList() {}
at com.instantiations.designer.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:234)
at com.instantiations.designer.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:66)
at com.instantiations.designer.core.eval.ASTEvaluationEngine.evaluate(ASTEvaluationEngine.java:76)
at com.instantiations.designer.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:526)
at com.instantiations.designer.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:412)
... 76 more
Caused by: java.lang.reflect.InvocationTargetException
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.instantiations.designer.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:232)
... 80 more
Caused by: java.lang.NullPointerException
at com.google.gwt.sample.mail.client.MailList.selectRow(MailList.java:145)
at com.google.gwt.sample.mail.client.MailList.update(MailList.java:196)
at com.google.gwt.sample.mail.client.MailList.<init>(MailList.java:69)
... 85 more
------------------------- 8< -------------------------
suneetha
 
Posts: 2
Joined: Mon Apr 13, 2009 1:24 pm
Location: Revere, MA. USA

Re: GWT Designer throws exception when showing Mail example

Postby Eric Clayberg » Mon Apr 13, 2009 1:56 pm

suneetha wrote:I am playing around with the evaluation version of GWT Designer Ver: 7.0.0. I imported the Mail sample which came with gwt-windows-1.5.3. (gwt-windows-1.5.3\samples\Mail) and tried to view its EntryPoint class in the "Design" view and it threw up an Exception. Below is the stack trace.
This was my first stunt with GWT Designer and wondering what caused this.

The Mail example has a bug and is poorly designed from an OO point of view to begin with. It throws an NPE at design time (it's not very carefully written), so you need to fix the following NPE (which you should see in stack trace you listed)...

Code: Select all
java.lang.NullPointerException
   at com.google.gwt.sample.mail.client.MailList.selectRow(MailList.java:145)
   at com.google.gwt.sample.mail.client.MailList.update(MailList.java:196)
   at com.google.gwt.sample.mail.client.MailList.<init>(MailList.java:69)

The MailList class sends a get() call to the Mail class to access its singleton without testing that it is non null or ensuring that the singleton is actually created. The get() method itself returns the singleton field without ensuring that it is populated. The example relies on runtime-specific behavior to populate the singleton instance (the call to the Mail.onLoadModule() method). When editing the Mail class at design time, there is no instance of the Mail class created. The Mail class is parsed; it is not instantiated. Any code that tries to actually access the instance of the class being edited will not work because there is no such instance.

If you comment out the line Mail.get().displayItem(item); in the MailList class (or add an null check for Mail.get() prior to that line), the Mail class should open in Designer.

From a purely OO point of view, the Mail example is poorly designed. The classes are tightly coupled (when they don't need to be) and the MailList class unnecessarily breaks encapsulation by talking directly back to the Mail class via its singleton.
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 throws exception when showing Mail example

Postby suneetha » Tue Apr 14, 2009 8:23 pm

Thanks. Null check has fixed it. There are a few more issues.

1. When I open the StockWatcher sample which I downloaded from GWT 1.5 tutorial, I get the below exception.

java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3547)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.SWT.error(SWT.java:3452)
at org.eclipse.swt.graphics.Image.init(Image.java:1550)
at org.eclipse.swt.graphics.Image.<init>(Image.java:174)
at com.instantiations.eclipse.ui.UIUtils.getCroppedImage(UIUtils.java:470)
at com.instantiations.designer.gwt.model.widgets.UIObject_Info.fetchImage(UIObject_Info.java:234)
at com.instantiations.designer.gwt.model.widgets.UIObject_Info.refresh_fetch(UIObject_Info.java:195)
at com.instantiations.designer.core.model.ObjectInfo$4.run(ObjectInfo.java:368)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:87)
at com.instantiations.designer.core.model.ObjectInfo.refresh(ObjectInfo.java:365)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:361)
at com.instantiations.designer.core.editor.DesignPage.access$600(DesignPage.java:44)
at com.instantiations.designer.core.editor.DesignPage$6$1.run(DesignPage.java:262)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:158)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:118)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
at com.instantiations.designer.core.editor.DesignPage$6.run(DesignPage.java:259)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)
at com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:280)
at com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:421)
at com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:77)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:189)
at com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:176)
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: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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

2) The "Contact Support" feature on the Window Builder error screen does not work. It says, "Sorry, there was an error sending report. Please try again or contact support by e-mail manually." Note: I am on Evaluation License.

3) When rendering existing GWT source code in the design view, does the parser impose any restrictions on how the source code should be written in order for it to show up in GWT Designer? Basically, I tried opening a few examples and to my dismay, the Designer threw up on most of them.

You guys are doing a great job on this forum (i.e. tech support).
suneetha
 
Posts: 2
Joined: Mon Apr 13, 2009 1:24 pm
Location: Revere, MA. USA

Re: GWT Designer throws exception when showing Mail example

Postby Eric Clayberg » Wed Apr 15, 2009 10:00 am

suneetha wrote:1. When I open the StockWatcher sample which I downloaded from GWT 1.5 tutorial, I get the below exception.

I tried that example and it opened fine on my end. I would suggest giving the latest GWT Designer v7.0 build a try.

StockWatcher.png
StockWatcher.png (81.9 KiB) Viewed 531 times

suneetha wrote:2) The "Contact Support" feature on the Window Builder error screen does not work. It says, "Sorry, there was an error sending report. Please try again or contact support by e-mail manually." Note: I am on Evaluation License.

We would need to see a log file related to that. We have gotten lots of user reports via that option, so it is working in general. Again, I would sugest trying the latest build.

suneetha wrote:3) When rendering existing GWT source code in the design view, does the parser impose any restrictions on how the source code should be written in order for it to show up in GWT Designer?

No. It should be able to open 100% of the code it has generated as well as 80-90% of any user writen code. Note that nowhere do we promise that it will be able to handle 100% of the hand written coe out there. Examples where it does not work will always help to make it beter. Always test the example in the latest build first as we are making incremental improvements to the parser all the time.
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 2 guests