This application is out of date, please click the refresh button on your browser

1,256 views
Skip to first unread message

Jose Luis Hernandez

unread,
May 26, 2011, 1:45:46 AM5/26/11
to Google Web Toolkit
Hello!
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!

Ashwani Gupta

unread,
May 26, 2011, 2:01:12 AM5/26/11
to google-we...@googlegroups.com
I had the same issue.
 
Try restarting your computer and
if that doesn't fix it then search for this "ERROR: Expecting version between 5 and 6 from client, got 7" in the group
and you can read through what worked for me.
 
Ash


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


Jose Luis Hernandez

unread,
May 26, 2011, 3:45:37 AM5/26/11
to Google Web Toolkit
Hi!

I have changed the libraries and the error is disappeared. However,
the error changes. Now my error is:

//EX[2,1,
["com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/
3936916533","Could not locate requested interface
'main.java.com.gwt.app.client.GreetingService' in default
classloader"],0,7]

But the interface is in classloader. I do not why the application is
unable to get the interface. I need some help.

Regards!

Jose Luis Hernandez

unread,
May 26, 2011, 6:30:53 AM5/26/11
to Google Web Toolkit
Well, I have achieved to solve the problem. It is needed to override
method 'service' from HttpServlet:

@Override
protected void service(HttpServletRequest req, HttpServletResponse
resp)
throws ServletException, IOException {
// Cache the current thread
Thread currentThread = Thread.currentThread();
// We are going to swap the class loader
ClassLoader oldContextClassLoader =
currentThread.getContextClassLoader();

currentThread.setContextClassLoader(this.getClass().getClassLoader());
super.service(req, resp);
currentThread.setContextClassLoader(oldContextClassLoader);
}

Thus, the application runs on Equinox!!

On May 26, 9:45 am, Jose Luis Hernandez <jose.hernande...@gmail.com>
Reply all
Reply to author
Forward
0 new messages