I am still stuck with the issue....
On Sun, Apr 8, 2012 at 2:03 AM, Deepak Singh <[email protected]>wrote:
> Hi,
>
> I am doing some database operation on GAE-JAVA using Objectify 3.0.1
> through Deferedtask as follows,
>
> class TaskOp implements DeferredTask, Serializable {
>
> @Override
> public void run() {
> try{
> enq.setStatus(Constant.CANCELLED_ENQUIRY);
> objectify.put(enq);
> List<PackageConversationDTO> convList =
> objectify.query(PackageConversationDTO.class).filter("leadId",
> enq.getId()).list();
> for(PackageConversationDTO convDto : convList) {
> convDto.setStatus(Constant.CANCELLED_TRIP_PACKAGE_CONVERSATION);
> objectify.put(convDto);
> }
> List<HolidayInvoiceDTO> list =
> objectify.query(HolidayInvoiceDTO.class).filter("tripId",
> enq.getId()).list();
> for(HolidayInvoiceDTO holiday : list) {
> holiday.setStatus(Constant.INVOICE_GENERATED_THEN_TRIP_CANCELLED);
> objectify.put(holiday);
> }
> }catch (Exception e) {
> System.out
> .println("CommonRpcServiceImpl.cancelTripEnquiry(...).TaskOp.run()
> "+e.getMessage());
> }
> }
>
> }
>
>
>
> try{
> TaskOptions taskOpt = TaskOptions.Builder.withPayload(new TaskOp());
> Queue defQueue = QueueFactory.getDefaultQueue();
> defQueue.add(taskOpt);
> }catch (Exception e) {
> System.out.println("CommonRpcServiceImpl.cancelTripEnquiry()
> "+e.getMessage());
> }
>
> It always throws this exception
>
> CommonRpcServiceImpl.cancelTripEnquiry() java.io.NotSerializableException:
> com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy
>
> I make sure that all the object being used here are serializable.
>
>
> Thanks in advance
> Deepak Singh
>
--
Deepak Singh
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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-appengine?hl=en.