Type 'com.icerm.shared.dispatch.GetUserResult' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = com.icerm.shared.dispatch.GetUserResult@6411a006
My Class for GetUserResult that is in the shared package:
public class GetUserResult implements Result {
VirtualUserBundle vub = new VirtualUserBundle();
private String firstName;
@SuppressWarnings("unused")
private GetUserResult() {
// For serialization only
String jsonString = "{ \"readonly\": true, \"name\": \"Foo\", \"createdAt\": \"08.01.2010\", \"count\": 20 }";
vub = VirtualUserBundle.JSON.read(jsonString);
}
public GetUserResult(String firstName) {
this.firstName = firstName;
}
public String getFirstName() {
return firstName;
}
}