You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2009/11/20 22:01:39 UTC

[jira] Resolved: (AXIS2-4561) JAX-WS: ClassCastException when Dispatch receives a SOAPFault

     [ https://issues.apache.org/jira/browse/AXIS2-4561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle resolved AXIS2-4561.
-----------------------------------

    Resolution: Fixed

> 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
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> 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.