Confirm that all classes participating in RPC -

   1. implement Serializable
   2. have a zero-argument constructor

Most of the times I forget zero-argument constructor, and that's when I get
errors similar to what you have pasted.

--Sri


On 31 May 2010 20:23, svincent <[email protected]> wrote:

> Greetings,
>
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> 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 [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