gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.49k stars 370 forks source link

Remote connection lost #4388

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 7399

Found in GWT Release (e.g. 1.5.3, 1.6 RC):

GWT 2.4

Encountered on OS / Browser:

Operatin system: Windows Xp Professional SP 3
IDE: Eclipse Indigo
Browser : FF11, IE8

Detailed description :

I have a GWT 2.4 + Ext GWT + Hibernate project. 
When i start my project in development mode in ie8 (or ff11) after a short time the
plugin of gwt crash (also with application freezed), and in tab "Development Mode"
of eclipse i have the following exception:

com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:307)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.EOFException: null
    at java.io.DataInputStream.readByte(DataInputStream.java:250)
    at com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1100)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:283)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:619)

This error occurs only in development mode.
My application deployed on tomcat 7.0 works fine be with IE8 than with FF11.

Reported by tony_t@alice.it on 2012-06-02 14:12:41

dankurka commented 9 years ago
We realistically don't have enough information to know what is going on here. You'll
have to do some debugging yourself and provide more details. DevMode uses a lot of
RAM, it's likely the garbage collector is freezing the application.

Reported by stephen.haberman on 2012-06-02 18:33:16

dankurka commented 9 years ago
The page loaded successfully when I deleted all history of my browser (clear cache)
once. The second time it didn't work, I had to change the name of my module (as if
the browsers keep the js sources even after doing a clear cache)

Reported by zHamdi on 2010-03-21 10:52:36

dankurka commented 9 years ago
GWT 2.0.3 - in Eclipse 3.5 (Google App Engine Java SDK 1.3.3; Google Plugin for Eclipse

3.5)

I try to learn GWT and GXT, using Eclipse GWT plug-in when I try to 
connect to http://127.0.0.1:8888/GXTExample.html?gwt.codesvr=127.0.0.1:9997 
after a while I get this error from Development Mode console (using WinXP - Chrome

5.0.396.0 dev):

21:56:47.265 [ERROR] [gxtexample] Remote connection lost
com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost
    at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1679)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.ja
va:401)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.dev.shell.BrowserChannelException: Invalid message type 
CHECK_VERSIONS
    at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1679)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.ja
va:401)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Thread.java:619)

------------------------------------------
Another error when I connect using FF3.6 is this (but some few times work fine):

22:30:08.625 [ERROR] [gxtexample] Error while executing the JavaScript provider for

property 'user.agent'
com.google.gwt.core.client.JavaScriptException: (null): null
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.jav
a:195)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
    at 
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpaceProp
ertyOracle.java:189)
    at 
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpaceProp
ertyOracle.java:127)
    at 
com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:58)
    at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:49)
    at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:38)
    at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:49)
    at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:36)
    at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.j
ava:98)
    at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java
:54)
    at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:154)
    at 
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:119)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:531)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:414)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at 
com.google.gwt.user.client.ui.impl.ClippedImagePrototype.<clinit>(ClippedImagePrototype
.java:29)
    at 
com.extjs.gxt.ui.client.image.XImages_generatedBundle.<clinit>(XImages_generatedBundle.
java:9)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at 
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:580)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:415)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at com.extjs.gxt.ui.client.GXT.<clinit>(GXT.java:37)
    at com.extjs.gxt.ui.client.util.Theme.<clinit>(Theme.java:44)
    at com.gxt.example.client.GXTExample.onModuleLoad(GXTExample.java:39)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369)
    at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.ja
va:380)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Thread.java:619)

the .war file generated run on Tomcat 6.0 works fine

Before this example I tried with another one extracted from GXT Example and work fine.

May be there is something in 2nd example that is wrong but I don't understand why 
deploying in Tomcat works in any browser that I use.

Reported by marco.conti@eng.it on 2010-05-10 21:02:29

dankurka commented 9 years ago
Sorry to necro this bug, but:

I was stuck with this error in Chrome just now. It turns out the problem was I was
accidentally duplicating the same <script> tag for the GWT module JavaScript file in
the host page.
 HTH someone.

Reported by jason@pixeljet.net on 2012-12-07 10:10:54

dankurka commented 9 years ago
Did it worked for fine for anybody?

Very strange, GUI comes up nicely in Chrome but we get this problem of "Remote connection
lost" it in the GWT development mode. But it works fine in IE, which is not a google
product, ofcourse GUI gets some distored in IE. :-(

Deepak

Reported by deepak.singhvi on 2013-01-05 18:52:10

dankurka commented 9 years ago
Less breakpoints helped me and increasing ram for the embedded server but now I use
firefox which never crashes for me.

Reported by vince.eagen on 2013-01-05 18:55:41

dankurka commented 9 years ago

Reported by dankurka@google.com on 2013-06-02 04:02:11