Hi, Amila,

I'd tried to generate ADB using Axis2 1.3RC2, which is probably more stable than 1.2. However, I got the following error when generate the Java using wsdl2java

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init> (CodeGenerationEngine.java:147)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: No service was not found in the WSDL at file:/Users/angusng/Desktop/axis2-1.3-RC2/bin/schemas/ certificateProvision/ with targetnamespace http:// www.landata.vic.gov.au/AgencyWeb/Provisioning at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS ervices(WSDL11ToAllAxisServicesBuilder.java:117) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init> (CodeGenerationEngine.java:141)
        ... 2 more


Use Axis2 1.2 to generate, which gave the same error. However, when I fall back to use 1.1.1, it is actually works! So what is actually happen there?

You suggested to use ADB, can I use Axis1.1.1 to generate the stub?

Cheers,
Angus


On 26 Jul 2007, at 5:01 PM, Amila Suriarachchi wrote:

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.

Reply via email to