2011-09-08 73 views
4

我正在使用GWT 2.3.0。我試圖合併AutoBean的功能,但它讓我異常AutoBeanFactory無法在GWT中工作2.3

12:17:20.501 [錯誤] [webmaths]未捕獲的異常逃脫

所致:java.lang.NoClassDefFoundError:COM /谷歌/網絡/裝訂/ autobean/shared/AutoBeanFactory at com.kuchnaya.maths.client.HtmlPlayer $ 6.onValueChange(HtmlPlayer.java:360) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128) 在com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1) 在com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) 在COM。 google.web.bindery.event.share d.impleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager。 fireEvent(HandlerManager.java:127) 在com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:76) 在com.google.gwt.event.logical.shared.ValueChangeEvent.fire( ValueChangeEvent.java:43) 在com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:83) 在com.google.gwt.user.client.History.fireCurrentHistoryState(History.java: 121) at com.kuchnaya.maths.client.HtmlPlayer.onModuleLoad(HtmlPlayer.java:260) at org.gwtmultipage.client.EntryPointFactoryImpl $ 16.onSuccess(EntryPointFactoryImpl.java:284) at com.google.gwt.core.client.GWT.runAsyncWithoutCodeSplitting(GWT.java:312) at com.google.gwt.core.client.GWT.runAsync(GWT.java:256) at org.gwtmultipage。 client.EntryPointFactoryImpl.launchEntryPoint(EntryPointFactoryImpl.java:278) 在org.gwtmultipage.client.EntryPointFactoryImpl.onModuleLoad(EntryPointFactoryImpl.java:93) 在org.gwtmultipage.client.EntrypointDispatcher.onModuleLoad(EntrypointDispatcher.java:30) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本機方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect中.Method.invoke(Method.java:597) 在com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) 在com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) 在com.google。 gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) 在com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 在java.lang.Thread.run(線程。的java:662)

引起:拋出java.lang.ClassNotFoundException:com.google.web.bindery.autobean.shared.AutoBeanFactory 在com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java: 1054) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at com.kuchnaya.maths.client.HtmlPlayer $ 6.onValueChange(HtmlPlayer.java:360) at com.google.gwt.event.logical.shared.ValueChangeEvent .dispatch(ValueChangeEvent.java:128) 在com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1) 在com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent .java:1) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java :88) at com.google.gwt.event.shared.HandlerManager。fireEvent(HandlerManager.java:127) at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:76) at com.google.gwt.event.logical.shared.ValueChangeEvent.fire( ValueChangeEvent.java:43) at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:83) at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java: 121) at com.kuchnaya.maths.client.HtmlPlayer.onModuleLoad(HtmlPlayer.java:260) at org.gwtmultipage.client.EntryPointFactoryImpl $ 16.onSuccess(EntryPointFactoryImpl.java:284) at com.google.gwt.core .client.GWT.runAsyncWithoutCodeSplitting(GWT.java:312) at com.google.gwt.core.client.GWT.runAsync(GWT.java:256) at org.gwtmultipage.client.Ent ryPointFactoryImpl.launchEntryPoint(EntryPointFactoryImpl.java:278) 在org.gwtmultipage.client.EntryPointFactoryImpl.onModuleLoad(EntryPointFactoryImpl.java:93) 在org.gwtmultipage.client.EntrypointDispatcher.onModuleLoad(EntrypointDispatcher.java:30) 在陽光下。 reflect.NativeMethodAccessorImpl.invoke0(本機方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method中.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java :193) at com.g oogle.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run( Thread.java:662)

回答

12

你必須

<inherits name="com.google.web.bindery.autobean.AutoBean" /> 

添加到您的module.gwt.xml文件指示編譯器包括AutoBean文件。

相關問題