To be gwt-serializable, you must have a no-arg constructor davis wrote: > Hi, I have tried the following: > > public class UserNotFoundException extends Exception implements > Serializable { > > // serial uid > private static final long serialVersionUID = 1L; > > public UserNotFoundException(String msg) { super(msg); } > } > > ...and then in my service interface: > > @RemoteServiceRelativePath("UserService") > public interface UserService extends RemoteService { > > void register(User user) throws UserNotFoundException; > > ...but when I start up the app in hosted mode, I get: > > [ERROR] Type 'com.example.client.exceptions.UserNotFoundException' was > not serializable and has no concrete serializable subtypes > > I'm using GWT 1.7.0. I notice the SerializableException is > deprecated, so I did not use that. I also tried having the exception > class implement IsSerializable instead of Serializable, but it > produces the same results. > > What am I missing?
--~--~---------~--~----~------------~-------~--~----~ 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-Toolkit@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 -~----------~----~----~----~------~----~------~--~---