I was getting the "TypeSerializer.raiseSerializationException
(transient source" error (that's how I ended up here), then I realized
my class had a field that was not serializable. After I fixed that,
everything worked fine.

~Owen

On 26 nov, 07:36, krishna <krishnakum...@gmail.com> wrote:
> Same issue here. Should this be raised as an issue? Good workarounds?
>
> Regards,
> Krishna
>
> On Oct 16, 10:42 pm, Tercio <terciofi...@gmail.com> wrote:
>
>
>
> > Same issue here....
>
> > com.google.gwt.user.client.rpc.SerializationException:
> > com.test.action.BatchAction
> >         at
> > com.test.action.ActionService_TypeSerializer.raiseSerializationException
> > (transient source for com.test.action.ActionService_TypeSerializer:
> > 1017)
> >         at com.test.action.ActionService_TypeSerializer.serialize(Native
> > Method)
> >         at
> > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali 
> > ze
> > (ClientSerializationStreamWriter.java:216)
> >         at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> > Object
> > (AbstractSerializationStreamWriter.java:129)
> >         at com.test.action.ActionService_Proxy.executeAction(transient 
> > source
> > for com.test.action.ActionService_Proxy:31)
> >         at com.test.client.manager.impl.DefaultActionManager$1.execute
> > (DefaultActionManager.java:64)
> >         at com.google.gwt.user.client.CommandExecutor.doExecuteCommands
> > (CommandExecutor.java:310)
> >         at com.google.gwt.user.client.CommandExecutor$2.run
> > (CommandExecutor.java:205)
> >         at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160)
> >         at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146)
> >         at com.google.gwt.user.client.Timer.fire(Timer.java:138)
>
> > On Oct 1, 12:56 pm, juggec <jorgenicarls...@gmail.com> wrote:
>
> > > I'm experiencing the same issues when having my signature defined as
> > > void doIt(List<Foo<Bar>>> list). Bar cannot be serialized. Any hints
> > > on how to work around this apart from adding dummy methods just to get
> > > the type whitelisted?
>
> > > /J
>
> > > On 14 Aug, 22:42, pgraham <philip.robert.gra...@gmail.com> wrote:
>
> > > > Hi all,
>
> > > > I believe I have encountered a bug with gwt serialization and Maps.
>
> > > > I have created a service with a single method that has an AbstractMap
> > > > as its only parameter.
>
> > > > public interface DataService extends RemoteService {
>
> > > >     public ChartData getChartData(AbstractMap<FilterTypeDto,
> > > > List<BaseDto>> filters);
>
> > > > }
>
> > > > When I invoke this method from the client side I get this error:
>
> > > > org.sitebrand.report.gwt.dto.FilterTypeDto
> > > >         at
> > > > org.sitebrand.report.gwt.service.DataService_TypeSerializer.raiseSerializat
> > > >  ­ionException
> > > > (transient source for
> > > > org.sitebrand.report.gwt.service.DataService_TypeSerializer:2403)
> > > >         at
> > > > org.sitebrand.report.gwt.service.DataService_TypeSerializer.serialize
> > > > (Native Method)
> > > >         at
> > > > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali
> > > >  ­ze
> > > > (ClientSerializationStreamWriter.java:216)
> > > >         at
> > > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
> > > >  ­Object
> > > > (AbstractSerializationStreamWriter.java:129)
> > > >         at
> > > > com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase
> > > >  ­.serialize
> > > > (Map_CustomFieldSerializerBase.java:49)
> > > >         at
> > > > com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer
> > > >  ­.serialize
> > > > (HashMap_CustomFieldSerializer.java:36)
> > > >         at
> > > > org.sitebrand.report.gwt.service.DataService_TypeSerializer.serialize
> > > > (Native Method)
> > > >         at
> > > > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali
> > > >  ­ze
> > > > (ClientSerializationStreamWriter.java:216)
> > > >         at
> > > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
> > > >  ­Object
> > > > (AbstractSerializationStreamWriter.java:129)
> > > >         at 
> > > > org.sitebrand.report.gwt.service.DataService_Proxy.getChartData
> > > > (transient source for
> > > > org.sitebrand.report.gwt.service.DataService_Proxy:31)
>
> > > > If I add a dummy method to the service that defines the type that is
> > > > failing to serialize as a parameter (see example) then calls to the
> > > > getChartData() method work.
>
> > > > public interface DataService extends RemoteService {
>
> > > >     public void bleh(FilterTypeDto dto);
>
> > > >     public void getChartData(AbstractMap<FilterTypeDto, List<BaseDto>>
> > > > filters);
>
> > > > }
>
> > > > Has anyone else encountered this and found a solution that doesn't
> > > > involve cluttering your service interface?
>
> > > > Cheers,
> > > > Philip

--

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