After moving Microsoft exchange mail server 2007 to 2010 getting error message


  • Our Requirement is : Read PDF attachment from mail box and. After reading attachment, set read flag(seen flag) is true.

    This functionality is working as expected in Microsoft exchange server 2007 (Mailbox). We are using java API for setting read flag true.

    After migrating Exchange server 2007 to 2010 we are getting error while setting read flag true.

    As part of migration (2007 to 2010 imap address also got changed)

    Please verify the exception below.

    javax.mail.MessagingException: A24 NO Command received in Invalid state.;

    Please advise me.

    Tuesday, February 07, 2012 8:41 AM

All replies

  • Hi

    What is your version of Java API? May be you can have a try on EWS Java API 1.1, and the 1.1 release corresponds to Exchange 2010 SP1.

    You can download from


    Zi Feng

    Thursday, February 09, 2012 3:15 AM
  • Thanks Zi Feng for your update.

    I am able to get the content from the mail box (like read the attachment, read the file name etc). But when I do some set operations (like seen flag true {message.setFlag(Flags.Flag.SEEN, true)}) I am getting the exception.

    Is it any permission issue in the mail box? If yes, what permission I can give in the mailbox.


    Aneesh Kumar

    Thursday, February 09, 2012 10:17 AM