You can still keep your multi-argument constructor, you just also must
have a zero arg.

On Apr 22, 7:53 pm, Adam35413 <[email protected]> wrote:
> So it appears that the issue is User did not have a 0 argument
> constructor.  I removed the constructor and everything appears to be
> working.  I guess I will just have to set all of the members manually
> with the setters.  Not a problem, just several more lines of code.
>
> Thanks!
>
> On Apr 22, 8:24 pm, kozura <[email protected]> wrote:
>
>
>
> > 0 arg constructor?  Return value of the RPC uses generics ala
> > List<User>?  All I can think of, you might also look in the rpc log
> > file which is sometimes slightly more helpful.  If you can't figure
> > out, post the UserService and UserServiceAsync calls and maybe the
> > constructors as well.
>
> > BTW no need to use Integer, can use int, and IsSerializable can just
> > be java.io.Serializable now.
>
> > On Apr 22, 6:09 pm, Adam35413 <[email protected]> wrote:
>
> > > I am trying to implement a very simple AsyncCallback RPC system, and I
> > > believe I have 99% of it correct.  I have the UserService and
> > > UserServiceAsync on the client side, and the UserServiceImpl on the
> > > server side.  Through debugging, it appears that the only current
> > > issue is the error message I get when the server tries to respond with
> > > a list of Users:
>
> > > "Caused by: com.google.gwt.user.client.rpc.SerializationException:
> > > Type 'com.gwt.ca.client.model.User' was not included in the set of
> > > types which can be serialized by this..."
>
> > > However, I am not doing anything crazy in the User model.  The model
> > > is as follows:
>
> > > package com.gwt.ca.client.model;
>
> > > import com.google.gwt.user.client.rpc.IsSerializable;
>
> > > public class User implements IsSerializable {
>
> > >         private Integer id = -1;
> > >         private String course = null;
> > >         private String title = null;
> > >         private String date = null;
> > >         private String book = null;
> > > ...
>
> > > I have setter and getter methods for all of those variables and a
> > > constructor.  Why would this not be serializable, and what is the
> > > solution to fixing this?
>
> > > Thanks!
>
> > > --
> > > 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 
> > 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 
> 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.

Reply via email to