com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException

Jose Hdez picture Jose Hdez · May 26, 2011 · Viewed 8k times · Source

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!

Answer

Thomas Broyer picture Thomas Broyer · May 26, 2011

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).