You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Deenadayalan J <de...@gmail.com> on 2009/01/08 04:54:13 UTC

Re: XMLStreamException: end reached! - Found a Work Around

Hi All,

In the below sample xml, many fields had "" value. I set them to null and
the code is working sucessfully for now.

Still I have not figured out the reason for failure :-(


Regards,
Deena


On Wed, Jan 7, 2009 at 3:23 PM, Deenadayalan J <de...@gmail.com> wrote:

> Hi All,
>
> I got some more inputs and need your help in this regard. I am getting this
> error consistently now for one sample data. I will provide details of what I
> have found till now.
>
> Below is the request XML generated at my client end.
> 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
>
> [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.
> *
>
> *Thanks
> Deena
>
>
> On Mon, Nov 24, 2008 at 12:44 PM, Deenadayalan J <de...@gmail.com>wrote:
>
>> Hi,
>>
>> I getting this error frequently for the same request. But not always. When
>> does this happen?
>>
>>
>> Message:javax.xml.stream.XMLStreamException: end reached!:
>>
>> StAXOMBuilder.javaorg.apache.axiom.om.impl.builder.StAXOMBuildernext
>>
>> OMStAXWrapper.javaorg.apache.axiom.om.impl.llom.OMStAXWrapperupdateNextNode
>> OMStAXWrapper.javaorg.apache.axiom.om.impl.llom.OMStAXWrapper<init>
>>
>> OMElementImpl.javaorg.apache.axiom.om.impl.llom.OMElementImplgetXMLStreamReader
>>
>> OMElementImpl.javaorg.apache.axiom.om.impl.llom.OMElementImplgetXMLStreamReaderWithoutCaching
>>
>> OMSerializerUtil.javaorg.apache.axiom.om.impl.util.OMSerializerUtilserializeByPullStream
>>
>> OMElementImpl.javaorg.apache.axiom.om.impl.llom.OMElementImplinternalSerialize
>>
>> OMElementImpl.javaorg.apache.axiom.om.impl.llom.OMElementImplinternalSerializeAndConsume
>>
>> SOAPEnvelopeImpl.javaorg.apache.axiom.soap.impl.llom.SOAPEnvelopeImplserializeInternally
>>
>> SOAPEnvelopeImpl.javaorg.apache.axiom.soap.impl.llom.SOAPEnvelopeImplinternalSerialize
>>
>> OMElementImpl.javaorg.apache.axiom.om.impl.llom.OMElementImplinternalSerializeAndConsume
>> OMNodeImpl.javaorg.apache.axiom.om.impl.llom.OMNodeImplserializeAndConsume
>>
>> SOAPMessageFormatter.javaorg.apache.axis2.transport.http.SOAPMessageFormatterwriteTo
>>
>> AxisRequestEntity.javaorg.apache.axis2.transport.http.AxisRequestEntitywriteRequest
>>
>> EntityEnclosingMethod.javaorg.apache.commons.httpclient.methods.EntityEnclosingMethodwriteRequestBody
>>
>> HttpMethodBase.javaorg.apache.commons.httpclient.HttpMethodBasewriteRequest
>> HttpMethodBase.javaorg.apache.commons.httpclient.HttpMethodBaseexecute
>>
>> HttpMethodDirector.javaorg.apache.commons.httpclient.HttpMethodDirectorexecuteWithRetry
>>
>> HttpMethodDirector.javaorg.apache.commons.httpclient.HttpMethodDirectorexecuteMethod
>> HttpClient.javaorg.apache.commons.httpclient.HttpClientexecuteMethod
>> HttpClient.javaorg.apache.commons.httpclient.HttpClientexecuteMethod
>>
>> AbstractHTTPSender.javaorg.apache.axis2.transport.http.AbstractHTTPSenderexecuteMethod
>> HTTPSender.javaorg.apache.axis2.transport.http.HTTPSendersendViaPost
>> HTTPSender.javaorg.apache.axis2.transport.http.HTTPSendersend
>>
>> CommonsHTTPTransportSender.javaorg.apache.axis2.transport.http.CommonsHTTPTransportSenderwriteMessageWithCommons
>>
>> CommonsHTTPTransportSender.javaorg.apache.axis2.transport.http.CommonsHTTPTransportSenderinvoke
>> AxisEngine.javaorg.apache.axis2.engine.AxisEnginesend
>>
>> OutInAxisOperation.javaorg.apache.axis2.description.OutInAxisOperationClientsend
>>
>> OutInAxisOperation.javaorg.apache.axis2.description.OutInAxisOperationClientexecuteImpl
>> OperationClient.javaorg.apache.axis2.client.OperationClientexecute
>>
>> CSMVOUIServicesStub.javaau.com.qantas.csmvo.pmaui.services.CSMVOUIServicesStubupdateCustomerContact
>>
>> SectorFunctionServiceClient.javaau.com.qantas.csmvo.pmaui.serviceclients.SectorFunctionServiceClientupdateCustomerContact
>>
>> CustomerContactUpdateAction.javaau.com.qantas.csmvo.pmaui.actions.CustomerContactUpdateActionprocess
>> UIBaseAction.javaau.com.qantas.csmvo.pmaui.actions.UIBaseActionexecute
>>
>> RequestProcessor.javaorg.apache.struts.action.RequestProcessorprocessActionPerform
>> RequestProcessor.javaorg.apache.struts.action.RequestProcessorprocess
>> ActionServlet.javaorg.apache.struts.action.ActionServletprocess
>> ActionServlet.javaorg.apache.struts.action.ActionServletdoPost
>> HttpServlet.javajavax.servlet.http.HttpServletservice
>> HttpServlet.javajavax.servlet.http.HttpServletservice
>>
>> ServletStubImpl.javaweblogic.servlet.internal.ServletStubImpl$ServletInvocationActionrun
>> ServletStubImpl.javaweblogic.servlet.internal.ServletStubImplinvokeServlet
>> ServletStubImpl.javaweblogic.servlet.internal.ServletStubImplinvokeServlet
>>
>> WebAppServletContext.javaweblogic.servlet.internal.WebAppServletContext$ServletInvocationActionrun
>>
>> AuthenticatedSubject.javaweblogic.security.acl.internal.AuthenticatedSubjectdoAs
>> SecurityManager.javaweblogic.security.service.SecurityManagerrunAs
>>
>> WebAppServletContext.javaweblogic.servlet.internal.WebAppServletContextinvokeServlet
>> ServletRequestImpl.javaweblogic.servlet.internal.ServletRequestImplexecute
>> ExecuteThread.javaweblogic.kernel.ExecuteThreadexecute
>> ExecuteThread.javaweblogic.kernel.ExecuteThreadrun
>>
>>
>> Regards,
>> Deena
>>
>>
>