hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilirjan Papa (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1198) HttpHost is not set in HttpContext in CachingHttpClient
Date Wed, 30 May 2012 16:00:23 GMT
Ilirjan Papa created HTTPCLIENT-1198:

             Summary: HttpHost is not set in HttpContext in CachingHttpClient
                 Key: HTTPCLIENT-1198
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1198
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.2 Final
            Reporter: Ilirjan Papa
            Priority: Critical

The HttpHost cames back as null, causing a NullPointerException when using CachingHttpClient.

HttpHost actualHost = (HttpHost)requestContext.getAttribute(ExecutionContext.HTTP_TARGET_HOST);

The host should be set in the HttpContext.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message