Hi Hugo, Your project layout seems fine at the first glance. I also have used a similar configuration with 2 modules, one of them inherits the other and also used a class from the base module into the inherited module RPC as a return type. Common problems which might be the cause of your pb: Your Contacto class - doesn't have a default (no arg) constructor - encapsulates some other classes which are not serializable (are you using something like Lists etc. ?). Try removing all the members to see if this is the case.
HTH On May 4, 4:34 am, Hugo Vinícius <[email protected]> wrote: > Hello, > > My application are divided in two modules. The module A inherits > module B, there's a Serializable class on module B used by a service > on A as return value. When the service returns a list of object from > that class the exception belows appears on log: > > ------------ > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type > 'br.ufrn.lcc.m4o.client.dominio.modelo.Contato' 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 = > br.ufrn.lcc.m4o.client.dominio.modelo.cont...@184be7d 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.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java: > 43) at > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java: > 36) > ----------------- > > Anyone knows any problems about using classes from inherited modules > as return value from rpc calls? I'm using GWT 2.0, the second module > is on my war's lib directory and contains .class and .java files, the > java files are to the gwt compile recognise and compile to js. I'm > using a supermodule that inherits from ones above. There isn't > EntryPoint on module B. > > Hugo Vinícius > > -- > 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 > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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.
