-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to upgrade a GWT app from an older version of GWT to the
latest. Unfortunately, when after deploying, the servlet won't start up,
producing the following error:

[_commentator 2010/04/17 14:43:50] - ERROR: Failed to parse the policy
file '/commentator/E6866CEAFF319C8A73FC8024DAD723D4.gwt.rpc'
java.text.ParseException: Expected: className, [true | false]
        at
com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429)
        at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:121)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
        at
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
        at java.lang.Thread.run(Thread.java:636)

The .gwt.rpc file does exist in the war file, and is at the specified
path (relative to the servlet root).

This exception is then followed by the usual 'Failed to get the
SerializationPolicy' exception, but I'm pretty sure that this is a
consequence of the earlier exception.

I have no idea what to do here. Any suggestions? I don't even know
whether the servlet is managing to open the .gwt.rpc file, and don't
know how to find out.

Looking at the contents of the .gwt.rpc file, I notice that it seems to
mention classes like java.sql.Date --- which is odd, as my app isn't
using SQL anywhere. Is this normal?

- -- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "In the beginning was the word.
│ And the word was: Content-type: text/plain" --- Unknown sage
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLybz9f9E0noFvlzgRAsyLAJ9AlCsTRoAidN2DfbQrVl5XTDUo/QCeKHqY
sA4hoObOgmepyNeEnlFxvZA=
=L5U0
-----END PGP SIGNATURE-----

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