GWT Designer m_selectedModuleFile错误

时间:2012-03-04 00:21:06

标签: gwt designer web-application-project windowbuilder

这是我第一次使用GWT。我正在按照教程:http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html

我无法超越GWT Java项目的创建。当我单击完成时,我得到:发生了错误。有关详细信息,请参阅错误日志 m_selectedModuleFile

当我查看错误日志时,我得到:

!ENTRY org.eclipse.ui.workbench 4 2 2012-03-03 18:55:34.035
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0 java.lang.NoSuchFieldError: m_selectedModuleFile at      
com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.selectedModuleChanged(De
 loyModuleAction.java:63)
at com.google.gdt.eclipse.designer.actions.AbstractModuleAction.selectionChanged(AbstractModuleAction.java:81)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:299)
at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)
at org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:282)
at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:135)
at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125)
at org.eclipse.ui.internal.WWinPartService$WWinListener.partDeactivated(WWinPartService.java:50)
at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:115)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                            at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:113)
at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:242)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3537)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3077)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:237)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1424)
at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:2297)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4205)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    and so on...

此外,您何时使用WinBuilder,何时应使用GWT Designer或Web应用程序项目?我不确定他们之间的差异。我正在寻找可以与App Engine一起使用的一些眼睛酸痛的东西。

2 个答案:

答案 0 :(得分:0)

这似乎可能在安装中出现了问题。我通常安装Eclipse Java EE版本(与Java不同),然后GPE减去Android部分(除非我需要设置它,然后在GPE之前安装Android SDK),然后安装WindowsBuilder - 用于额外的向导。之后一切正常。我创建了一个新的GWT项目(使用示例代码 - 更容易上手),然后可以使用任何向导。

答案 1 :(得分:0)

事实证明我有一个旧版本的WindowBuilder,这导致了这个问题。但不确定这是否是整个问题。到目前为止它已经奏效了。