2015-06-30 50 views
1

從Intellij以GWT開發模式啓動我的應用程序時。我得到了以下錯誤: -運行GWT開發人員模式時出錯

ERROR: Failed to create an instance of 'com.vaadin.client.ApplicationConnection' via deferred binding 
java.lang.RuntimeException: Deferred binding failed for 'com.vaadin.client.metadata.ConnectorBundleLoader' (did you forget to inherit a required module?) 
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) 
    at com.google.gwt.core.shared.GWT.createImpl(GWT.java:83) 
    at com.google.gwt.core.shared.GWT.create(GWT.java:65) 
    at com.vaadin.client.metadata.ConnectorBundleLoader.get(ConnectorBundleLoader.java:76) 
    at com.vaadin.client.ApplicationConnection.<init>(ApplicationConnection.java:534) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:493) 
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) 
    at com.google.gwt.core.shared.GWT.createImpl(GWT.java:83) 
    at com.google.gwt.core.client.GWT.create(GWT.java:86) 
    at com.vaadin.client.ApplicationConfiguration$1.execute(ApplicationConfiguration.java:448) 
    at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50) 
    at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:183) 
    at com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:347) 
    at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:78) 
    at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:141) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72) 
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) 
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:341) 
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:222) 
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293) 
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) 
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:299) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72) 
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) 
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:296) 
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:551) 
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368) 
    at java.lang.Thread.run(Thread.java:744) 
Caused by: com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost 

我明白從我錯過了繼承任何模塊的錯誤。但是在這個「com.vaadin.client.ApplicationConnection」模塊中,它是vaadin本身的類。 我正在使用vaadin 7.4.6版本 <inherits name="com.vaadin.DefaultWidgetSet" />已被繼承。

+1

Hmm'引起:com.google.gwt.dev.shell.BrowserChannel $ RemoteDeathError:遠程連接丟失# –

+0

@ThomasBroyer嗨,你有想法嗎?這條線後面還有更多的日誌,我沒有在這裏粘貼整個。 –

+0

遠程連接丟失意味着您的瀏覽器/選項卡關閉或服務器停止 –

回答

1

我能解決這個問題並在這裏分享,這可能對其他人有幫助。

  • 刪除了所有舊編譯控件組從目標
  • 重新編譯整個全再次工程

後來我發現,它開始工作的罰款。

相關問題