[
https://issues.apache.org/jira/browse/AXIS2-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruchith Udayanga Fernando resolved AXIS2-1955.
----------------------------------------------
Resolution: Duplicate
This is a known issue[1] caused by this[2] issue in axiom.
One solution to this issue is to use SOAP 1.2
Thanks,
Ruchith
[1] https://issues.apache.org/jira/browse/AXIS2-1643
[2] https://issues.apache.org/jira/browse/WSCOMMONS-104
> Rampart 1.1 causes ClassCastException
> -------------------------------------
>
> Key: AXIS2-1955
> URL: https://issues.apache.org/jira/browse/AXIS2-1955
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: modules
> Affects Versions: 1.1
> Environment: Axis2 1.1, Rampart 1.1
> Reporter: Thilo Frotscher
> Assigned To: Ruchith Udayanga Fernando
> Priority: Blocker
>
> When a client application uses Rampart 1.1 and receives a SOAP response that
> contains a SOAP fault, a ClassCastException occurs:
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.axiom.om.impl.llom.OMElementImpl
> at
> org.apache.axiom.soap.impl.llom.SOAPFaultImpl.getCode(SOAPFaultImpl.java:101)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
> at
> de.axishotels.booking.service.MyServiceStub.MakeXXX(MyServiceStub.java:729)
> To reproduce this bug do the following:
> - use a generated stub for an arbitrary service
> - let stub send a SOAP request to the service which causes a response
> containing a SOAP fault
> - the SOAP fault should be processed by Axis2 framework and stub without
> errors
> - now, globally engage rampart-1.1 in client's axis2.xml configuration file.
> No actions need to be defined for any service or operation. Just engage the
> module.
> - resend the same SOAP request
> - when SOAP fault is processed, the above exception occurs
> ==> Rampart 1.1 breaks handling of SOAP faults by generated stubs
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]