Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.7k views
in Java FTP by
Hi,

I having been using ftpClient.dirDetails(directory) with success for about 4 months.

I am getting this exception now on the same command.

This is the exception I get on one Unix server

java.text.ParseException: Unparseable date: "-rw-r--r-- 1" at java.text.DateFormat.parse(DateFormat.java:324) at com.enterprisedt.net.ftp.WindowsFileParser.parse(WindowsFileParser.java:101) at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:169) at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:1722) at

I tried doing the same thing on a different FTP server and get this exception

java.text.ParseException: Failed to parse size: r
at com.enterprisedt.net.ftp.UnixFileParser.parse(UnixFileParser.java:149)
at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:159)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:1722)


Please let me know what can be wrong? On what configurations of the server does the parser depend?

Any prompt reply is greatly appreciated.

Thanks
VBH

3 Answers

0 votes
by
This is the directory listing that I am having problem with.

-rw-r--r-- 1 10097 9999 r 3174 Feb 24 15:01 one.txt
-rw-r--r-- 1 10097 9999 r 1836 Feb 24 18:01 two.txt
0 votes
by
Hi EDTSupport,

I am still waiting for your response. Is there a way I can use dirDetails with the extra 'r' column.

Will appreciate a fast response.

Thanks.
0 votes
by (162k points)
Right now you'lll need to write your own parser. They are easy to plug in.

Hi EDTSupport,

I am still waiting for your response. Is there a way I can use dirDetails with the extra 'r' column.

Will appreciate a fast response.

Thanks.

Categories

...