JAX-WS: ClassCastException when Dispatch<OMElement> receives a SOAPFault
------------------------------------------------------------------------

                 Key: AXIS2-4561
                 URL: https://issues.apache.org/jira/browse/AXIS2-4561
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


The following exception occurred when a JAX-WS Dispatch<OMElement> API was used 
on the client, and the server responded with a message containing a SOAPFault.

javax.xml.ws.WebServiceException: java.lang.ClassCastException: 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl incompatible with 
org.apache.axiom.soap.SOAPFault
       at 
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
       at 
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
       at 
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
       at 
org.apache.axis2.jaxws.client.dispatch.BaseDispatch.invoke(BaseDispatch.java:244)


Analysis:

The ParserInputStreamCustomBuilder was inadvertently optimizing the input 
stream even though the message contained a SOAPFault.  I am changing the code 
to detect this situation and disable the optimization.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to