Monday, March 25, 2013

Re: GWT RPC Serialization stops working when migration from 2.4.0 to 2.5.1

I've managed to solve this problem. Basically I've created a class extending the HashMap:

public class MapStatusChanges extends
        HashMap<WFStatus, Pair<WFPhase, ArrayList<Pair<AppUser, Date>>>> {

And then created a CustomSerializer to the MapStatusChanges.

It's not a generic solution, but it works until this problem is solved at GWT.

Hope this helps....

On Monday, March 25, 2013 6:31:39 PM UTC, Paulo Martins wrote:
Michael, I've cleaned up and rebuilt the whole project.

The strange stuff here is that the unique RPC methods that fails are the methods that transport this object.

On Monday, March 25, 2013 5:09:24 PM UTC, Michael Prentice wrote:
Have you cleared out your gwt-unitCache?

On Monday, March 25, 2013 1:01:28 PM UTC-4, Paulo Martins wrote:

I've updated my project from GWT 2.4.0 to GWT 2.5.1 and suddenly a specific RPC serialization has stopped work (all other are still working).

I have this class:

public class StatusChangeMapEntity extends RecordStamp implements Serializable {        private HashMap<WFStatus, Pair<WFPhase, ArrayList<Pair<AppUser, Date>>>> map;      ...      ...  }  

The exception message is:

Attempt to deserialize an object of type class Pair when an object of type class Slide is expected  

The class Slide extends StatusChangeMapEntity and is the object that is being deserialized.

Any ideias how to solve this problems?


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment