Thanks for your quick reply.
That doesn't completely eliminate my problem.
Please take a look at the line starting with "11:".
10: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510219/gco06210.11...Done
10: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510219/gco06210.22...Done
11: Creating download list for clients[11]...11: Remote directory /ticket/home/csbknd/java/split/clientBackup/5510220 could not be listed.
com.enterprisedt.net.ftp.FTPException: PASV command failed
12: Creating download list for clients[12]...Done
12: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510221/55102210404.zip...Done
12: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510221/55102210406.zip...Done
12: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510221/55102210408.zip...Done
12: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510221/55102210412.zip...Done
On another occasion
10: Creating download list for clients[10]...Done
11: Creating download list for clients[11]...Done
11: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510220/55102200404.zip...Done
11: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510220/55102200406.zip...Done
11: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510220/55102200408.zip...Done
11: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510220/55102200412.zip...Done
11: Deleting file /ticket/home/csbknd/java/split/clientBackup/5510220/55102200419.zip...Done
So you see the error "PASV command failed" happens randomly.
It happens once out of 587 similar requests.
I also learnt that "List command failed" means "The remote directory doesn't exist."
583: Creating download list for clients[583]...Done
584: Creating download list for clients[584]...Done
585: Creating download list for clients[585]...585: Remote directory /ticket/home/csbknd/java/split/clientBackup/501/ could not be listed.
com.enterprisedt.net.ftp.FTPException: List command failed
I might probably do this.
if (PASV command failed) {
retry;
} else if (List command failed) {
the directory does not exist, move on;
}
But I don't want to hardcode these error messages into my code.
If I can't discriminate between the two cases, I guess I'll have to retry LISTing for say maybe 5 attempts before the code give up and move on to the next item in the array.
Thank you so much for your time.