Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error while fetching the messages by UID

843834Aug 24 2010 — edited Aug 26 2010
Hi,

I’m getting following error while fetching the messages from IMAP folder.

Caused by: javax.mail.MessagingException: A15 NO FETCH could not complete for one or more messages;
nested exception is:
com.sun.mail.iap.CommandFailedException: A15 NO FETCH could not complete for one or more messages
at com.sun.mail.imap.IMAPFolder.getMessageByUID(IMAPFolder.java:1835)

... 16 more
Caused by: com.sun.mail.iap.CommandFailedException: A15 NO FETCH could not complete for one or more messages
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:340)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchSequenceNumber(IMAPProtocol.java:1342)
at com.sun.mail.imap.IMAPFolder.getMessageByUID(IMAPFolder.java:1823)

While I understand that it’s not a javamail problem b’coz command is failing at server level. I have also read the IMAP specification but couldn’t get clear answer in which scenarios this will happen? If UID is not present in mailbox then getMessageByUID will return null (as per java mail comment). What is the best way to recover from this error?


Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2010
Added on Aug 24 2010
3 comments
985 views