Before Christmas break I upgraded my GWT Eclipse plugin. This morning, after rebuilding and trying to run my GWT (Google Web Toolkit) application, I ran into this error:
Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Expecting version 5 from client, got 6. )
at com.google.gwt.user.server.rpc.impl. ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:432)
That wasn’t all though. My development mode was also using the 2.1.x version. In that case I got this error:
[ERROR] Invalid version number “2.1” passed to external.gwtOnLoad(), expected “2.0”; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app
This was a result of my hosted.html file being cached by the browser. Since I had tried to use devmode after mistakenly compiling with the 2.1.x GWT compiler, my browser had a cached version of hosted.html. By clearing my browser cache and restarting, I was able to pick up the newly compiled hosted.html, and devmode started working.