ERROR: Expecting version between 5 and 6 from client, got 7

1,074 views
Skip to first unread message

Ash

unread,
May 24, 2011, 1:40:45 PM5/24/11
to Google Web Toolkit
I am getting this error when I run my application in hosted mode
locally.

I have tried to import the code fresh from repository and didn't work.
Not able to understand why is this happening.
I have 1.4.3 for App Engine and 2.30 for Gwt.

[ERROR] javax.servlet.ServletContext log: loginService: An
IncompatibleRemoteServiceException was thrown while processing this
call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Expecting version between 5 and 6 from client, got
7. )

Ash

unread,
May 24, 2011, 4:06:53 PM5/24/11
to Google Web Toolkit
Has anyone seen this error before and has any insights into how to get
this debugged.

miller

unread,
May 24, 2011, 4:15:22 PM5/24/11
to google-we...@googlegroups.com
Are you doing anything strange with serialization?  I can't remember specifics but I think this error is thrown incorrectly sometimes when there is another exception thrown in serialization/deserialization.  Sorry I don't have more details but maybe this will point you in the correct direction.


Ashwani Gupta

unread,
May 24, 2011, 5:45:16 PM5/24/11
to google-we...@googlegroups.com
Hi Miller,
 
Thanks for your reply. I don't think there is anything strange with serialization but I will give it a look.


 
On Tue, May 24, 2011 at 1:15 PM, miller <miller...@gmail.com> wrote:
Are you doing anything strange with serialization?  I can't remember specifics but I think this error is thrown incorrectly sometimes when there is another exception thrown in serialization/deserialization.  Sorry I don't have more details but maybe this will point you in the correct direction.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Jens

unread,
May 24, 2011, 8:07:04 PM5/24/11
to google-we...@googlegroups.com
GWT has an internal version to make sure client and server can speak with each other correctly. Currently your client side code talks "version 7" but your server code only understands "version 5 and 6". I would say you have upgraded to a newer version of GWT (e.g. 2.3.0) but your IDE does not have updated GWT's server side libraries (gwt-servlet.jar and possibly gwt-servlet-deps.jar) in you WEB-INF/lib folder. 

Copy the new files into your WEB-INF/lib folder, rebuild your app and it should work.

-- J.

Paul Stockley

unread,
May 24, 2011, 10:18:57 PM5/24/11
to google-we...@googlegroups.com
You can also clear these kind of mismatch errors by clearing your browser cache/cookies

Ashwani Gupta

unread,
May 25, 2011, 4:25:48 PM5/25/11
to google-we...@googlegroups.com
Thanks guys for your suggestions.
 
I did clear my browser cache and it did not fix it.
 
But when I copied the latest gwt-servlet.jar file to WEB-INF/lib folder that did fix it.
 
Ash

On Tue, May 24, 2011 at 7:18 PM, Paul Stockley <pstoc...@gmail.com> wrote:
You can also clear these kind of mismatch errors by clearing your browser cache/cookies
Reply all
Reply to author
Forward
0 new messages