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 "Deepak Bhole (JIRA)" <ji...@apache.org> on 2006/02/09 18:38:58 UTC

[jira] Updated: (AXIS2-439) Axis2 client has a ClassCastException if there is a SOAP fault when running with REST support

     [ http://issues.apache.org/jira/browse/AXIS2-439?page=all ]

Deepak Bhole updated AXIS2-439:
-------------------------------

    Attachment: axis2-439.patch

Attached patch fixes this issue. Since SOAPModel expects the data in a SOAP envelope, we first build a standard OM and put it in an envelope, and then build a SOAP model from it. Since the OM model will be in memory when it's stream is passed to the SOAPModelBuilder, this shouldn't hurt performance much.

> Axis2 client has a ClassCastException if there is a SOAP fault when running with REST support
> ---------------------------------------------------------------------------------------------
>
>          Key: AXIS2-439
>          URL: http://issues.apache.org/jira/browse/AXIS2-439
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: core
>  Environment: IBM JDK 1.5, Fedora Core 4 [Kernel v. 2.6.13.x]
>     Reporter: Deepak Bhole
>     Priority: Minor
>  Attachments: axis2-439.patch
>
> When running with REST support, if there is a SOAP fault (in my case, I attempted to call an invalid service), the client application will encounter a ClassCastException (it should encounter an AxisFault).
> The error is caused because when a response is received from the server, the StAXOMBuilder is used to build the envelope (instead of the StAXSOAPModelBuilder); this builds a generic OM, not a SOAP model.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira