com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException [英] com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

查看:324
本文介绍了com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的GWT应用程序出现问题。我部署在Jetty服务器上并运行。但是,当我执行服务器调用(GWT服务器包上的类)时,服务器返回错误消息。消息是:

  7 | 0 | 6 | http:// localhost / zbapp / zb_app / | A31E1254E17F9AD731856D6BE34124A2 | main.java .com.gwt.app.client.GreetingService | greetServer | java.lang.String中/ 2004016611 || 1 | 2 | 3 | 4 | 2 | 5 | 5 | 6 | 6 | 
//EX[2,1,[com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533\",\"This application is out-date,please click the refresh button on your browser。(Expecting )],0,5]

但是,服务器返回一个200代码就OK。

我已更新浏览器,清除浏览器缓存并重新编译应用程序,但它不运行。什么是解决方案?



预先感谢!



问候!

$ b您的客户端是最新的,因为它使用GWT-RPC协议版本7发送请求,但服务器期望版本5.检查您是否部署了gwt-servlet.jar的正确版本,和/或您的服务器类路径中没有旧版本,可以使用它来代替web应用程序中的版本。



更具体地说,当GWT 2.1或更高版本(协议版本7)编译客户端代码时,您的GWT中的gwt-servlet.jar介于1.5和2.0之间(GWT-RPC协议的第5版)。

I have a problem with my GWT application. I deploy on Jetty server and it runs. But when I perform a server call (class on server package of GWT), the server returns an error message. The message is:

7|0|6|http://localhost/zbapp/zb_app/|A31E1254E17F9AD731856D6BE34124A2|main.java.com.gwt.app.client.GreetingService|greetServer|java.lang.String/2004016611||1|2|3|4|2|5|5|6|6|
//EX[2,1,["com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533","This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 7. )"],0,5]

However, the server returns a 200 code that is OK.

I have updated the browser, clear up browser cache and recompiled the application, but it does not run. What is the solution for that??

Thanks in advance!

Regards!

解决方案

Your client is uptodate, as it sends a request using version 7 of the GWT-RPC protocol, but the server expects version 5. Check that you deployed the correct version of gwt-servlet.jar, and/or that you don't have an older version in your server classpath that would be used instead of the one from your webapp.

More specifically, you have a gwt-servlet.jar from GWT between 1.5 and 2.0 (version 5 of the GWT-RPC protocol) while your client code has been compiled with GWT 2.1 or newer (version 7 of the protocol).

这篇关于com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆