GWT 运行时与开发模式

发布于 2024-12-07 13:17:55 字数 348 浏览 5 评论 0原文

我们正在使用 GWT 来开发一个复杂的应用程序。在开发模式下,所有 RPC 和应用程序都能以合理的性能完美运行。

但是当我们处于生产模式时,一些 RPC 调用永远不会被执行,服务器端代码也永远不会被命中。我们对一些 RPC 调用执行负载掩码,并在成功时隐藏负载掩码。 但由于服务器代码从未被执行,负载掩码将永远存在,并且应用程序处于死亡状态。

有谁知道开发模式和生产模式差异背后的原因吗?另外,除了日志记录之外,我们如何跟踪和调试生产模式中到底发生了什么? 我知道问题出在 GWT 序列化上,但如何知道确切的问题是什么,以便我可以修改我的代码。

有什么我可以利用的工具吗? 我目前在 IE-8 中运行我的应用程序

谢谢

We are using GWT to develop a complex application . In development mode all the RPC's and the application work perfectly with reasonable performance.

But when we are in production mode some RPC calls are never been performed and the server side code never gets hit. We do a loadmask on some RPC calls and hid the loadmask on success.
But since the server code never got executed the loadmask is for ever and the application is in dead state.

Does anyone knows the reason behind the differences in dev and production mode? Also how do we track and debug on what's exactly happening in production mode apart from logging?
I kind of know that the problem is with the GWT serialization but how can know what the exact problem is so that i can modify my code.

Are there any tools that i could take advantage of?
I currently run my application in IE-8

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪淡了忧伤 2024-12-14 13:17:55

有几种方法可以调试此类问题:

  1. 对于初学者,您可以尝试使用 FireBug 或任何其他开发人员工具来检查 RPC 有效负载以及是否确实在开发模式下触发了服务器请求。
  2. 您可以告诉编译器不要生成混淆的输出代码(-pretty 或-详细),然后使用带有条件断点的 Firebug 检查代码是否有错误。
  3. 有时,仅在生产模式而非开发模式下引发异常。您还可以使用开发人员工具(firebug、java 控制台)进行检查。

There are several ways on how to debug these kind of problems:

  1. For starters you could try to use FireBug or any other developer tool to check the RPC payload and if actually a server request is fired in development mode.
  2. You can tell the compiler to not generate obfuscated output code (-pretty or -detailed) and then use Firebug with conditional breakpoints to check the code for errors.
  3. Sometimes an exception is thrown only in production mode and not in development. You can also check that with the developer tools (firebug, java console).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文