Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4k views
in Java FTP by (160 points)
I'm getting an ArrayIndexOutOfBoundsException when executing a dirDetails on a directory in a Windows 2008 FTP Server.

The stack trace is:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 20
   at com.enterprisedt.net.ftp.FTPFileParser.split(FTPFileParser.java:99)
   at com.enterprisedt.net.ftp.WindowsFileParser.parse(WindowsFileParser.java:105)
   at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:233)
   at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:1963)


and the issues is that a listing in the directory has more than 20 white-space separated parts.

Do I need to upgrade?

3 Answers

0 votes
by (162k points)
Upgrading to the latest version is a good idea. If that doesn't work, post the listing.
0 votes
by (160 points)
It appears that there are more than 20 whitespace separated parts in the directory entries that returned from Windows 2008's FTP server. This looks to have been resolved by upping this constant to 100 in later versions of the software.
0 votes
by (162k points)
Ok good. We must have encountered this along the way ...

Categories

...