You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Chetan <ch...@yahoo.com> on 2009/04/08 04:59:38 UTC

org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication

 
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


      

Re: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication

Posted by Steve Cole <sc...@camsbycbs.com>.
Try port 21. That or maybe the server is only configured for implicit ssl.

----- Original Message ----- 
From: "Chetan" <ch...@yahoo.com>
To: <us...@commons.apache.org>
Sent: Tuesday, April 07, 2009 10:59 PM
Subject: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection
closed without indication



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




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org