First off, this is a runtime error. Were there any compile time errors/ warnings??? Also, make double SURE you really are 1.5, because TreeSet was not in 1.4.
Second, there is a file produced during compile that ends in gwt.rpc , check that file. If java.util.TreeSet is NOT in there, then GWT didn't think you NEEDED to Serialize it. This is probably because you didn't declare it as a return type or parameter in your RPC Signature, or as a concrete type member of another Serializable class. I'd need to see your RPC signature. On Oct 13, 1:17 pm, Twentyseven <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using GWT 1.5.2, with Spring 2.5.2 and Hibernate 3.2.6. > > I'm using the TreeSet class in GWT on the client side with a custom > comparator and I have no problem. > > But I tried to use the sort attribute of <set> in the Hibernate > mapping (Hibernate return a TreeSet with a custom Comparator) and I > get this exception : > > com.google.gwt.user.client.rpc.SerializationException: Type > 'java.util.TreeSet' 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. > > What's wrong with my code ? Is it a GWT bug ? > > Thank's, --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
