I'm having a frustrating time debugging a bunch of code I'm trying to
port to GWT. There are various subtle serialization issues (not
surprising, since GWT has its special rules).
The real problem I'm running in to is that the exception I keep
getting is this:
com.google.gwt.user.client.rpc.SerializationException: null
at
com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:
161)
at
com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:
145)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:
199)
...
This exception is terrible: it doesn't tell me what class is having
the trouble. It tries to print out the 'typeSignature', but the
typeSignature is null for classes with certain types of serialization
issues.
A couple of thoughts:
1. it would be Really Nice if GWT could be changed to fix this
exception to be more meaningful (at least include the class name
that's having the trouble)
2. Does anybody have tips on what to do when you get this exception?
I've encountered one case: don't have fields of type java.lang.Object
in your GWT Serializable classes. Is there more?
Thanks!
-Shawn.
--
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