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 "Gayan Asanka (JIRA)" <ji...@apache.org> on 2005/09/14 08:18:54 UTC
[jira] Created: (AXIS2-217) javax.xml.stream.XMLStreamException while receiving Soap Envelope (at invokeBloking() )
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
[jira] Resolved: (AXIS2-217) javax.xml.stream.XMLStreamException
while receiving Soap Envelope (at invokeBloking() )
Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-217?page=all ]
Eran Chinthaka resolved AXIS2-217:
----------------------------------
Fix Version: 0.94
(was: 0.93)
Resolution: Cannot Reproduce
I tested the pasted xml with OM. But it seems OM is working fine with this. And this test was done using bea parser and now I'm using woddstox. I can not re-produce this bug anymore.
Here is the sample test code, I wrote (which of course doesn't have an assert statement, but a System.out. Thousand appologies for that :) )
public class XMLTest extends XMLTestCase {
private String originalXML = "<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/\">\n" +
" <SOAP-ENV:Body SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" id=\"_0\">\n" +
" <ns:echoStructResponse>\n" +
" <return xsi:type=\"s:SOAPStruct\">\n" +
" <varString xsi:type=\"xsd:string\">strss fdfing1</varString>\n" +
" <varInt xsi:type=\"xsd:int\">25</varInt>\n" +
" <varFloat xsi:type=\"xsd:float\">25.2299995</varFloat>\n" +
" </return>\n" +
" </ns:echoStructResponse>\n" +
" </SOAP-ENV:Body>\n" +
" </SOAP-ENV:Envelope> ";
public void testOMNS() {
try {
OMElement documentElement = new StAXOMBuilder(new ByteArrayInputStream(originalXML.getBytes())).getDocumentElement();
System.out.println(documentElement);
assertXMLEqual(originalXML, documentElement.toString());
} catch (XMLStreamException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
}
}
}
> 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.94
>
> 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
[jira] Updated: (AXIS2-217) javax.xml.stream.XMLStreamException while receiving Soap Envelope (at invokeBloking() )
Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-217?page=all ]
Eran Chinthaka updated AXIS2-217:
---------------------------------
Fix Version: 0.93
(was: 0.92)
> 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.93
>
> 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