When I try to print the files that are located on a local FTPServer (Cerberus 2.22) I stumple upon the following problem:
I walk recursive through the directories. This is going just fine, except for one specific directory. When I try to list the files in this directory with the dirDetails() method I get an ArrayIndexOutOfBoundsException.
I've tried to rename the directory, but that doesn't help. I can't find anything odd about the directory, so I have no idea what the problem is and that is just the point. I need to be able to trust the functioning of the application that uses this method, so I really would like to know how I can avoid this problem.
I have printed the complete errormessage below:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 20
at com.enterprisedt.net.ftp.FTPFileParser.split(FTPFileParser.java:106)
at com.enterprisedt.net.ftp.UnixFileParser.parse(UnixFileParser.java:169)
at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:233)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:1963)
at ediretriever.Test.main(Test.java:29)
By the way, the dir method works fine, but is doesn't provide the functionality I'm looking for.
Does anyone have an idea on how I can solve this problem?
Oscar
By the way, I'm from Holland so there might be some poor English in the text above. I hope it is understandable