java.net.ConnectException: Connection timed out

Apache's JIRA Issue Tracker | vijayan | 4 years ago
  1. 0

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

    mina-dev | 9 months 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 | 9 months 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 | 9 months 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 | 4 years ago | vijayan
    java.net.ConnectException: Connection timed out
  6. 0

    Fail to connect using MAMEhub.sh under linux

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

  1. treefolk 1 times, last 1 week ago
  2. kjhdofjosvs 20 times, last 1 week ago
  3. Andreas Häber 9 times, last 2 weeks ago
  4. Aria Pahlavan 2 times, last 2 weeks ago
  5. stigkj 10 times, last 2 weeks ago
44 more registered users
51 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