please try with ADB if it is a solution.
ADB handles Mtom in an optimised way.
On 7/23/07, Angus Ng <[EMAIL PROTECTED] > wrote:
>
> HI,
>
> We have an intermittent problem when sending a large XML message
> which has an encoded PDF attachment with base64.
> We are using a generated stub from xmlbean for sending the message.
> We are using Axis2 1.2 & xmlbeans 2.2, Axiom 2.4, Tomat 5.5 &
java 5.
>
> Our assumption is that this is something to do with the cache and
> getting the parser but are a little confused about why this
> exception is being thrown. (especially only sometimes)
>
> Are there any resource that we should clean up before sending?
>
> Here is the exception trail:
>
> org.apache.axis2.AxisFault: problem accessing the parser. Parser
> already accessed!
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
> (CommonsHTTPTransportSender.java:221)
> 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
>
landata.service.xmlbeans.ProvisioningServiceStub.CertificateProvision(
> ProvisioningServiceStub.java:152)
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.sendV
> iaWebService(ReleaseProcessor.java:194)
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.proce
> ss(ReleaseProcessor.java:80)
> at
>
au.com.groupware.planningcerts.service.pipeline.Processor.processAppli
> cationsInQueue(Processor.java:201)
> at
au.com.groupware.planningcerts.service.pipeline.Processor.run
> (Processor.java:172)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> eWithCommons(CommonsHTTPTransportSender.java :314)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
> (CommonsHTTPTransportSender.java:201)
> ... 9 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at org.apache.axis2.transport.http.HTTPSender.sendViaPost
> (HTTPSender.java:179)
> at org.apache.axis2.transport.http.HTTPSender.send
(HTTPSender.java :
> 73)
> at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> eWithCommons(CommonsHTTPTransportSender.java:305)
> ... 10 more
> Caused by: org.apache.axis2.AxisFault : problem accessing the
> parser. Parser already accessed!
> at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
> (AxisRequestEntity.java:98)
> at
>
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque
> stBody(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)
> ... 12 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo
> (SOAPMessageFormatter.java:59)
> at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
> (AxisRequestEntity.java:84)
> ... 21 more
> Caused by: javax.xml.stream.XMLStreamException : problem accessing
> the parser. Parser already accessed!
> at org.apache.axiom.om.impl.llom.OMStAXWrapper.next
> (OMStAXWrapper.java:883)
> at
>
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode
> (StreamingOMSerializer.java:69)
> at
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize
> (StreamingOMSerializer.java:54)
> at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream
> (OMSerializerUtil.java:490)
> at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.java:783)
> at
>
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsum
> e(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.internalSerializeAndConsum
> e(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)
> ... 22 more
> 2007-07-20 12:13:09,414 DEBUG - Processor.processApplicationsInQueue
> (271) | exception (org.apache.axis2.AxisFault: problem accessing
> the parser. Parser already accessed!) application 168 in processor
> Application Release
> 2007-07-20 12:13:09,414 DEBUG - EmailNotifier.sendErrorNotification
> (174) | error occurred
> java.lang.RuntimeException: org.apache.axis2.AxisFault: problem
> accessing the parser. Parser already accessed!
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.sendV
> iaWebService(ReleaseProcessor.java:233)
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.proce
> ss(ReleaseProcessor.java:80)
> at
>
au.com.groupware.planningcerts.service.pipeline.Processor.processAppli
> cationsInQueue(Processor.java:201)
> at
au.com.groupware.planningcerts.service.pipeline.Processor.run
> (Processor.java:172)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
> (CommonsHTTPTransportSender.java :221)
> 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
>
landata.service.xmlbeans.ProvisioningServiceStub.CertificateProvision(
> ProvisioningServiceStub.java:152)
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.sendV
> iaWebService(ReleaseProcessor.java:194)
> ... 4 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> eWithCommons(CommonsHTTPTransportSender.java:314)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
> (CommonsHTTPTransportSender.java:201)
> ... 9 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at org.apache.axis2.transport.http.HTTPSender.sendViaPost
> (HTTPSender.java:179)
> at org.apache.axis2.transport.http.HTTPSender.send
(HTTPSender.java:
> 73)
> at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> eWithCommons(CommonsHTTPTransportSender.java :305)
> ... 10 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
> (AxisRequestEntity.java:98)
> at
>
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque
> stBody(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)
> ... 12 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo
> (SOAPMessageFormatter.java:59)
> at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
> (AxisRequestEntity.java:84)
> ... 21 more
> Caused by: javax.xml.stream.XMLStreamException: problem accessing
> the parser. Parser already accessed!
> at org.apache.axiom.om.impl.llom.OMStAXWrapper.next
> (OMStAXWrapper.java:883)
> at
>
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode
> (StreamingOMSerializer.java:69)
> at
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize
> (StreamingOMSerializer.java:54)
> at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream
> (OMSerializerUtil.java:490)
> at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.java:783)
> at
>
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsum
> e(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.internalSerializeAndConsum
> e(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)
> ... 22 more
> 2007-07-20 12:13:09,414 DEBUG - EmailNotifier.sendErrorNotification
> (175) | error occurred java.lang.RuntimeException:
> org.apache.axis2.AxisFault : problem accessing the parser. Parser
> already accessed!
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.sendV
> iaWebService(ReleaseProcessor.java:233)
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.proce
> ss(ReleaseProcessor.java:80)
> at
>
au.com.groupware.planningcerts.service.pipeline.Processor.processAppli
> cationsInQueue( Processor.java:201)
> at
au.com.groupware.planningcerts.service.pipeline.Processor.run
> (Processor.java:172)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault : problem accessing the
> parser. Parser already accessed!
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
> (CommonsHTTPTransportSender.java:221)
> 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
>
landata.service.xmlbeans.ProvisioningServiceStub.CertificateProvision(
> ProvisioningServiceStub.java:152)
> at
>
au.com.groupware.planningcerts.service.pipeline.ReleaseProcessor.sendV
> iaWebService(ReleaseProcessor.java:194)
> ... 4 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> eWithCommons(CommonsHTTPTransportSender.java:314)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
> (CommonsHTTPTransportSender.java:201)
> ... 9 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at org.apache.axis2.transport.http.HTTPSender.sendViaPost
> (HTTPSender.java:179)
> at org.apache.axis2.transport.http.HTTPSender.send
(HTTPSender.java:
> 73)
> at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> eWithCommons(CommonsHTTPTransportSender.java :305)
> ... 10 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
> (AxisRequestEntity.java:98)
> at
>
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque
> stBody(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)
> ... 12 more
> Caused by: org.apache.axis2.AxisFault: problem accessing the
> parser. Parser already accessed!
> at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo
> (SOAPMessageFormatter.java:59)
> at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest
> (AxisRequestEntity.java:84)
> ... 21 more
> Caused by: javax.xml.stream.XMLStreamException: problem accessing
> the parser. Parser already accessed!
> at org.apache.axiom.om.impl.llom.OMStAXWrapper.next
> (OMStAXWrapper.java:883)
> at
>
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode
> (StreamingOMSerializer.java:69)
> at
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize
> (StreamingOMSerializer.java:54)
> at
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream
> (OMSerializerUtil.java:490)
> at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize
> (OMElementImpl.java:783)
> at
>
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsum
> e(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.internalSerializeAndConsum
> e(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)
> ... 22 more
>
> Any help would be appreciated. Thanks.
>
> Angus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Amila Suriarachchi,
WSO2 Inc.