Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT Development mode - Unable to load module in Chrome

I'm trying to load my app in development mode using Chrome v. 20.0 on my local ip 127.0.0.1. The app fails to load, and the following is displayed:

  1. message: "GWT Code Server Disconnected Most likely, you closed GWT Development Mode. Or, you might have lost network connectivity. To fix this, try restarting GWT Development Mode and REFRESH this page."

  2. on top of the previous message (overlaid): "Plugin failed to connect to Development Mode server at 127.0.0.1:9997 Follow the underlying troubleshooting instructions"

This started to happen about 6-9 months ago and after 1 or 2 page refresh, the module loaded correctly. Now, i cannot load my app in dev-mode at all using Chrome. (in firefox everything is ok). I'm using GWT 2.4

UPDATE:

Those errors are not accompanied by any code stack trace output. Usually, if I changed the address form 127.0.0.1 to localhost, the module loaded, but this doesn't work any more...

like image 983
Andrei F Avatar asked Jul 20 '12 11:07

Andrei F


4 Answers

Had the same problem. Deleting / reinstalling the plugin did the trick for me.

like image 78
geert3 Avatar answered Nov 14 '22 21:11

geert3


Check Automatically select an unused port of GWT from Run configuration. My similar problem solved by this

like image 34
aki miyazaki Avatar answered Nov 14 '22 22:11

aki miyazaki


I solved this in chrome by:

  • go to chrome://extensions/
  • locate GWT Developer Plugin
  • uncheck the Enabled box
  • check the Enabled box
like image 45
Livingston Avatar answered Nov 14 '22 21:11

Livingston


Have a look at http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM

This page is supposed to be displayed in an iframe below the message (hence the message "underlying instructions", but Google has changed some server code on code.google.com and they now prohibit display within iframes, which is why it actually doesn't display.

FYI, the issue has been reported on GWT's issue tracker http://code.google.com/p/google-web-toolkit/issues/detail?id=7301

like image 43
Thomas Broyer Avatar answered Nov 14 '22 22:11

Thomas Broyer