org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421
why am i getting this error when I run a java application using
org.apache.commons.net.ftp.FTPClient
to transfer a file to a FTP Server.
Exception in thread "main" org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:321)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:460)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520)
at org.apache.commons.net.ftp.FTP.user(FTP.java:670)
at org.apache.commons.net.ftp.FTPClient.login(FTPClient.java:637)
at MyFTP.main(MyFTP.java:17)