my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Socky Proxy Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Socky Proxy Exception" Watch "Socky Proxy Exception" New topic
Author

Socky Proxy Exception

Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
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


Success is not doing extraordinary things but doing ordinary things extraordinarily well.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Socky Proxy Exception