JAVA.LANG.CLASSCASTEXCEPTION: MIMEMULTIPART CANNOT BE CAST TO STRING

(Doc ID 2343057.1)

Last updated on JUNE 06, 2018

Applies to:

Oracle Workflow - Version 12.1.3 to 12.1.3 [Release 12.1]
Information in this document applies to any platform.

Symptoms

When a MIME Multipart unsolicited E-mail message is received by WF mailer an exception is triggered caused by an illegal cast of a MIME Multipart object
to a String.Below errors are noticed in the mailer log

[Nov 1, 2017 1:25:08 PM
CET]:1509539108160:-1:-1:vmohssgds094.oracleoutsourcing.com:148.87.153.115:-1:
-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:127
0737204:84435:1509539093304:40:UNEXPECTED:[SVC-GSM-WFMLRSVC-613853-10006 :
oracle.apps.fnd.cp.gsc.Processor.run()]:java.lang.ClassCastException:
javax.mail.internet.MimeMultipart cannot be cast to java.lang.String
[Nov 1, 2017 1:25:08 PM
CET]:1509539108160:-1:-1:vmohssgds094.oracleoutsourcing.com:148.87.153.115:-1:
-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:127
0737204:84435:1509539093304:40:UNEXPECTED:[SVC-GSM-WFMLRSVC-613853-10006 :
oracle.apps.fnd.cp.gsc.Processor.run()]:An unexpected RuntimeException or
Throwable occurred -> java.lang.ClassCastException:
javax.mail.internet.MimeMultipart cannot be cast to java.lang.String

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