Hi Tomek,

Isaac is probably on the right path here. If you switched to GWT 1.5 and
changed the implementing type from IsSerializable to java.io.Serializable,
you would only receive the error messages talking about isSerializable if
the .gwt.rpc serialization policy file wasn't deployed or wasn't accessible.
The GWT RPC mechanism defaults to the IsSerializable convention if it can't
find the serialization policy file or if it can't find the serializable type
listed.

Hope that helps,
-Sumit Chandel

On Fri, Jan 9, 2009 at 10:02 AM, Isaac Truett <itru...@gmail.com> wrote:

>
> Are you deploying the gwt.rpc files from compilation? You should see
> an error about this before the SerializationException.
>
>
> On Fri, Jan 9, 2009 at 7:17 AM, tomekp <tom...@mailinator.com> wrote:
> >
> > hi,
> > According to GWT documentation (http://code.google.com/support/bin/
> > answer.py?hl=en&answer=78126), it should be possible to use
> > java.io.Serializable instead of IsSerializable interface.
> > But for me even the simpliest classes cannot be serialized when I
> > switch from IsSerializable to Serializable.
> > I checked that the automatically generated "whitelist" contains right
> > entries. I checked the hosted and web mode.
> > I always get the following exception:
> >
> > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> > 'ch.systemsx.cisd.openbis.generic.client.web.client.dto.X' was not
> > assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
> > not have a custom field serializer.  For security purposes, this type
> > will not be deserialized.
> >        at
> >
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize
> > (LegacySerializationPolicy.java:123)
> >        at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
> > (ServerSerializationStreamReader.java:490)
> >        at
> >
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
> > (AbstractSerializationStreamReader.java:61)
> >        at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
> > $ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
> >        at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue
> > (ServerSerializationStreamReader.java:372)
> >        at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
> >        ... 35 more
> >
> > For some reason always the LegacySerializationPolicy class is used.
> > I'm using GWT 1.5.
> > Any ideas what can be wrong? Has anyone succeeded to use Serializable
> > interface?
> >
> > Greetings
> >  Tomek
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to