Skip to main content

XMLStreamException: end reached!

3 replies [Last post]
idrag05
Offline
Joined: 2007-05-31
Points: 0

Can anybody tell me what the following Exception means?

Exception in thread "main" org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: end reached!
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:211)
at org.apache.axiom.om.impl.llom.OMStAXWrapper.updateNextNode(OMStAXWrapper.java:969)
at org.apache.axiom.om.impl.llom.OMStAXWrapper.(OMStAXWrapper.java:172)
at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:649)
at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReaderWithoutCaching(OMElementImpl.java:628)
at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:488)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:783)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:234)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:222)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:418)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55)
at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at localhost.archiveengine.wsdl.CarsysServiceCarsysServiceSOAP12Port_httpStub.sendCarsysRequest(CarsysServiceCarsysServiceSOAP12Port_httpStub.java:160)
at localhost.archiveengine.wsdl.CarsysClient.main(CarsysClient.java:42)
Caused by: javax.xml.stream.XMLStreamException: end reached!
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:85)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125)

For me, it says that the StreamReader reached the end of something!? ;-) ... is the Builder not able to create my message? On the Monitor tool the Request is structured in the right way.

I used the XMLBeans DataBinding on AXIS2-1.2.

Thanks for all kind of help!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tzhaogmail
Offline
Joined: 2008-02-01
Points: 0

Hi, idrag05,

Did you have the problem fixed? I got the error using AXIS2 calling a web service in WAS environment. Can you solved the problem, i would appreciate if you could share the solution.

Thanks.

Tong

mthome1056
Offline
Joined: 2007-07-27
Points: 0

Just came across this myself - In my case, it happened when server authentication failed - that is, the SocketFactory refused to validate any of the server-offered certificates so threw a CertificateException, which axis2 apparently just silently ignored, leaving the XMLStream in a bad state.

tzhaogmail
Offline
Joined: 2008-02-01
Points: 0

Hello, mthome1056,

What did you do to fix the issue? I got the same error as the orignal posted got. I'll appreciate if you would share that.

Thank you.

Tong