Re: [appengine-java] Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-03 Thread Ifnu bima
You need to implements serializable interface to User class, something like : public class User implements Serializable { } -- regards -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to

[appengine-java] Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-02 Thread Shawn Draper
I am storing user-profile information in the data store and retrieving with the following code: public static User getUserByID ( String userName ) throws Exception { PersistenceManager mgr = PMF.getInstance ( ).getPersistenceManager ( ); Query query = mgr.newQuery ( User.class

Re: [appengine-java] Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-02 Thread Ikai L (Google)
The User isn't serializable. Are you using the standard User class or a custom User class? On Tue, Jun 1, 2010 at 8:03 PM, Shawn Draper smd0...@hotmail.com wrote: I am storing user-profile information in the data store and retrieving with the following code: public static User getUserByID (