java遍历ftp文件夹时,在FTPFile[] fs = ftp.listFiles();处报错,是怎么回事。
目标ftp无需密码即可进入,报错为java.io.IOException:Unabletodeterminesystemtype-response:530Pleaselo...
目标ftp无需密码即可进入,报错为
java.io.IOException: Unable to determine system type - response: 530 Please login with USER and PASS.
at org.apache.commons.net.ftp.FTPClient.getSystemType(FTPClient.java:2721)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3256)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2930)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2977)
at JFTPTEST.main(JFTPTEST.java:24)
请问这该如何解决?? 展开
java.io.IOException: Unable to determine system type - response: 530 Please login with USER and PASS.
at org.apache.commons.net.ftp.FTPClient.getSystemType(FTPClient.java:2721)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3256)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2930)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2977)
at JFTPTEST.main(JFTPTEST.java:24)
请问这该如何解决?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询