Forums Register Login

Socky Proxy Exception

+Pie Number of slices to send: Send
Hi all,
When i am trying to connect to remote server using SOCKS proxy, then it gives me the following exceptions:

java.security.PrivilegedActionException: java.net.ConnectException: Connection refused: connect

at java.security.AccessController.doPrivileged(Native Method)

at java.net.SocksSocketImplFactory.guessVersion(SocksSocketImplFactory.java:92)

at java.net.SocksSocketImplFactory.<init>(SocksSocketImplFactory.java:35)

at java.net.Socket.checkSocks(Socket.java:1411)

at java.net.Socket.setImpl(Socket.java:360)

at java.net.Socket.<init>(Socket.java:297)

at java.net.Socket.<init>(Socket.java:124)

at org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:92)

at org.apache.commons.net.SocketClient.connect(SocketClient.java:201)

at org.apache.commons.net.SocketClient.connect(SocketClient.java:289)

at com.sherpa.srfeeds.filetransfer.AccountingSend.run(AccountingSend.java:201)

at com.sherpa.srfeeds.filetransfer.AccountingSendHandler.main(AccountingSendHandler.java:44)

Caused by: java.net.ConnectException: Connection refused: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)

at java.net.Socket.connect(Socket.java:452)

at java.net.Socket.connect(Socket.java:402)

at java.net.SocksSocketImplFactory$1.run(SocksSocketImplFactory.java:95)

... 12 more

Can anyone tell me why this exception is taking place ?Anything needs to be changed ? Any help would be appreciated.

Thanks in advance,
Saurabh
These are the worst of times and these are the best of times. And this is the best tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 793 times.
Similar Threads
connection refused on tomcat web server
Another shutting down problem
tomcat configuration problem
What do i need to do java.net.connectexception connection refused connect
java.net.ConnectException: Connection refused: connect -- FTP issue (using org.apache.commons.net.ft
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:13:10.