複数の ftpproxyclient オブジェクトを作成する必要がありますか、それとも 1 つだけで十分ですか?それは ftp busy processing file エラーをスローしているため:
ftp = new FtpProxyClient(this.getFTPServername(hrGroupName), this.ftpPort,
ftpUserName, getFTPPassword(hrGroupName));
ftp.setBinaryMode();
is = ftp.getFile(feedFileName);
//何らかの処理を行い、残りのファイルを確認します:
for (int i = personHeadDTO.getValueN().intValueExact() + 2; i < sequenceNo.intValueExact(); i++) {
fileName = feedFileName
.replace(".", "_" + i + ".");
以下のコードは ftp is busy エラーを投げています:
if(ftp.isFileExists(fileName)){
body1.append(fileName);
}
else{
body1.append(fileName+" (Not Available in archive folder).");
}
body1.append(newline);
}