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!

Unable to read the message java.io.IOException: No content

843834Dec 30 2009 — edited Jan 1 2010
Getting the following Exception while reading a mail........

Caused by: java.io.IOException: No content
at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:108)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:805)
at javax.activation.DataHandler.getContent(DataHandler.java:550)
at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1396)
at com.test.services.inbound.readmail.BouncedMailReader.processBouncedMails(BouncedMailReader.java:151)

Line 151 is below
{color:#0000ff}*multipart = (MimeMultipart)msg.getContent();*
{color}
But when I manually copy the same mail back to "new" folder from "cur",then the read is successful.

Please suggest.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 29 2010
Added on Dec 30 2009
8 comments
989 views