java.net.ConnectException: Connection refused: connect

Coderanch | somenath chatterjee | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to read a file from remote System

    Coderanch | 9 years ago | somenath chatterjee
    java.net.ConnectException: Connection refused: connect
  2. 0

    getting Connection refused exception when trying to upload a file to the server using FTP

    Stack Overflow | 6 years ago | user532715
    java.net.ConnectException: Connection refused

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused: connect

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      FtpURLConnection.getOutputStream
      1. java.net.PlainSocketImpl.socketConnect(Native Method)
      2. java.net.PlainSocketImpl.doConnect(Unknown Source)
      3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      4. java.net.PlainSocketImpl.connect(Unknown Source)
      5. java.net.Socket.connect(Unknown Source)
      6. java.net.Socket.connect(Unknown Source)
      7. sun.net.NetworkClient.doConnect(Unknown Source)
      8. sun.net.NetworkClient.openServer(Unknown Source)
      9. sun.net.ftp.FtpClient.openServer(Unknown Source)
      10. sun.net.ftp.FtpClient.openServer(Unknown Source)
      11. sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
      12. sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
      12 frames
    3. remoteFileTest
      AccessRemotFile.main
      1. remoteFileTest.AccessRemotFile.main(AccessRemotFile.java:42)
      1 frame