我的 GWT 项目有问题。该项目可以编译,但是当我尝试作为 Web 应用程序进行调试时,出现以下错误。我是新手,所以任何关于我如何解决这个问题的指导都将不胜感激。如果您需要查看我的代码,请告诉我,我很乐意发布它。
此错误消息反复出现:
“无法通过延迟绑定创建 'com.gwt ....myEntryPointClass' 的实例。”
11:39:03.438 [ERROR] [helpdesktest] Failed to create an instance of 'com.gwt.HelpDeskTest.client.HelpDeskTest' via deferred binding
java.lang.RuntimeException: Deferred binding failed for 'com.gwt.HelpDeskTest.client.HelpDeskTest' (did you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.gwt.HelpDeskTest.client.HelpDeskTest.<init>(HelpDeskTest.java:23)
at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at com.gwt.HelpDeskTest.client.HelpDeskTest.<init>(HelpDeskTest.java:23)
at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
我在浏览器窗口中收到此消息:
Exception while loading module com.gwt.HelpDeskTest.client.HelpDeskTest. See Development Mode for details.
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:375)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:680)
最后,我在控制台窗口中收到了这条消息。
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line: 806