java.net.ConnectException: Connection timed out

Apache's JIRA Issue Tracker | vijayan | 5 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

    [jira] [Commented] (FTPSERVER-435) FTPClient - 3.0.1 - Randomly throwing connection timed out error during listfile / connect

    mina-dev | 1 year ago | David Latorre (JIRA)
    java.net.ConnectException: Connection timed out
  2. 0

    [jira] [Closed] (FTPSERVER-435) FTPClient - 3.0.1 - Randomly throwing connection timed out error during listfile / connect

    mina-dev | 1 year ago | David Latorre (JIRA)
    java.net.ConnectException: Connection timed out
  3. 0

    [jira] [Commented] (FTPSERVER-435) FTPClient - 3.0.1 - Randomly throwing connection timed out error during listfile / connect

    mina-dev | 1 year ago | Michael Reichenbach (JIRA)
    java.net.ConnectException: Connection timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Previously we were using common-net-2.2 version and at sometimes we used to get FTPconnectionclosedexception. This was resolved by upgrading to commons-net-3.0.1 version using control keep-alive timeout feature. Now we are facing another issue in a random time interval in our production environment. Most of the times it works fine but at time during ftpclient.listfiles /ftpclient.connect call we are getting the connection timed out exception. Please see the exception stacktrace. java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:726) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2990) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2965) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2685) ================================================================ java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at org.apache.commons.net.SocketClient.connect(SocketClient.java:168) at org.apache.commons.net.SocketClient.connect(SocketClient.java:189) Neven seen / faced this kind of exception when using 2.2 version. This is been occurring after the upgradation.

    Apache's JIRA Issue Tracker | 5 years ago | vijayan
    java.net.ConnectException: Connection timed out
  6. 0

    Fail to connect using MAMEhub.sh under linux

    GitHub | 3 years ago | JustaLiriK
    java.net.ConnectException: Connexion terminée par expiration du délai d'attente

  1. osvzs 4 times, last 3 days ago
  2. poroszd 2 times, last 6 days ago
  3. raytest 3 times, last 2 weeks ago
  4. Dunmer 264 times, last 3 weeks ago
  5. jf-ast 2 times, last 3 weeks ago
62 more registered users
33 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    6. java.net.Socket.connect(Socket.java:529)
    6 frames
  3. Commons Net
    FTPClient.listFiles
    1. org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:726)
    2. org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2990)
    3. org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2965)
    4. org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2685)
    4 frames