Ich schreibe gerade ein Programm, um bestimmte Daten von einem FTPServer mit FTP4J runterzuladen.
Das auswählen der Dateien funktioniert momentan ganz gut, allerdings kommt beim Herrunterladen immer eine " it.sauronsoftware.ftp4j.FTPException".
Das auswählen der Dateien funktioniert momentan ganz gut, allerdings kommt beim Herrunterladen immer eine " it.sauronsoftware.ftp4j.FTPException".
Code:
Exception in thread "main" it.sauronsoftware.ftp4j.FTPException [code=500, message= RE*T not understood]
at it.sauronsoftware.ftp4j.FTPClient.download(FTPClient.java:3374)
at it.sauronsoftware.ftp4j.FTPClient.download(FTPClient.java:3276)
at it.sauronsoftware.ftp4j.FTPClient.download(FTPClient.java:3141)
at Test.main(Test.java:30)
Java:
import it.sauronsoftware.ftp4j.FTPAbortedException;
import it.sauronsoftware.ftp4j.FTPClient;
import it.sauronsoftware.ftp4j.FTPDataTransferException;
import it.sauronsoftware.ftp4j.FTPException;
import it.sauronsoftware.ftp4j.FTPIllegalReplyException;
import java.io.File;
import java.io.IOException;
public class Test {
public static void main(String[] args) throws IllegalStateException, IOException, FTPIllegalReplyException, FTPException, FTPDataTransferException, FTPAbortedException {
FTPClient client = new FTPClient();
client.connect("*server*");
client.login("*benutzer*", "*passwort*");
client.changeDirectory("*unterverzeichnis*");
client.download("ffs.txt", new File("ffs.txt"));
}
}