javax.xml.stream.XMLStreamException while receiving Soap Envelope (at
invokeBloking() )
---------------------------------------------------------------------------------------
Key: AXIS2-217
URL: http://issues.apache.org/jira/browse/AXIS2-217
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Components: om
Versions: 0.91
Environment: Windows XP
Reporter: Gayan Asanka
Fix For: 0.92
Hi,
When I try to do an interop test with gSOAP Server I got follwing exception
inside invokeBlocking() method. I could monitor both request and response soap
envelopes properly via the tcp monitor. It seems Axis2 client has a problem
processing the response envelope.
This is the response (monitored via Tcp Monitor):
HTTP/1.1 200 OK
Date: Mon, 12 Sep 2005 09:44:06 GMT
Server: Apache/2.0.51 (Fedora)
Connection: close
Content-Length: 717
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:s="http://soapinterop.org/xsd" xmlns:a="http://xml.apache.org/xml-soap"
xmlns:ns="http://soapinterop.org/">
<SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" id="_0">
<ns:echoStructResponse>
<return xsi:type="s:SOAPStruct">
<varString xsi:type="xsd:string">strss fdfing1</varString>
<varInt xsi:type="xsd:int">25</varInt>
<varFloat xsi:type="xsd:float">25.2299995</varFloat>
</return>
</ns:echoStructResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Following is the Exception:
org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException; nested
exception is:
org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException;
nested exception is:
org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException; nested
exception is:
org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException
at
org.apache.axis2.interopt.whitemesa.round2.SunRound2Client.sendMsg(SunRound2Client.java:66)
at
org.apache.axis2.interopt.whitmesa.round2.GSoapRound2Soap12InteropTest.testRBaseEchoStruct(GSoapRound2Soap12InteropTest.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Caused by: org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException;
nested exception is:
org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:96)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:46)
at
org.apache.axis2.clientapi.TwoWayTransportBasedSender.send(TwoWayTransportBasedSender.java:54)
at
org.apache.axis2.clientapi.InOutMEPClient.invokeBlocking(InOutMEPClient.java:182)
at
org.apache.axis2.interopt.whitemesa.round2.SunRound2Client.sendMsg(SunRound2Client.java:62)
... 24 more
Caused by: org.apache.axis2.om.OMException: javax.xml.stream.XMLStreamException
at
org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:270)
at
org.apache.axis2.om.impl.llom.OMElementImpl.getNextSibling(OMElementImpl.java:245)
at
org.apache.axis2.om.impl.llom.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:74)
at
org.apache.axis2.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:203)
at
org.apache.axis2.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:62)
at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.parseHeaders(StAXSOAPModelBuilder.java:146)
at
org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:94)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:91)
... 28 more
Caused by: javax.xml.stream.XMLStreamException
at com.bea.xml.stream.MXParser.parseEndTag(MXParser.java:2086)
at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1638)
at com.bea.xml.stream.MXParser.next(MXParser.java:1249)
at
org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:188)
... 35 more
note: src code can be found at
modules/integration/itest/org.apache.axis2.interopt.whitmesa.round2.GSRound2InteropTest
and
modules/integration/itest/org.apache.axis2.interopt.whitmesa.round2.soap12.GSoapRound2Soap12InteropTest
(those codes are commented due to this error)
Thanks
Gayan
--
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