Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within XML
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
XML and Related Technologies
org.apache.axis2.AxisFault: problem accessing the parser. Parser already accessed!
Dinesh nath
Greenhorn
Posts: 3
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
I am newbie to
java
and web services, I am trying to integrate existing code with mine.
TranslationServiceAbstractStub stub = new TranslationServiceAbstractStub( END_POINT); TranslationInitiationRequestDocument translationInitiationRequestDocument = (TranslationInitiationRequestDocument) getTestObject(TranslationInitiationRequestDocument.class); TranslationInitiationRequest translationInitiationRequest = translationInitiationRequestDocument .addNewTranslationInitiationRequest(); System.setProperty("javax.net.ssl.trustStore", ReadKeyFromProperties.retrieveKey(args[1], "Translation.trustStore")); System.setProperty("javax.net.ssl.trustStorePassword", ReadKeyFromProperties.retrieveKey(args[1], "Translation.trustStorePassword")); System.setProperty("javax.net.ssl.keyStoreType", ReadKeyFromProperties.retrieveKey(args[1], "Translation.keyStoreType")); System.setProperty("javax.net.ssl.keyStore", ReadKeyFromProperties .retrieveKey(args[1], "Translation.keyStore")); System.setProperty("javax.net.ssl.keyStorePassword", ReadKeyFromProperties.retrieveKey(args[1], "Translation.keyStorePassword")); //Some more code TranslationInitiationRequestStatusDocument results = stub .SendTranslationRequest(translationInitiationRequestDocument);
when it comes to execute the last line of above code, it runs into the below error
org.apache.axis2.AxisFault: problem accessing the parser. Parser already accessed! at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72) 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:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at com.symantec.www.it.webservices.translationservice.TranslationServiceAbstractStub.SendTranslationRequest(TranslationServiceAbstractStub.java:242) at clientRequest.main(clientRequest.java:406) Caused by: javax.xml.stream.XMLStreamException: problem accessing the parser. Parser already accessed! at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:906) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:72) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:57) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:525) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:789) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:237) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:225) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68) ... 19 more
can some one help me please.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
can't run rampart client
Web services in HTTPS. org.apache.axis2.AxisFault: Read timed out
javax.xml.stream.XMLStreamException: end reached!:
Axis2 username/password Authentication
AXIS 2 - Requested factory com.ctc.wstx.stax.WstxOutputFactory cannot be located
More...