Enterprise Capture Import Processor Fails To Import An E-mail Which Is BASE64 Encoded (Doc ID 2013200.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle WebCenter Enterprise Capture - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

Import Processor is set to monitor an e-mail inbox and import every e-mail from there. The problem occurs as soon as there is BASE64 encoded e-mail.

The following error message occurs, and no Batch is created:

[APP: capture] Error extracting text/plain body from message.
oracle.odc.exception.CaptureException: Error extracting text/plain body from message.
at oracle.odc.importprocessor.email.util.MessageUtil.getTextMessageBody(MessageUtil.java:61)
...
Caused by: java.lang.ClassCastException: com.sun.mail.util.BASE64DecoderStream
at oracle.odc.importprocessor.email.util.MessageUtil.getTextMessageBody(MessageUtil.java:58)

If the settings for the email import job is changed by removing the message body from the Batch, the error message changes and an empty Batch is created:

[APP: capture] Error extracting attachments
oracle.odc.exception.CaptureException: Error extracting attachments
at oracle.odc.importprocessor.email.EmailSource.processMessage(EmailSource.java:557)
...
Caused by: oracle.odc.exception.CaptureException: Error extracting text/plain body from message.
at oracle.odc.importprocessor.email.util.MessageUtil.getTextMessageBody(MessageUtil.java:61)
...
Caused by: java.lang.ClassCastException: com.sun.mail.util.BASE64DecoderStream
at oracle.odc.importprocessor.email.util.MessageUtil.getTextMessageBody(MessageUtil.java:58)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms