hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Proxy authentication details fetching
Date Tue, 11 Sep 2007 09:59:02 GMT
On Mon, 2007-09-10 at 10:39 -0700, DreamEfforts wrote:

...

> When using the same code in a bean class then it’s not working and it’s
> throwing the exception. I could understand that apache proxy client is
> trying to connect to the Socks server, but socks server details are not
> present in the system properties. 
> 
> 2007/09/05 11:32:24:041 EDT [DEBUG] HttpConnection - Open connection to
> 192.158.10.151:80
> 2007/09/05 11:37:24:553 EDT [DEBUG] HttpMethodDirector - Closing the
> connection.
> 2007/09/05 11:37:24:553 EDT [INFO] HttpMethodDirector - I/O exception
> (java.net.SocketException) caught when processing request: Malformed reply
> from SOCKS server
> 2007/09/05 11:37:24:553 EDT [DEBUG] HttpMethodDirector - Malformed reply
> from SOCKS server <java.net.SocketException: Malformed reply from SOCKS
> server>java.net.SocketException: Malformed reply from SOCKS server
> 	at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:87)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:429)
> 	at java.net.Socket.connect(Socket.java:519)
> 	at java.net.Socket.connect(Socket.java:469)
> 	at java.net.Socket.<init>(Socket.java:366)
> 	at java.net.Socket.<init>(Socket.java:239)

As you can see, the exception is thrown inside the system
SocksSocketImpl class. So, apparently socksProxyHost system property has
been set, thus causing every outgoing TCP socket to connect to the
remote server though the specified host using SOCKS protocol.

Oleg

> 
> Can any one help me how to fix this issue.
> 
> Thanks
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message