Hello.

I have an embedded FTP server running inside JBoss that receives input from
40 concurrent FTP clients. I am using apache commons.net FTPS client to send
the data.

Each of these FTP Clients sends both ASCII and Binary data randomly (well,
sort of) but I am getting a recurring exception:


2010-11-11 18:06:27,714 ERROR [<className>]
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.sendCommand(FTP.java:490)
    at
org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:465)
    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
    at org.apache.commons.net.ftp.FTP.type(FTP.java:934)
    at org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:965)
....

This appears to be happening when the setFileType is being called as each
client needs to set the fileType before sending its data.

So, client 1 could be sending binary data, and set file type = Binary, but
at the same time, client 2 could be sending ASCII data and setting file type
to ASCII.

Is there a potential problem with FTPServer, or should I be looking into the
Apache FTP client.

Regards

Reply via email to