DefferedTask's are serialized, so the field 'Objectify objectify' is
causing the error.


On Thu, Nov 10, 2011 at 8:12 PM, Deepak Singh <deepaksingh...@gmail.com>wrote:

> public class DBMailTask implements DeferredTask {
>  Objectify objectify = ObjectifyService.begin();
>  String subject = null;
> String body = null;
>  String receipents = null;
> List<Object> list = null;
>  public void paramValues (final String subjectt, final String bodyy,
> final String receipentss, final List<Object> listt) {
> this.subject = subjectt;
>  this.body = bodyy;
> this.receipents = receipentss;
> this.list = listt;
>  System.out.println("CommonRpcServiceImpl.DBMailTask.paramValues() values
> set");
> }
>                 @Override
> public void run() {
>                                      if(object instanceof UserSubscribed) {
>  UserSubscribed user = (UserSubscribed) object;
> objectify.put(user);
> }
>  if(object instanceof UserTravelExpComment) {
> UserTravelExpComment user = (UserTravelExpComment) object;
>  objectify.put(user);
> }
> if(object instanceof ContactUs) {
>  ContactUs user = (ContactUs) object;
> objectify.put(user);
> }
> }
> }
>
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to