Exception MessagingException: Unable to load BODYSTRUCTURE with Exchange 2007

View: New views
4 Messages — Rating Filter:   Alert me  

Exception MessagingException: Unable to load BODYSTRUCTURE with Exchange 2007

by Roger Duluth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using following in my application environment
*JavaMail v1.4.1
*MS-Exchange 2007 with IMAP and POP3 enabled

I'm able to connect to a Mailbox using IMAP. I’m getting following error
when I try to the get content

Any help would be greatly appreciated.


-------------BEGIN-----------------
A1410 OK FETCH completed.
A1411 FETCH 4 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 4 FETCH (ENVELOPE ("Wed, 6 Feb 2008 16:25:39 -0500" "test me 2007 client
002" (("agent002" NIL "ag02" "labs.testing.com")) NIL NIL (("MB1" NIL "MB1"
"labs.testing.com")) NIL NIL NIL
"<E3B41B82817C4E7EB0AF271775352B59@...>") INTERNALDATE
"06-Feb-2008 16:25:39 -0500" RFC822.SIZE 636)
A1411 OK FETCH completed.
A1412 FETCH 4 (BODY.PEEK[HEADER.FIELDS (x-msgid)])
A1412 OK FETCH completed.
A1414 FETCH 4 (BODY.PEEK[HEADER.FIELDS (X-Priority)])
A1414 OK FETCH completed.
A1415 FETCH 4 (BODYSTRUCTURE)
A1415 OK FETCH completed.
IMAP DEBUG: IMAPProtocol noop
A1416 NOOP
A1416 OK NOOP completed.
javax.mail.MessagingException: Unable to load BODYSTRUCTURE
        at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1280)
        at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:443)
        at javax.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:1059)
        at javax.mail.internet.MimeMessage.isMimeType(MimeMessage.java:965)
        at test.InboundServiceQueueMessage.<init>(InboundServiceQueueMessage.java:183)
        at test.InboundServiceAddress.newMessage(InboundServiceAddress.java:90)
        at test.MailQueue.newMessage(MailQueue.java:179)
        at test.MailQueue$1.messagesAdded(MailQueue.java:224)
        at javax.mail.event.MessageCountEvent.dispatch(MessageCountEvent.java:150)
        at javax.mail.EventQueue.run(EventQueue.java:134)
        at java.lang.Thread.run(Unknown Source)
A1417 FETCH 4 (BODYSTRUCTURE)
A1417 OK FETCH completed.
IMAP DEBUG: IMAPProtocol noop
A1418 NOOP
A1418 OK NOOP completed.
A1419 FETCH 4 (FLAGS)
* 4 FETCH (FLAGS (\Seen \Recent))
A1419 OK FETCH completed.
A1420 FETCH 4 (BODY[])
A1420 OK FETCH completed.
javax.mail.MessagingException: No content
        at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:691)
        at javax.mail.internet.MimeMessage.<init>(MimeMessage.java:236)
        at test.MailQueue.embedIds(MailQueue.java:562)
        at test.NLPRequest.doNLP(NLPRequest.java:219)
        at test.NLPRequest.run(NLPRequest.java:278)
IMAP DEBUG: IMAPProtocol noop
A1270 NOOP
A1270 OK NOOP completed.
IMAP DEBUG: IMAPProtocol noop
A1421 NOOP
* 4 EXPUNGE
* 4 EXISTS
A1421 OK NOOP completed.
IMAP DEBUG: IMAPProtocol noop
A1214 NOOP
A1422 FETCH 4 (BODY.PEEK[HEADER.FIELDS (x-msgdone)])
A1214 OK NOOP completed.
* 4 FETCH (BODY[HEADER.FIELDS (x-msgdone)] {2}

)
-------------END-----------------

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: Exception MessagingException: Unable to load BODYSTRUCTURE with Exchange 2007

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Your server is broken.  Watch:

> A1417 FETCH 4 (BODYSTRUCTURE)
> A1417 OK FETCH completed.

JavaMail asks for the BODYSTRUCTURE of the message and nothing is returned.

What server are you using?

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Parent Message unknown Re: Exception MessagingException: Unable to load BODYSTRUCTURE with Exchange 2007

by Roger Duluth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

*JavaMail v1.4.1
*MS-Exchange 2007  with SP1 (IMAP and POP3 enabled)

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".

Re: Exception MessagingException: Unable to load BODYSTRUCTURE with Exchange 2007

by Bill Shannon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Roger Duluth wrote:
> *JavaMail v1.4.1
> *MS-Exchange 2007  with SP1 (IMAP and POP3 enabled)
>

What's the protocol trace show?

(You've read the FAQ, right?)

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".