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 "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2005/09/02 08:14:13 UTC

[jira] Commented: (AXIS2-180) Codegen'ed Axis2 stubs doesn't handlle SoapFaults properly

    [ http://issues.apache.org/jira/browse/AXIS2-180?page=comments#action_12320852 ] 

Ajith Harshana Ranabahu commented on AXIS2-180:
-----------------------------------------------

The Mep client had a built in way to handle faults. That is inspect the body for a fault and throw an exception if it has any.
In the async case it'll actually redirect that response to the handleError method of the call back. Would that be enough as error handling ?

> Codegen'ed Axis2 stubs doesn't handlle SoapFaults properly
> ----------------------------------------------------------
>
>          Key: AXIS2-180
>          URL: http://issues.apache.org/jira/browse/AXIS2-180
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Ruchith Udayanga Fernando
>     Assignee: Ajith Harshana Ranabahu

>
> When the service reports a SOAP fault the stub throuws the following :org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15,151]
> This is the complete stack trace that I got with my stub generated for security interops:
> org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15,151]
> Message: already reached end document
> 	at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:203)
> 	at org.apache.axis2.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:452)
> 	at org.apache.axis2.om.impl.llom.OMElementImpl.getFirstChild(OMElementImpl.java:462)
> 	at org.apache.axis2.om.impl.llom.OMElementImpl.getFirstElement(OMElementImpl.java:697)
> 	at org.apache.axis2.soap.impl.llom.SOAPBodyImpl.hasFault(SOAPBodyImpl.java:73)
> 	at org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:179)
> 	at org.apache.axis2.oasis.ping.PingPortStub.Ping(PingPortStub.java:75)
> 	at org.apache.axis2.security.InteropClient.makeCall(InteropClient.java:50)
> 	at org.apache.axis2.security.InteropClient.main(InteropClient.java:30)
> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15,151]
> Message: already reached end document
> 	at com.bea.xml.stream.MXParser.parseEpilog(MXParser.java:1839)
> 	at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1723)
> 	at com.bea.xml.stream.MXParser.next(MXParser.java:1180)
> 	at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
> 	... 8 more

-- 
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