Hi Costa, please remind, that only classes are serializable, which fields are serializable too. In your case, as the error-message says, the MappingException doens´t seem to be serializable. I don´t know why you need this Exception in your class, or if you even wrote this class. Maybe you can refactor this class, so that you are sure, that only serializable fields are in it.
This should solve your problem. Greets Alex On 7 Sep., 00:02, Costa <[email protected]> wrote: > Please help with error below. > > Is this mean that the class com.voxbone.voxAPI.Country could not be > serialize or it is just simple > NoClassDefFoundError ? > > Exception while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationException: Type > 'org.dozer.MappingException' 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 = org.dozer.MappingException: > java.lang.NoClassDefFoundError: Could not initialize class > com.voxbone.voxAPI.Country > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: > 610) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: > 129) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: > 534) > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java: > 609) > at > com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: > 383) > at > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: > 581) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: > 188) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: > 224) > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: > 62) > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 710) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
