Friday, March 20, 2015

cache clear issue in gwt


Hi,

I have deployed new version of my application on production server. 
It does not allow user to login and throw below error in my console server.

09:24:20,106 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (http--0.0.0.0-80-33)
 loginrpc: ERROR: The serialization policy file '/v4workflow/FB64C6F0204DFD63FB92E5485E94A4E0.gwt.rpc' was not found; 
did you forget to include it in this deployment?
09:24:20,106 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] 
(http--0.0.0.0-80-33) loginrpc: WARNING: Failed to get the SerializationPolicy 'FB64C6F0204DFD63FB92E5485E94A4E0'
 for module  a legacy, 1.3.3 compatible, serialization policy will be used.
you may experience SerializationExceptions as a result.

It's cache issue. it works fine. because after clearing cache in my browser
To solve this issue, If I add cache clear header in index.html, 
it will add cost to load js every time at client side and give performance issue.

I got so anwser from Thomas Broyer, I can't understand some portion like
servlet.getServletContext().getResourceAsStream. You can customize this by overriding doGetSerializationPolicy (as said in the JavaDoc).
The file name (resource URL) is built from the request's path and X-GWT-Permutation request 

Refer link:
http://stackoverflow.com/questions/11140372/how-gwt-rpc-loads-the-serialization-policy-files

do you know how to resolve cache clear issue in gwt?

Thanks,
Bhumika Thaker

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment