commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan <chetanku...@yahoo.com>
Subject org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication
Date Wed, 08 Apr 2009 02:59:38 GMT
 
Hi,
 
I am trying to establish a FTPS connection to a server using username and password.
I am getting
 
Just before connection
Could not connect to server.
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
      at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
      at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:364)
      at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:540)
      at org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:167)
      at org.apache.commons.net.SocketClient.connect(SocketClient.java:178)
      at com.accenture.ftps.trail.FTPSExample.main(FTPSExample.java:93)
 
When I try to make the connection.
 
Here is the code snippet that I am using
 
        ftps = new FTPSClient(protocol,false);
       
        ftps.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
 
        try
        {
            int reply;
            System.out.println("Just before connection");
            ftps.connect(server,990);
            System.out.println("Connected to " + server + ".");
 
 
Here is the filezilla message
 
220-FileZilla Server version 0.9.31 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
421 Login time exceeded. Closing control connection.
 
Can some one help.
 
Thanks
Chetan


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message