简体   繁体   English

GWT开发模式 - 无法在Chrome中加载模块

[英]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. 我正在尝试使用我的本地IP 127.0.0.1上的Chrome v.20.0在开发模式下加载我的应用。 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." 消息:“GWT代码服务器断开连接很可能,您关闭了GWT开发模式。或者,您可能已经丢失了网络连接。要解决此问题,请尝试重新启动GWT开发模式并刷新此页面。”

  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" 在上一条消息(重叠)之上:“插件无法连接到开发模式服务器127.0.0.1:9997按照基本的故障排除说明”

This started to happen about 6-9 months ago and after 1 or 2 page refresh, the module loaded correctly. 这开始发生在大约6-9个月前,在刷新1或2页后,模块正确加载。 Now, i cannot load my app in dev-mode at all using Chrome. 现在,我无法使用Chrome在开发模式下加载我的应用程序。 (in firefox everything is ok). (在firefox中一切都很好)。 I'm using GWT 2.4 我正在使用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... 通常,如果我将地址格式127.0.0.1更改为localhost,则加载模块,但这不再起作用...

Had the same problem. 有同样的问题。 Deleting / reinstalling the plugin did the trick for me. 删除/重新安装插件对我来说很有用。

Check Automatically select an unused port of GWT from Run configuration. 选中自动从运行配置中选择未使用的GWT端口。 My similar problem solved by this 我解决了类似的问题

I solved this in chrome by: 我用chrome解决了这个问题:

  • go to chrome://extensions/ 转到chrome:// extensions /
  • locate GWT Developer Plugin 找到GWT Developer Plugin
  • uncheck the Enabled box 取消选中“已启用”框
  • check the Enabled box 选中“已启用”框

Have a look at http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM 请查看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. 此页面应该显示在邮件下方的iframe中(因此消息“基础指示”,但Google已经更改了code.google.com上的一些服务器代码,现在他们禁止在iframe中显示,这就是为什么它实际上没有'显示。

FYI, the issue has been reported on GWT's issue tracker http://code.google.com/p/google-web-toolkit/issues/detail?id=7301 仅供参考,GWT问题跟踪器上已报告此问题http://code.google.com/p/google-web-toolkit/issues/detail?id=7301

Your problem might be caused by improper gwt plugin setup. 您的问题可能是由不正确的gwt插件设置引起的。 Go to your gwt developer plugin options (red toolbox right upper conner) in chrome and add your web and code server addresses. 转到chrome中的gwt开发人员插件选项(红色工具箱右上角)并添加您的Web和代码服务器地址。 That worked for me. 这对我有用。

允许“localhost”作为网络服务器和代码服务器使它适用于我(尽管在浏览器中为两者指定了127.0.0.1)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM