Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 03-08-2017 06:32 AM - edited 08-19-2019 12:49 AM
Error on ListFTP, FTP to SunOS 4.1
Created 03-20-2017 01:12 PM
I created custom nifi processor to support FTPClientConfig
Created 03-08-2017 02:43 PM
There appears to be some issue with your FTP server. The SYST command is a standard command that is passed when establishing a connection to the FTP server. The expected response would be the OS information of the target FTP server.
https://en.wikipedia.org/wiki/List_of_FTP_commands
The FTP server running on your SUN OS 4.1 is responding that it does not understand that command.
Thanks,
Matt
Created 03-13-2017 03:28 AM
@Matt Clarke upon testing using simple pojo (see code below), I got the same error.
public static void main(String[] args) throws SocketException, IOException {
FTPClient client = new FTPClient();
client.connect(IP_ADDRESS);
client.login(USERNAME, PASSWORD);
FTPFile[] files = client. listFiles(DIRECTORY);
for (FTPFile file : files) {
System.out.println(file.getName());
}
}Exception in thread "main" java.io.IOException: Unable to determine system type - response: 500 'SYST': command not understood.
at org.apache.commons.net.ftp.FTPClient.getSystemType(FTPClient.java:2801)
at org.apache.commons.net.ftp.FTPClient.__createParser(FTPClient.java:3369)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3338)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:3016)
at me.mamendoza.java.tuts.ftp.BasicFTP.main(BasicFTP.java:35)
Then I added this line of code below,
// add FTPClientconfig.SYST_UNIX to connect to SunOS v4.1
FTPClientConfig config = new FTPClientConfig(FTPClientConfig.SYST_UNIX);
client.configure(config);
it returns the list of files.
I think ListFTP doesn't support SYST_UNIX.
Created 03-13-2017 12:23 PM
Created 03-14-2017 12:39 AM
Created 03-20-2017 01:12 PM
I created custom nifi processor to support FTPClientConfig