Hi Oleg, I commented the line which use "AuthScheme" to print the Realm to console and generated the output. Don't know whether this will help or not; but with correct username/password; it fails to connect to IIS 6 web server when "Integrated Windows authentication" is set. Thanks, Milind
Trying:: 1 executing request GET http://wkqasv0304/cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:244 EST [DEBUG] PoolingClientConnectionManager - Connection request: [route: {}->http://wkqasv0304][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20] 2011/11/14 11:43:16:259 EST [DEBUG] PoolingClientConnectionManager - Connection leased: [id: 0][route: {}->http://wkqasv0304][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20] 2011/11/14 11:43:16:259 EST [DEBUG] DefaultClientConnectionOperator - Connecting to wkqasv0304:80 2011/11/14 11:43:16:259 EST [DEBUG] RequestAddCookies - CookieSpec selected: best-match 2011/11/14 11:43:16:275 EST [DEBUG] RequestAuthCache - Auth cache not set in the context 2011/11/14 11:43:16:275 EST [DEBUG] RequestTargetAuthentication - Target auth state: UNCHALLENGED 2011/11/14 11:43:16:275 EST [DEBUG] RequestProxyAuthentication - Proxy auth state: UNCHALLENGED 2011/11/14 11:43:16:275 EST [DEBUG] DefaultHttpClient - Attempt 1 to execute request 2011/11/14 11:43:16:275 EST [DEBUG] DefaultClientConnection - Sending request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:275 EST [DEBUG] headers - >> GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:275 EST [DEBUG] headers - >> Host: wkqasv0304 2011/11/14 11:43:16:275 EST [DEBUG] headers - >> Connection: Keep-Alive 2011/11/14 11:43:16:275 EST [DEBUG] headers - >> User-Agent: Apache-HttpClient/4.2-alpha1 (java 1.5) 2011/11/14 11:43:16:275 EST [DEBUG] DefaultClientConnection - Receiving response: HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:275 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:275 EST [DEBUG] headers - << Content-Length: 1656 2011/11/14 11:43:16:275 EST [DEBUG] headers - << Content-Type: text/html 2011/11/14 11:43:16:275 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0 2011/11/14 11:43:16:275 EST [DEBUG] headers - << WWW-Authenticate: Negotiate 2011/11/14 11:43:16:275 EST [DEBUG] headers - << WWW-Authenticate: NTLM 2011/11/14 11:43:16:275 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011 16:43:15 GMT 2011/11/14 11:43:16:275 EST [DEBUG] DefaultHttpClient - Connection can be kept alive indefinitely 2011/11/14 11:43:16:275 EST [DEBUG] DefaultHttpClient - wkqasv0304:80 requested authentication 2011/11/14 11:43:16:275 EST [DEBUG] TargetAuthenticationStrategy - Authentication schemes in the order of preference: [negotiate, NTLM, Digest, Basic] 2011/11/14 11:43:16:275 EST [DEBUG] NegotiateScheme - Received challenge '' from the auth server 2011/11/14 11:43:16:291 EST [DEBUG] TargetAuthenticationStrategy - Challenge for Digest authentication scheme not available 2011/11/14 11:43:16:291 EST [DEBUG] TargetAuthenticationStrategy - Challenge for Basic authentication scheme not available ---------------------------------------- HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:291 EST [DEBUG] PoolingClientConnectionManager - Connection [id: 0][route: {}->http://wkqasv0304] can be kept alive indefinitely 2011/11/14 11:43:16:291 EST [DEBUG] PoolingClientConnectionManager - Connection released: [id: 0][route: {}->http://wkqasv0304][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] ---------------------------------------- Trying:: 2 executing request GET http://wkqasv0304/cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:291 EST [DEBUG] PoolingClientConnectionManager - Connection request: [route: {}->http://wkqasv0304][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] 2011/11/14 11:43:16:291 EST [DEBUG] PoolingClientConnectionManager - Connection leased: [id: 0][route: {}->http://wkqasv0304][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20] 2011/11/14 11:43:16:291 EST [DEBUG] DefaultHttpClient - Stale connection check 2011/11/14 11:43:16:306 EST [DEBUG] RequestAddCookies - CookieSpec selected: best-match 2011/11/14 11:43:16:306 EST [DEBUG] RequestAuthCache - Auth cache not set in the context 2011/11/14 11:43:16:306 EST [DEBUG] RequestTargetAuthentication - Target auth state: UNCHALLENGED 2011/11/14 11:43:16:306 EST [DEBUG] RequestProxyAuthentication - Proxy auth state: UNCHALLENGED 2011/11/14 11:43:16:306 EST [DEBUG] DefaultHttpClient - Attempt 1 to execute request 2011/11/14 11:43:16:306 EST [DEBUG] DefaultClientConnection - Sending request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:306 EST [DEBUG] headers - >> GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:306 EST [DEBUG] headers - >> Host: wkqasv0304 2011/11/14 11:43:16:306 EST [DEBUG] headers - >> Connection: Keep-Alive 2011/11/14 11:43:16:306 EST [DEBUG] headers - >> User-Agent: Apache-HttpClient/4.2-alpha1 (java 1.5) 2011/11/14 11:43:16:306 EST [DEBUG] DefaultClientConnection - Receiving response: HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:306 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:306 EST [DEBUG] headers - << Content-Length: 1656 2011/11/14 11:43:16:306 EST [DEBUG] headers - << Content-Type: text/html 2011/11/14 11:43:16:306 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0 2011/11/14 11:43:16:306 EST [DEBUG] headers - << WWW-Authenticate: Negotiate 2011/11/14 11:43:16:306 EST [DEBUG] headers - << WWW-Authenticate: NTLM 2011/11/14 11:43:16:306 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011 16:43:15 GMT 2011/11/14 11:43:16:306 EST [DEBUG] DefaultHttpClient - Connection can be kept alive indefinitely 2011/11/14 11:43:16:306 EST [DEBUG] DefaultHttpClient - wkqasv0304:80 requested authentication 2011/11/14 11:43:16:306 EST [DEBUG] TargetAuthenticationStrategy - Authentication schemes in the order of preference: [negotiate, NTLM, Digest, Basic] 2011/11/14 11:43:16:306 EST [DEBUG] NegotiateScheme - Received challenge '' from the auth server 2011/11/14 11:43:16:306 EST [DEBUG] TargetAuthenticationStrategy - Challenge for Digest authentication scheme not available 2011/11/14 11:43:16:306 EST [DEBUG] TargetAuthenticationStrategy - Challenge for Basic authentication scheme not available 2011/11/14 11:43:16:306 EST [DEBUG] RequestAddCookies - CookieSpec selected: best-match 2011/11/14 11:43:16:306 EST [DEBUG] RequestAuthCache - Auth cache not set in the context 2011/11/14 11:43:16:306 EST [DEBUG] RequestTargetAuthentication - Target auth state: CHALLENGED 2011/11/14 11:43:16:306 EST [DEBUG] RequestTargetAuthentication - Generating response to an authentication challenge using Negotiate scheme 2011/11/14 11:43:16:306 EST [DEBUG] NegotiateScheme - init wkqasv0304 2011/11/14 11:43:16:322 EST [WARN] RequestTargetAuthentication - NEGOTIATE authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\Windows\krb5.ini (The system cannot find the file specified)) 2011/11/14 11:43:16:322 EST [DEBUG] RequestTargetAuthentication - Generating response to an authentication challenge using ntlm scheme 2011/11/14 11:43:16:322 EST [WARN] RequestTargetAuthentication - NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials 2011/11/14 11:43:16:322 EST [DEBUG] RequestProxyAuthentication - Proxy auth state: UNCHALLENGED 2011/11/14 11:43:16:322 EST [DEBUG] DefaultHttpClient - Attempt 2 to execute request 2011/11/14 11:43:16:322 EST [DEBUG] DefaultClientConnection - Sending request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:337 EST [DEBUG] headers - >> GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:337 EST [DEBUG] headers - >> Host: wkqasv0304 2011/11/14 11:43:16:337 EST [DEBUG] headers - >> Connection: Keep-Alive 2011/11/14 11:43:16:337 EST [DEBUG] headers - >> User-Agent: Apache-HttpClient/4.2-alpha1 (java 1.5) 2011/11/14 11:43:16:337 EST [DEBUG] DefaultClientConnection - Receiving response: HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:337 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:337 EST [DEBUG] headers - << Content-Length: 1656 2011/11/14 11:43:16:337 EST [DEBUG] headers - << Content-Type: text/html 2011/11/14 11:43:16:337 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0 2011/11/14 11:43:16:337 EST [DEBUG] headers - << WWW-Authenticate: Negotiate 2011/11/14 11:43:16:337 EST [DEBUG] headers - << WWW-Authenticate: NTLM 2011/11/14 11:43:16:337 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011 16:43:15 GMT 2011/11/14 11:43:16:337 EST [DEBUG] DefaultHttpClient - Connection can be kept alive indefinitely 2011/11/14 11:43:16:337 EST [DEBUG] DefaultHttpClient - wkqasv0304:80 requested authentication 2011/11/14 11:43:16:337 EST [DEBUG] DefaultHttpClient - Authorization challenge processed 2011/11/14 11:43:16:337 EST [DEBUG] DefaultHttpClient - Authentication failed ---------------------------------------- HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:337 EST [DEBUG] PoolingClientConnectionManager - Connection [id: 0][route: {}->http://wkqasv0304] can be kept alive indefinitely 2011/11/14 11:43:16:337 EST [DEBUG] PoolingClientConnectionManager - Connection released: [id: 0][route: {}->http://wkqasv0304][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] ---------------------------------------- Trying:: 3 executing request GET http://wkqasv0304/cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:337 EST [DEBUG] PoolingClientConnectionManager - Connection request: [route: {}->http://wkqasv0304][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] 2011/11/14 11:43:16:337 EST [DEBUG] PoolingClientConnectionManager - Connection leased: [id: 0][route: {}->http://wkqasv0304][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20] 2011/11/14 11:43:16:337 EST [DEBUG] DefaultHttpClient - Stale connection check 2011/11/14 11:43:16:353 EST [DEBUG] RequestAddCookies - CookieSpec selected: best-match 2011/11/14 11:43:16:353 EST [DEBUG] RequestAuthCache - Auth cache not set in the context 2011/11/14 11:43:16:353 EST [DEBUG] RequestTargetAuthentication - Target auth state: UNCHALLENGED 2011/11/14 11:43:16:353 EST [DEBUG] RequestProxyAuthentication - Proxy auth state: UNCHALLENGED 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - Attempt 1 to execute request 2011/11/14 11:43:16:353 EST [DEBUG] DefaultClientConnection - Sending request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> Host: wkqasv0304 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> Connection: Keep-Alive 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> User-Agent: Apache-HttpClient/4.2-alpha1 (java 1.5) 2011/11/14 11:43:16:353 EST [DEBUG] DefaultClientConnection - Receiving response: HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:353 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Content-Length: 1656 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Content-Type: text/html 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0 2011/11/14 11:43:16:353 EST [DEBUG] headers - << WWW-Authenticate: Negotiate 2011/11/14 11:43:16:353 EST [DEBUG] headers - << WWW-Authenticate: NTLM 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011 16:43:15 GMT 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - Connection can be kept alive indefinitely 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - wkqasv0304:80 requested authentication 2011/11/14 11:43:16:353 EST [DEBUG] TargetAuthenticationStrategy - Authentication schemes in the order of preference: [negotiate, NTLM, Digest, Basic] 2011/11/14 11:43:16:353 EST [DEBUG] NegotiateScheme - Received challenge '' from the auth server 2011/11/14 11:43:16:353 EST [DEBUG] TargetAuthenticationStrategy - Challenge for Digest authentication scheme not available 2011/11/14 11:43:16:353 EST [DEBUG] TargetAuthenticationStrategy - Challenge for Basic authentication scheme not available 2011/11/14 11:43:16:353 EST [DEBUG] RequestAddCookies - CookieSpec selected: best-match 2011/11/14 11:43:16:353 EST [DEBUG] RequestAuthCache - Auth cache not set in the context 2011/11/14 11:43:16:353 EST [DEBUG] RequestTargetAuthentication - Target auth state: CHALLENGED 2011/11/14 11:43:16:353 EST [DEBUG] RequestTargetAuthentication - Generating response to an authentication challenge using Negotiate scheme 2011/11/14 11:43:16:353 EST [DEBUG] NegotiateScheme - init wkqasv0304 2011/11/14 11:43:16:353 EST [WARN] RequestTargetAuthentication - NEGOTIATE authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\Windows\krb5.ini (The system cannot find the file specified)) 2011/11/14 11:43:16:353 EST [DEBUG] RequestTargetAuthentication - Generating response to an authentication challenge using ntlm scheme 2011/11/14 11:43:16:353 EST [WARN] RequestTargetAuthentication - NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials 2011/11/14 11:43:16:353 EST [DEBUG] RequestProxyAuthentication - Proxy auth state: UNCHALLENGED 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - Attempt 2 to execute request 2011/11/14 11:43:16:353 EST [DEBUG] DefaultClientConnection - Sending request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> Host: wkqasv0304 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> Connection: Keep-Alive 2011/11/14 11:43:16:353 EST [DEBUG] headers - >> User-Agent: Apache-HttpClient/4.2-alpha1 (java 1.5) 2011/11/14 11:43:16:353 EST [DEBUG] DefaultClientConnection - Receiving response: HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:353 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Content-Length: 1656 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Content-Type: text/html 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0 2011/11/14 11:43:16:353 EST [DEBUG] headers - << WWW-Authenticate: Negotiate 2011/11/14 11:43:16:353 EST [DEBUG] headers - << WWW-Authenticate: NTLM 2011/11/14 11:43:16:353 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011 16:43:15 GMT 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - Connection can be kept alive indefinitely 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - wkqasv0304:80 requested authentication 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - Authorization challenge processed 2011/11/14 11:43:16:353 EST [DEBUG] DefaultHttpClient - Authentication failed ---------------------------------------- HTTP/1.1 401 Unauthorized 2011/11/14 11:43:16:353 EST [DEBUG] PoolingClientConnectionManager - Connection [id: 0][route: {}->http://wkqasv0304] can be kept alive indefinitely 2011/11/14 11:43:16:353 EST [DEBUG] PoolingClientConnectionManager - Connection released: [id: 0][route: {}->http://wkqasv0304][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] ---------------------------------------- 2011/11/14 11:43:16:353 EST [DEBUG] PoolingClientConnectionManager - Connection manager is shutting down 2011/11/14 11:43:16:353 EST [DEBUG] DefaultClientConnection - Connection 0.0.0.0:49269<->10.102.11.40:80 closed 2011/11/14 11:43:16:353 EST [DEBUG] DefaultClientConnection - Connection 0.0.0.0:49269<->10.102.11.40:80 closed 2011/11/14 11:43:16:353 EST [DEBUG] PoolingClientConnectionManager - Connection manager shut down On Mon, Nov 14, 2011 at 11:20 AM, Milind Kadam <[email protected]>wrote: > > Hi Oleg, > > Thanks a lot for help. > > Following is the log requested. > > executing request GET > http://wkqasv0304/cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 > 2011/11/14 11:16:52:879 EST [DEBUG] PoolingClientConnectionManager - > Connection request: [route: {}->http://wkqasv0304][total kept alive: 0; > route allocated: 0 of 2; total allocated: 0 of 20] > 2011/11/14 11:16:52:879 EST [DEBUG] PoolingClientConnectionManager - > Connection leased: [id: 0][route: {}->http://wkqasv0304][total kept > alive: 0; route allocated: 1 of 2; total allocated: 1 of 20] > 2011/11/14 11:16:52:895 EST [DEBUG] DefaultClientConnectionOperator - > Connecting to wkqasv0304:80 > 2011/11/14 11:16:52:910 EST [DEBUG] RequestAddCookies - CookieSpec > selected: best-match > 2011/11/14 11:16:52:910 EST [DEBUG] RequestAuthCache - Auth cache not set > in the context > 2011/11/14 11:16:52:910 EST [DEBUG] RequestTargetAuthentication - Target > auth state: UNCHALLENGED > 2011/11/14 11:16:52:910 EST [DEBUG] RequestProxyAuthentication - Proxy > auth state: UNCHALLENGED > 2011/11/14 11:16:52:910 EST [DEBUG] DefaultHttpClient - Attempt 1 to > execute request > 2011/11/14 11:16:52:910 EST [DEBUG] DefaultClientConnection - Sending > request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 > 2011/11/14 11:16:52:910 EST [DEBUG] headers - >> GET > /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 > 2011/11/14 11:16:52:910 EST [DEBUG] headers - >> Host: wkqasv0304 > 2011/11/14 11:16:52:910 EST [DEBUG] headers - >> Connection: Keep-Alive > 2011/11/14 11:16:52:910 EST [DEBUG] headers - >> User-Agent: > Apache-HttpClient/4.2-alpha1 (java 1.5) > 2011/11/14 11:16:52:941 EST [DEBUG] DefaultClientConnection - Receiving > response: HTTP/1.1 401 Unauthorized > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << Content-Length: 1656 > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << Content-Type: text/html > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0 > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << WWW-Authenticate: > Negotiate > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << WWW-Authenticate: NTLM > 2011/11/14 11:16:52:941 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011 > 16:16:52 GMT > 2011/11/14 11:16:52:941 EST [DEBUG] DefaultHttpClient - Connection can be > kept alive indefinitely > 2011/11/14 11:16:52:941 EST [DEBUG] DefaultHttpClient - wkqasv0304:80 > requested authentication > 2011/11/14 11:16:52:941 EST [DEBUG] TargetAuthenticationStrategy - > Authentication schemes in the order of preference: [negotiate, NTLM, > Digest, Basic] > 2011/11/14 11:16:52:941 EST [DEBUG] NegotiateScheme - Received challenge > '' from the auth server > 2011/11/14 11:16:52:941 EST [DEBUG] TargetAuthenticationStrategy - > Challenge for Digest authentication scheme not available > 2011/11/14 11:16:52:941 EST [DEBUG] TargetAuthenticationStrategy - > Challenge for Basic authentication scheme not available > ---------------------------------------- > HTTP/1.1 401 Unauthorized > 2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager - > Connection [id: 0][route: {}->http://wkqasv0304] can be kept alive > indefinitely > 2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager - > Connection released: [id: 0][route: {}->http://wkqasv0304][total kept > alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] > ---------------------------------------- > 2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager - > Connection manager is shutting down > 2011/11/14 11:16:52:941 EST [DEBUG] DefaultClientConnection - Connection > 0.0.0.0:59517<->10.102.11.40:80 closed > 2011/11/14 11:16:52:941 EST [DEBUG] DefaultClientConnection - Connection > 0.0.0.0:59517<->10.102.11.40:80 closed > 2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager - > Connection manager shut down > Exception in thread "main" java.lang.NullPointerException > at > clientauthentication.ClientAuthentication.main(ClientAuthentication.java:105) > > > > On Mon, Nov 14, 2011 at 10:03 AM, Oleg Kalnichevski <[email protected]>wrote: > >> On Mon, Nov 14, 2011 at 09:29:10AM -0500, Milind Kadam wrote: >> > Hi There, >> > >> > I am new to HTTPClient and trying to use it to implement JAVA Client >> which >> > can talk to Web Server. I wan using URLConnect and everything was >> working >> > fine against IIS 6 web server until disabled the anonymous access. So >> > trying to use the HTTPClient. Example >> ClientInteractiveAuthentication.java >> > works fine if I choose Basic authentication but when I set Integrated >> > Windows authentication; authState.getAuthScheme returns null. >> > >> > Any help is appreciated. >> > >> > Thanks, >> > Milind >> >> Milind, >> >> If you run your applications with the wire / context logging on as >> described here [1] you should get additional details about request >> execution process and might be able to see why HttpClient was unable to >> authenticate when Integrated Windows authentication is activated on the >> server side. >> >> Oleg >> >> [1] http://hc.apache.org/httpcomponents-client-ga/logging.html >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >
