How to Solve GWT IncompatibleRemoteServiceException Error

I started GWT development few days ago and encounters these rather unfortunate stack trace error.

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 6 from server, got 5.)

Upon further research, I have concluded that this stupid trace is due to current gwt-servlet.jar at WEB-INF\lib has different version than GWT SDK version that I use (e.g. I am using sample code for developing RPC connection while using the latest SDK version). In short, the problem is caused by different RPC Protocol Versions – my server application uses version 5 RPC while the client application uses RPC at version 6.

So I decided to upgrade my gwt-servlet.jar to version that match the client side. However, googling for the latest gwt-servlet.jar is a bit tiring and thus I resort to create a random gwt project and copy the gwt-servlet.jar over to the sample application WEB-INF\lib. No need to deal with slow internet connection in Indonesia

Refresh everything and re-run the application… done

Related posts:

  1. Effective WordPress Ping Services List
  2. Using Hibernate 3.5 from 3.3 tutorial
  3. Tomcat 6 need more than 45 seconds
  4. Developed Android App gives Java NullPointer Error
  1. Jan says:

    This can be solved in Eclipse by changing SDK in properties for project. Properties->Google->Web Toolkit

  2. Richard says:

    Damn, that was definitely the easiest way to fix what was proving to be a painful problem. Thanks for posting it!

  3. Renan says:

    Thank you. I’ve got this problem when upgrade my AppEngine version on eclipse (from 1.4.3 to 1.5.1).

    Keep going…. ;)

  1. There are no trackbacks for this post yet.

Leave a Reply