You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "vijayan (JIRA)" <ji...@apache.org> on 2012/10/12 14:13:02 UTC

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

vijayan created FTPSERVER-435:
---------------------------------

             Summary: FTPClient - 3.0.1 - Randomly throwing connection timed out error during listfile / connect
                 Key: FTPSERVER-435
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-435
             Project: FtpServer
          Issue Type: Bug
            Reporter: vijayan
            Priority: Critical


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira