I am attempting to return a Map that uses a String key and values that include a String or some User defined objects that are defined in the shared module. When I return these user defined objects simply as ArrayList<user object> everything works well. When I add them to the above mentioned Map as Map.put.(String key, value User Defined object) the call fails saying that "Type 'mil.dod.j8.gfm.shared.model.UiTypeTransferRequest' was not iuncluded in the set of types which can be serialized by this SerializaitonPolicy". The user defined objects all implement IsSerializable but I still get this message after they have been added to the Map? The Map is being created correctly on the server but I can't get it to tranmit over RPC without the serialization error?
Yes there is:
//--------------------------------------------------------------------
//Constructors
//--------------------------------------------------------------------public UITypeTransferRequest() {
set("name", "Type Transfer Request");
//TODO the name should be set in whatever client widget uses the instance
}
Please check if your class implements Serializable or isSerializable?
Check, if the package containing your class is shared.
Check, if all classes used in your class are serializable.
The class is part of the mill.dod.J8.gfm.shared.model package and I have tried class definintion implementing Serializable and implementing IsSerializable and implementing both Serializable and IsSerializable with no change?
I am doing exact the same in one of my projects. So, it should work.
Check if every object that is refered by your class is part of the shared package.
If you use classes from otherr modules, check if you inherit this module in your module descriptor.