Yes all of the classes have public no arg constructors.  I finally
narrowed the problem down, the superclass referenced a class which had
a property which was of type java.lang.Class.  I figure GWT cannot
serialize types of java.lang.Class so I changed it to a String
property and adjusted my application logic.  Now the classes properly
compile and are added to the whitelist.

However, this still has two issues, 1) there's no log information that
indicated why the class could not be compiled, a simple
"java.lang.Class is not serializable" error message would be great. 2)
If a class fails to compile and is not added to the whitelist all
subtypes of this class should also fail as you will have unexpected
results when using these classes on the client.

I think I will add this as an issue.

David


On Nov 21, 4:40 am, Paul Robinson <[EMAIL PROTECTED]> wrote:
> Do you have a no-arg constructor? That's a requirement for GWT
> serialization (although it can be private)
>
>
>
> Flapjack wrote:
> > I have several classes that are not being compiled and added to the
> > serialization policies whitelist, however by examining the logs I
> > don't see any information which specifically indicates why it cannot
> > be compiled.  Additionally, I have classes that extend a class which
> > are compiled and added to the whitelist, but the superclass is not
> > compiled or added to the whitelist... should this not be considered a
> > bug?  If a classes superclass cannot be serialized how can the sub-
> > type work?
>
> > Is there any particular setting that will let me know why a class is
> > failing to be compiled?
>
> > Thanks.
> > David- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to