问题描述
使用ftpclient开源包进行做一个ftp客户端练习程序,不知为什么总是能连上却进行操作就抛异常!220WelcometoSCAU-FTP1.Connectedtoftp1.scau.edu.cnon21USER*******331Passwordrequiredforanonymous.PASS*******230Useranonymousloggedin.SYST215UNIXType:L8RemotesystemisUNIXType:L8PASVjava.net.SocketException:Connectionresetatjava.net.SocketInputStream.read(UnknownSource)atjava.net.SocketInputStream.read(UnknownSource)atsun.nio.cs.StreamDecoder.readBytes(UnknownSource)atsun.nio.cs.StreamDecoder.implRead(UnknownSource)atsun.nio.cs.StreamDecoder.read(UnknownSource)atjava.io.InputStreamReader.read(UnknownSource)atjava.io.BufferedReader.fill(UnknownSource)atjava.io.BufferedReader.read(UnknownSource)atorg.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)atorg.apache.commons.net.ftp.FTP.__getReply(FTP.java:310)atorg.apache.commons.net.ftp.FTP.__getReply(FTP.java:290)atorg.apache.commons.net.ftp.FTP.sendCommand(FTP.java:474)atorg.apache.commons.net.ftp.FTP.sendCommand(FTP.java:547)atorg.apache.commons.net.ftp.FTP.sendCommand(FTP.java:596)atorg.apache.commons.net.ftp.FTP.pasv(FTP.java:945)atorg.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:719)atorg.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2990)atorg.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2965)atorg.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2623)atFtpTest.main(FtpTest.java:282)求大牛解答,感激感激!