i've resolved problem creating new DTO on the server from this creating by hibernate;
On 5 Cze, 14:57, fazie <d.rabi...@gmail.com> wrote: > Hi, > I've got problem using GWT+Spring+Hibernate+Maven App. > The SerializationException occurs when I use class including another > class (DTO). > > public class AddressDTO implements IsSerializable { > private static final long serialVersionUID = 1L; > private int addressid; > ( ... other ints and strings ... ) > > public AddressDTO() { > } > > ( .. setters and getters, generated with eclipse ...) > > } > > And this class is used inside another DTO: > public class ContractorDTO implements Serializable { > private static final long serialVersionUID = 15L; > private int contractorid; > ( ... some ints and strings ...) > private AddressDTO addressid; > > public ContractorDTO() { > } > ( ... setters and getters, generated with eclipse ...) > > } > > And when I call remote service, the following error is occuring: > > com.google.gwt.user.client.rpc.SerializationException: Type > 'mypackage.model.AddressDTO$$EnhancerByCGLIB$$6c3f0084' 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 = > mypackage.model.address...@847468 at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: > 610) > > Any idea? > Thank you in advance! > fazie -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.