javax.xml.stream.XMLStreamException: problem accessing the parser. Parser
already accessed! - Authenticated WS Client
---------------------------------------------------------------------------------------------------------------------
Key: AXIS2-3134
URL: https://issues.apache.org/jira/browse/AXIS2-3134
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: transports
Affects Versions: 1.3
Environment: jdk 1.4.2
Reporter: Bernd Frey
Priority: Blocker
Hi,
I am trying to move to Axis2 1.3. With Version 1.1, my code worked fine:
ServiceClient sc = stub._getServiceClient();
HttpTransportProperties.Authenticator auth =
new HttpTransportProperties.Authenticator();
auth.setUsername(myUser);
auth.setPassword(myPwd);
auth.setAllowedRetry(true);
Options options = sc.getOptions();
options.setProperty(HTTPConstants.AUTHENTICATE, auth);
ResponseDocument response = stub.callService(request);
when calling the client, I get this exception:
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R
org.apache.axis2.AxisFault: problem accessing the parser. Parser already
accessed!
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
[20.08.07 17:02:43:775 CEST] 7e9595cd SystemErr R at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
...
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R Caused by:
javax.xml.stream.XMLStreamException: problem accessing the parser. Parser
already accessed!
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java(Compiled
Code))
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java(Compiled
Code))
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:57)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:525)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:789)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:237)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:225)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
[20.08.07 17:02:43:791 CEST] 7e9595cd SystemErr R ... 55 more
Thanks in advance,
Bernd
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]