hi,

would not it be better to have a compilation error in such case, with
precise information like class and problem description??
see
http://code.google.com/p/google-web-toolkit/issues/detail?id=4828

regards
Michael

On Jun 3, 6:15 am, Sripathi Krishnan <sripathi.krish...@gmail.com>
wrote:
> 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 <shawn.vinc...@gmail.com> 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 google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> > .
> > 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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to