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 "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org> on 2005/08/26 11:54:05 UTC

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

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
 Assigned to: 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


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

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-180?page=comments#action_12320235 ] 

Ruchith Udayanga Fernando commented on AXIS2-180:
-------------------------------------------------

This is just an idea that crossed my mind... :-)

What if we can describe SOAP fault with XML schema and use that in code generation to enable the handling of faults.

Here if we create the Java type for the SOAP Fault using whatever the data binding framework, then it should be possible to deserialize the SOAP Fault OMElement to the particular object.

This way it may be possible to support the handing of the custom faults - 
wsdl:fault definition in WSDL.

What do u folks think?

> 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


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

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
    [ 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


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

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-180?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-180:
-------------------------------------------

    Fix Version: 0.92
     Resolution: Fixed

implemented as mentioned in the comment

> 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
>      Fix For: 0.92

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