Thursday, May 26, 2011

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

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>
wrote:
> 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!
>
> On May 26, 8:01 am, Ashwani Gupta <ashwani...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 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
>
> > On Wed, May 25, 2011 at 10:45 PM, Jose Luis Hernandez <
>
> > jose.hernande...@gmail.com> wrote:
> > > 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!
>
> > > --
> > > 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-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment