commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cole" <sc...@camsbycbs.com>
Subject Re: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication
Date Wed, 08 Apr 2009 12:50:21 GMT
Try port 21. That or maybe the server is only configured for implicit ssl.

----- Original Message ----- 
From: "Chetan" <chetankumar@yahoo.com>
To: <user@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


Mime
View raw message