axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navnit Jindal" <navnit.jin...@gmail.com>
Subject Fwd: org.apache.axis2.AxisFault: problem accessing the parser. Parser already accessed!
Date Sun, 29 Jul 2007 16:01:25 GMT
---------- Forwarded message ----------
From: Navnit Jindal <navnit.jindal@gmail.com>
Date: Jul 29, 2007 11:57 AM
Subject: org.apache.axis2.AxisFault: problem accessing the parser. Parser
already accessed!
To: paul@wso2.com, jeffling@google.com, saminda@opensource.lk,
axis-dev@ws.apache.org

Appreciate your help with this issue. Is there a revised code that can be
used?

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)

=======================================================================
Code I am using to set the Authentication using Axis2

options.setProperty(HTTPConstants.AUTHENTICATE, getAuthenticator(username,
password));


    private HttpTransportProperties.Authenticator getAuthenticator(String
_username, String _password)
    {
        HttpTransportProperties.Authenticator authenticator = new
HttpTransportProperties.Authenticator ();

        //HttpTransportProperties. basicAuthentication

        authenticator.setUsername(_username);
        authenticator.setPassword(_password);
        authenticator.setPreemptiveAuthentication(true);
        authenticator.setAllowedRetry(true);

        return authenticator;
    }

Mime
View raw message