Results 1 to 3 of 3

Thread: Cannot modify appointment

  1. #1
    aina is offline Starter Member
    Join Date
    Aug 2010
    Rep Power

    Default Cannot modify appointment

    Hi All,

    I use the zimbra client JAVA API to create/modify appointment via ZMailbox. Creation process works fine but when I try to modify the created appointment I get the following SOAP fault exception:

    com.zimbra.common.soap.SoapFaultException: The specified Invite is out of date (has been updated): f4e1413f-4c68-4198-a0d9-6b07325bb172:822
    ExceptionId:btpool0-199:// b5cbf

    My code source is as follow:

    // get mail box
    ZMailbox mailbox = ZMailbox.getMailbox(options);

    * create appointment
    // create message
    ZMailbox.ZOutgoingMessage outgoingMessage = new ZOutgoingMessage();
    // message subject
    outgoingMessage.setSubject("Test zimbra JAVA client API");
    // message part
    outgoingMessage.setMessagePart(new MessagePart("text/plain", "This message may be deleted because it's just a test"));

    // create invite
    ZInvite invite = new ZInvite();
    // create invite
    ZComponent comp = new ZComponent();
    // set start date to the current date and time
    comp.setStart(new ZDateTime(ZimbraClientUtil.toVCalendarFormat(new Date())));
    ZDuration duration = new ZDuration();
    // set the default task's duration to 30 minutes
    // set organizer
    comp.setOrganizer(new ZOrganizer("aina"));
    comp.setName("Task name");
    comp.setLocation("Task location");

    ZAppointmentResult appointmentResult = mailbox.createAppointment(ZFolder.ID_CALENDAR, null, outgoingMessage, invite, null);

    * modify the created appointment
    ZAppointmentResult result = mailbox.modifyAppointment(appointmentResult.getCal ItemId(), ZFolder.ID_CALENDAR, new ZDateTime(ZimbraClientUtil.toVCalendarFormat(new Date())), outgoingMessage, invite);


    Please help to solve this problem.

  2. #2
    b_roit is offline New Member
    Join Date
    Jul 2011
    Rep Power

    Default I have same problem

    I have same problem.
    Is it solved?


  3. #3
    b_roit is offline New Member
    Join Date
    Jul 2011
    Rep Power


    ZAppointmentResult result = mb.modifyTask(appointmentResult.getInviteId(), "0", null, message, invite);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2009, 05:08 PM
  2. Replies: 0
    Last Post: 10-19-2009, 08:43 AM
  3. ical to create appointment
    By xenophobia in forum Developers
    Replies: 2
    Last Post: 05-10-2009, 11:13 PM
  4. Can't modify appointment via SOAP
    By Abak in forum Developers
    Replies: 6
    Last Post: 01-31-2007, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts