Do you have the server log and "ftpclient output"? I mean the output you get if you do something like this: client.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
The active/passive mode settings are per connection (session) so I don't think this may be the problem. 2010/11/12 Aidan Diffey <[email protected]>: > 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 >
