Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socky Proxy Exception

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic