OIC Integration Error - Target REST endpoint response payload processing failed
Summary:
Hello Experts,
I’m facing an issue in an OIC integration while invoking a third-party API. The request is going through successfully on the third-party system side, and the response is in JSON format. However, in OIC I’m getting the below error:
<![CDATA[Target REST endpoint response payload processing failed.[[Fault Details :
<ns0:APIInvocationError xmlns:ns0="http://xmlns.oracle.com/cloud/generic/rest/fault/REST/CPI_endpoint"><ns0:type/><ns0:title/><ns0:detail/><ns0:errorCode/><ns0:errorDetails><ns0:type/><ns0:title>Non-http status code</ns0:title><ns0:errorCode>REST_RES_PLD_ERR</ns0:errorCode><ns0:errorPath><![CDATA[An error occurred while processing the response payload in the target REST endpoint.]]></ns0:errorPath><ns0:instance><![CDATA[Target REST endpoint response payload processing failed. -- java.lang.ClassCastException: class oracle.xml.parser.v2.XMLDocument cannot be cast to class java.io.InputStream (oracle.xml.parser.v2.XMLDocument is in unnamed module of loader 'app'; java.io.InputStream is in module java.base of loader 'bootstrap')]]></ns0:instance></ns0:errorDetails></ns0:APIInvocationError>]]]]>