Susanne Lefvert wrote:
Ok, I'll give this a try. Just fyi, I'm running the client in passive
mode but I still get this error. These are the commands I'm using:
FTPSClient ftps = new FTPSClient(true);
ftps.addProtocolCommandListener(new PrintCommandListener(log));
ftps.connect(host, port);
ftps.login(user, password);
ftps.enterLocalPassiveMode();
ftps.execPROT("P");
ftps.setFileType(FTP.BINARY_FILE_TYPE);
ftps.storeFile(file.getName(), input);
ftps.logout();
ftps.disconnect();
What's the error you're seeing?
The major difference between my code and yours is that you running with
implicit security. If I turned that on and configure FtpServer to use a
SSLFtpSocketFactory it does work for me. This is still in my Eclipse
environment. The passive mode however, also works in my Maven build.
I've added a new test case which uses implicit security and commited
into our SVN.
/niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]