Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.xml.stream.XMLStreamException: end reached!:

 
Deena Jeyachandran
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I am working on a Web application and the app is a client to a webservice.
I am using Axis2-v1.3 with XML Beans for the client. Web sevice is host by 3rd party.
I have deployed my web application in Weblogic81 SP4

Below is the request XML generated at my client end. I have given the stack trace at the end

[Jan 06 16:58:16] - <updateCustomer xmlns:ns="http://xxxxx.xx..xxx">
<userToken>
<AccessScope>3</AccessScope>
<Groups>
<String>bb</String>
</Groups>
<UserId>mth08</UserId>
</userToken>
<customer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://xxxxx.xx..xxx">
<aaaa>test</aaaa>
<bbbb/>
<ccc>W</ccc>
<ddd/>
<eee>2</eee>
<fff>hugh</fff>
<ggg>jackman</ggg>
<hhh/>
<iii/>
<jjj/>
<kkk>true</kkk>
<lll/>
<ns:mmm>
<ns:nnn>12234</ns:nnn>
<ns:ooo>36355</ns:ooo>
<ns:ppp>@#@</ns:ppp>
<ns:qqq>2009-01-07</ns:qqq>
</ns:mmm>
<rrr/>
</customer>
</updateCustomer>

1. When I call stub.update(), the exception is thrown. The exception is thrown at client side itself before reaching the service.

2. Exception always occurs for the above sample data.

3. The web service call occurs successfully, if I do one of the changes given below
a. If I increase the number of characters to node aaa from test to testabcd, the service call happens successfully.
b. keeping the sample as such, If I change the fff & ggg nodes to some other name it works. But not always, it does fail for some names.
c. Keeping the sample as such, If I add value to one of the blank fields, it works.

4. Exception never occurs when I deploy the web-app in my local computer. Exception always occurs for the above sample data, when I deploy the web app in a remote server. I have tried re-deplyment or re-start of server thinking it might be due to some objects not getting garbage collected. But the exception still occurs when i deploy in a remote server

Have been struggling with this problem for quite a while. I would really appreciate any help in this regard.

Stack Trace:

[Jan 07 13:30:37] - StAXOMBuilder.java-org.apache.axiom.om.impl.builder.StAXOMBuilder.next
[Jan 07 13:30:37] - OMStAXWrapper.java-org.apache.axiom.om.impl.llom.OMStAXWrapper.updateNextNode
[Jan 07 13:30:37] - OMStAXWrapper.java-org.apache.axiom.om.impl.llom.OMStAXWrapper.<init>
[Jan 07 13:30:37] - OMElementImpl.java-org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader
[Jan 07 13:30:37] - OMElementImpl.java-org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReaderWithoutCaching
[Jan 07 13:30:37] - OMSerializerUtil.java-org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream
[Jan 07 13:30:37] - OMElementImpl.java-org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
[Jan 07 13:30:37] - OMElementImpl.java-org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume
[Jan 07 13:30:37] - SOAPEnvelopeImpl.java-org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally
[Jan 07 13:30:37] - SOAPEnvelopeImpl.java-org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize
[Jan 07 13:30:37] - OMElementImpl.java-org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume
[Jan 07 13:30:37] - OMNodeImpl.java-org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume
[Jan 07 13:30:37] - SOAPMessageFormatter.java-org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo
[Jan 07 13:30:37] - AxisRequestEntity.java-org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
[Jan 07 13:30:37] - EntityEnclosingMethod.java-org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody
[Jan 07 13:30:37] - HttpMethodBase.java-org.apache.commons.httpclient.HttpMethodBase.writeRequest
[Jan 07 13:30:37] - HttpMethodBase.java-org.apache.commons.httpclient.HttpMethodBase.execute
[Jan 07 13:30:37] - HttpMethodDirector.java-org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry
[Jan 07 13:30:37] - HttpMethodDirector.java-org.apache.commons.httpclient.HttpMethodDirector.executeMethod
[Jan 07 13:30:37] - HttpClient.java-org.apache.commons.httpclient.HttpClient.executeMethod
[Jan 07 13:30:37] - HttpClient.java-org.apache.commons.httpclient.HttpClient.executeMethod
[Jan 07 13:30:37] - AbstractHTTPSender.java-org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod
[Jan 07 13:30:37] - HTTPSender.java-org.apache.axis2.transport.http.HTTPSender.sendViaPost
[Jan 07 13:30:37] - HTTPSender.java-org.apache.axis2.transport.http.HTTPSender.send
[Jan 07 13:30:37] - CommonsHTTPTransportSender.java-org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
[Jan 07 13:30:37] - CommonsHTTPTransportSender.java-org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
[Jan 07 13:30:37] - AxisEngine.java-org.apache.axis2.engine.AxisEngine.send
[Jan 07 13:30:37] - OutInAxisOperation.java-org.apache.axis2.description.OutInAxisOperationClient.send
[Jan 07 13:30:37] - OutInAxisOperation.java-org.apache.axis2.description.OutInAxisOperationClient.executeImpl
[Jan 07 13:30:37] - OperationClient.java-org.apache.axis2.client.OperationClient.execute
[Jan 07 13:30:37] - CSMVOUIServicesStub.java-au.com.qantas.csmvo.pmaui.services.CSMVOUIServicesStub.updateCustomerContact
[Jan 07 13:30:37] - SectorFunctionServiceClient.java-au.com.qantas.csmvo.pmaui.serviceclients.SectorFunctionServiceClient.updateCustomerContact
[Jan 07 13:30:37] - CustomerContactUpdateAction.java-au.com.qantas.csmvo.pmaui.actions.CustomerContactUpdateAction.process
[Jan 07 13:30:37] - UIBaseAction.java-au.com.qantas.csmvo.pmaui.actions.UIBaseAction.execute
[Jan 07 13:30:37] - RequestProcessor.java-org.apache.struts.action.RequestProcessor.processActionPerform
[Jan 07 13:30:37] - RequestProcessor.java-org.apache.struts.action.RequestProcessor.process
[Jan 07 13:30:37] - ActionServlet.java-org.apache.struts.action.ActionServlet.process
[Jan 07 13:30:37] - ActionServlet.java-org.apache.struts.action.ActionServlet.doPost
[Jan 07 13:30:37] - HttpServlet.java-javax.servlet.http.HttpServlet.service
[Jan 07 13:30:37] - HttpServlet.java-javax.servlet.http.HttpServlet.service
[Jan 07 13:30:37] - ServletStubImpl.java-weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
[Jan 07 13:30:37] - ServletStubImpl.java-weblogic.servlet.internal.ServletStubImpl.invokeServlet
[Jan 07 13:30:37] - ServletStubImpl.java-weblogic.servlet.internal.ServletStubImpl.invokeServlet
[Jan 07 13:30:37] - WebAppServletContext.java-weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
[Jan 07 13:30:37] - AuthenticatedSubject.java-weblogic.security.acl.internal.AuthenticatedSubject.doAs
[Jan 07 13:30:37] - SecurityManager.java-weblogic.security.service.SecurityManager.runAs
[Jan 07 13:30:37] - WebAppServletContext.java-weblogic.servlet.internal.WebAppServletContext.invokeServlet
[Jan 07 13:30:37] - ServletRequestImpl.java-weblogic.servlet.internal.ServletRequestImpl.execute
[Jan 07 13:30:37] - ExecuteThread.java-weblogic.kernel.ExecuteThread.execute
[Jan 07 13:30:37] - ExecuteThread.java-weblogic.kernel.ExecuteThread.run
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic