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

Oleg Kalnichevski resolved HTTPCLIENT-1565.
-------------------------------------------
    Resolution: Fixed

Patch committed to SVN trunk and 4.3.x branch.

Oleg

> examples.client.ClientExecuteSOCKS doesn't specify the context while making 
> the request.
> ----------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1565
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1565
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Examples
>            Reporter: Rohit Agarwal
>         Attachments: HTTPCLIENT-1565.patch
>
>
> I get this error:
> {code}
> Exception in thread "main" java.lang.IllegalArgumentException: type SOCKS is 
> not compatible with address null
>       at java.net.Proxy.<init>(Proxy.java:95)
>       at 
> com.qubole.cluster_proxy.ClientExecuteSOCKS$MyConnectionSocketFactory.createSocket(ClientExecuteSOCKS.java:92)
>       at 
> org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:107)
>       at 
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
>       at 
> org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
>       at 
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
>       at 
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
>       at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
>       at 
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
>       at 
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
>       at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
>       at 
> org.apache.http.examples.client.ClientExecuteSOCKS.main(ClientExecuteSOCKS.java:74)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to