java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPFaultDetail
"Shah, Sumit (CGI Federal)" <[email protected]>
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <3357D2C72D9A0345A66DFB0B043C04166C9CAF5C@FFX-S-EX-C1.cgifederal.com> |
Hi,
I am running into the following ClassCastException running Axis2 1.6.2 and Axiom 1.2.14 (I have also included the axiom-compat jar for backwards compatibility). I noticed a similar issue reported for Synapse/Carbon https://wso2.org/jira/browse/CARBON-13759. I am not sure if these are related.
java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache.axiom.soap.SOAPFaultDetail
Its occurring here in the SOAP11FaultImpl:
public SOAPFaultDetail getDetail() {
return (SOAPFaultDetail) getFirstChildWithName(SOAP11Constants.QNAME_FAULT_DETAIL);
}
I see that getFirstChildWithName() currently returns an OMELement, however the cast above fails. I would appreciate any suggestions.
Thanks
Sumit