Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A963B1049B for ; Fri, 18 Oct 2013 09:36:46 +0000 (UTC) Received: (qmail 32230 invoked by uid 500); 18 Oct 2013 09:36:46 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 32019 invoked by uid 500); 18 Oct 2013 09:36:43 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 32007 invoked by uid 99); 18 Oct 2013 09:36:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 09:36:42 +0000 Date: Fri, 18 Oct 2013 09:36:42 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1424) Axis2 Service Stub throws java.lang.IllegalStateException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1424. ------------------------------------------- Resolution: Won't Fix I am sorry but Commons HttpClient 3.1 is EOL and is no longer being supported or maintained. Oleg > Axis2 Service Stub throws java.lang.IllegalStateException > --------------------------------------------------------- > > Key: HTTPCLIENT-1424 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1424 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Reporter: sushl > Original Estimate: 504h > Remaining Estimate: 504h > > Call to web service using ServiceStub throws java.lang.IllegalStateException > Detail Exception: > Stack Trace: java.lang.IllegalStateException: Authentication state already initialized at > org.apache.commons.httpclient.auth.AuthState.setPreemptive(AuthState.java:120) at > org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:487) at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:391) at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at > org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621) at > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) at > org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404) at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231) at > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) > Wireshark shows the followoing information When I am try to access same URL(https) through IE Browser > 1. Ask for proxy credentials > Protocol capture : > CONNECT 192.168.21.55:443 HTTP/1.0 > HTTP/1.1 407 Proxy Authentication Required (text/html) > 2. Ask for service credential > HTTP/1.0 200 Connection Established > Protocol capture : Proxy-Authorization: Digest username="user",realm="test", > nonce="dMjyhvzoBAA=83b1d5e7716046b5a4088e3c3a4d3d555d80389b",uri="192.168.21.55:443", > cnonce="599bba763bd29b412b5e42ad8099fab7",nc=00000001,algorithm=MD5, > response="dd992627cea62baf3b10e452628a01e1",qop="auth" > Wireshark shows the followoing information When I am try to access same URL(https) through java code > CONNECT 192.168.21.55:443 HTTP/1.0 > HTTP/1.1 407 Proxy Authentication Required (text/html) > after that in java code it throws exception (java.lang.IllegalStateException) through java code I am providing proper proxyHost, proxyPort & credentials. I don't know what other parameters are required for proxy authorization. If any one having any idea, Please reply ASAP to this post. -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org