Ora:getAttachmentProperty Gives Error (Doc ID 2273988.1)

Last updated on AUGUST 09, 2017

Applies to:

Oracle SOA Suite - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

ora:getAttachmentProperty gives error

ERROR
-----------------------
XPath expression failed to execute.
An error occurs while processing the XPath expression; the expression is ora:getAttachmentProperty('Content-Disposition',$Invoke_SendEmail_SendNotification_InputVariable.body/ns2:attachment[1])
The XPath expression failed to execute; the reason was: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement cannot be cast to java.lang.String
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.

Note that the same fault also for: 'Content-Type'
ora:getAttachmentProperty('Content-Type',$Invoke_SendEmail_SendNotification_InputVariable.body/ns2:attachment[1])


and For: string(ora:getAttachmentProperty('Content-Disposition',$Invoke_SendEmail_SendNotification_InputVariable.body/ns2:attachment[1]))

I get the Fault:
XPath expression failed to execute.
An error occurs while processing the XPath expression; the expression is string(ora:getAttachmentProperty('Content-Disposition',$Invoke_SendEmail_SendNotification_InputVariable.body/ns2:attachment[1]))
The XPath expression failed to execute; the reason was: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement cannot be cast to java.lang.String
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Deploy related composite.
2. Test it.
3. Observe the error.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Business impact not provided.

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