SAP Knowledge Base Article - Preview

3344521 - Mail Adapter shows the error "javax.mail.MessagingException: Unable to load BODYSTRUCTURE"

Symptom

You are using Mail Adapter in Process Orchestration to fetch emails from an email server. For specific sender addresses and specific emails the following error is displayed in the Communication Channel Monitor:

javax.mail.MessagingException: Unable to load BODYSTRUCTURE

After collecting XPI Inspector trace Example 100 with tracing location com.sap.aii.adapter.mail you see the following stack trace:

javax.mail.MessagingException: Unable to load BODYSTRUCTURE
at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1488)
at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:556)
at javax.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:1159)
at javax.mail.internet.MimeMessage.isMimeType(MimeMessage.java:1016)
at com.sap.aii.af.sdk.xi.net.IMAPClientConnection.getTextFromMessage(IMAPClientConnection.java:605)
at com.sap.aii.af.sdk.xi.net.IMAPClientConnection.parseOAuthMails(IMAPClientConnection.java:502)
at com.sap.aii.af.sdk.xi.srt.xmb.XMBIMAPInitiatorServiceImpl$MailClientTask.invoke(XMBIMAPInitiatorServiceImpl.java:607)
at com.sap.aii.af.lib.scheduler.JobBroker$Worker.run(JobBroker.java:529)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)


Read more...

Environment

SAP PO 7.50, SAP PI 7.50

Product

SAP Process Integration all versions

Keywords

BODYSTRUCTURE, Unable to load BODYSTRUCTURE, Mail Adapter, Mail, SMTP, , KBA , BC-XI-CON-MAI , Mail Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.