ytbryan schrieb:

> i got the following exception
> "com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> This application is out of date, please click the refresh button on
> your browser."
> 
> i obtained this exception when i  deliberately changed "Statement"
> object  into " PreparedStatement"  when i want to execute the query.
> 
> why will PreparedStatement give an incompatitble exception?
> 
> as my ultimate goal is to use CallableStatement to call a stored
> procedure in my database which I assume that that will be incompatible
> as well. Therefore, can anybody advise me on calling stored procedure
> in my database? . I am new to both database and gwt. any help will be
> grateful.

The error-message has nothing to do with the fact that you're trying
to use PreparedStatements in your servlet. The browser you used for
testing was simply using the cached version of the entry-HTML-page
and corresponding Javascript-files, so an older version of the
HTML-page was trying to communicate with the newer version of the
servlet on the server-side.

To avoid strange effects/error-messages that might come up this
is checked and attempts will be rejected with this error-message.
So just do what you're told to do (read the error-message), reload
the HTML-page again explicitly to get the new version of your
web-application. Some browsers are caching quite "good", so some-
times it's necessary to restart the browser to achieve the reload.


Regards, Lothar

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

Reply via email to