axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Deshayes" <ericdesha...@gmail.com>
Subject nosuchelement exception on well formed message
Date Wed, 09 May 2007 16:55:49 GMT
Hi,
I have a nosuchelementexception on a well formed message.
It seems that a space in the middle of the message seems to break the
parsing.

Working message (there is a space between the
ReferenceService_GetAvailableId s_1_0_Request opening tag and the objectType
openign tag):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema
">
<soap:Header>
<Header xmlns="http://type.ws.jrisk.appl.net">
</Header>
</soap:Header>
<soap:Body>
<ReferenceService_GetAvailableIds_1_0_Request xmlns="
http://referenceservice.type.pms.jrisk.appl.net">
<objectType>DynamicFilter</objectType></ReferenceService_GetAvailableIds_1_0_Request>

</soap:Body>
</soap:Envelope>

Non working message (there is NO space between the
ReferenceService_GetAvailableIds_1_0_Request opening tag and the objectType
openign tag):

<?xml version=" 1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ "
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<soap:Header>
<Header xmlns=" http://type.ws.jrisk.appl.net">
</Header>
</soap:Header>
<soap:Body>
<ReferenceService_GetAvailableIds_1_0_Request
xmlns="http://referenceservice.type.pms.jrisk.appl.net
"><objectType>DynamicFilter</objectType></ReferenceService_GetAvailableIds_1_0_Request>
</soap:Body>
</soap:Envelope>


The exception is:

org.apache.axiom.om.OMException: java.util.NoSuchElementException
        at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
StAXOMBuilder.java:194)
        at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext (
OMElementImpl.java:566)
        at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(
OMElementImpl.java:577)
        at org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(
OMElementImpl.java:290)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:805)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:792)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize (
OMElementImpl.java:807)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:792)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:807)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:792)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:807)
        at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize (
SOAPEnvelopeImpl.java:180)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(
OMElementImpl.java:792)
        at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(
OMNodeImpl.java:345)
        at org.apache.axiom.om.impl.llom.OMElementImpl.toString(
OMElementImpl.java:951)
        at java.lang.String.valueOf(String.java:2577)
        at java.lang.StringBuilder.append(StringBuilder.java:116)
        at
net.appl.jrisk.pms.webservices.AbstractJRiskAxis2WebService.readHeader (
AbstractJRiskAxis2WebService.java:63)
        at
net.appl.jrisk.pms.webservices.AbstractJRiskAxis2WebService.getJRiskSecurityContext
(AbstractJRiskAxis2WebService.java:112)
        at
net.appl.jrisk.pms.webservices.reference.ReferenceServiceSkeleton.ReferenceService_GetAvailableIds_1_0(
ReferenceServiceSkeleton.java:58)
        at
net.appl.jrisk.pms.webservices.reference.ReferenceServiceMessageReceiverInOut.invokeBusinessLogic
(ReferenceServiceMessageReceiverInOut.java:73)
        at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive (
AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
HTTPTransportUtils.java :328)
        at org.apache.axis2.transport.http.AxisServlet.doPost(
AxisServlet.java:254)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at javax.servlet.http.HttpServlet.service ( HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java :173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(
CustomPrincipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java :159)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:856)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(
MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.util.NoSuchElementException
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java
:1083)
        at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
StAXOMBuilder.java:111)
        ... 45 more
I am using Axis2-1.1.1

Regards,
Eric


-- 
----------------------------------------------------------------------
ERIC DESHAYES
ericdeshayes@gmail.com

Mime
View raw message