Hello,
I've tried this a couple of different times now, in wholly different contexts, and I keep running up against the same problem. Actions/Results appear to work fine with DispatchAsync.execute(Action, AsyncCallback), but if I add a custom serializable object to the Action, I receive the following stack trace (on top of the execute call):
com.google.gwt.user.client.rpc.SerializationException
at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:153)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:125)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:183)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
at com.gwtplatform.dispatch.shared.DispatchService_Proxy.execute(DispatchService_Proxy.java:33)
at com.gwtplatform.dispatch.client.RpcDispatchAsync.doExecute(RpcDispatchAsync.java:55)
at com.gwtplatform.dispatch.client.AbstractDispatchAsync.execute(AbstractDispatchAsync.java:93)
The object is custom, implements Serializable and IsSerializable, and contains nothing but a String and another object that is also Serializable/IsSerializable, containing only integers.
I hope I'm just missing something obvious. Has anyone else run into this?
Thanks