[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-1342.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.3 Beta2
                   4.2.5

Fixed in SVN trunk and 4.2.x branch.

Oleg
                
> "java.lang.IllegalArgumentException: Host name may not be null" thrown during 
> redirect
> --------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1342
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1342
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3 Beta1
>         Environment: Linux s2.law.di.unimi.it 2.6.32-279.22.1.el6.x86_64 #1 
> SMP Tue Feb 5 14:33:39 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.7.0_13"
> Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
>            Reporter: Sebastiano Vigna
>             Fix For: 4.2.5, 4.3 Beta2
>
>
> Downloading the URL http://www.burkinaembassy-usa.org/ with redirects enabled 
> causes the following exception:
> java.lang.IllegalArgumentException: Host name may not be null
>         at org.apache.http.util.Args.notNull(Args.java:48) 
> ~[httpcore-4.3-beta1.jar:4.3-beta1]
>         at org.apache.http.HttpHost.<init>(HttpHost.java:79) 
> ~[httpcore-4.3-beta1.jar:4.3-beta1]
>         at 
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:465)
>  ~[httpclient-4.3-beta1.jar:4.3-beta1]
>         at 
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:864)
>  ~[httpclient-4.3-beta1.jar:4.3-beta1]
>         at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
>  ~[httpclient-4.3-beta1.jar:4.3-beta1]
>         at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:214)
>  ~[httpclient-4.3-beta1.jar:4.3-beta1]
>         at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:160)
>  ~[httpclient-4.3-beta1.jar:4.3-beta1]
>         at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:136)
>  ~[httpclient-4.3-beta1.jar:4.3-beta1]
> (On the same URL wget doesn't report any problem and downloads the page 
> correctly.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to