[NET] 451-Error during read from data connection

Marcin Kudla <[email protected]>
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <CALJsf3=m37Z=ROX4=W7WE4+SVcNmGBKGru1m3wqvLtZJ-+c9BQ@mail.gmail.com>
Hi

I used Apache Commons Net for long time without problems, but recently I
get error from one of us server when we try to upload files over ftps.

Error: 451-Error during read from data connection
451-Transfer aborted
451 0.233 seconds (measured here), 68.53 Kbytes per second

This error occurs always on specific files, other files upload without
problems.

Here is some example of my code:

FTPSClient client = new FTPSClient();
client.setAuthValue("TLS");
client.setControlEncoding("UTF-8");
client.connect("host", "port");
client.login("user", "passw");
client.setKeepAlive(true);
client.enterLocalPassiveMode();
client.execPBSZ(0);
client.execPROT("P");
client.setFileType(FTP.BINARY_FILE_TYPE);

client.storeFile(remotePath, inputStream)

Server is Pure-FTPd, I tried set some buffers values for client but nothing
help.

Do you have any suggestions as to what could be the problem?

Regards,

Marcin Kudla
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.