Hi,
I am running edtFTPj v. 1.5.2 on a Windows XP machine and connect to a WFTPD FTP server installed on a Windows 2000 Professional.
I got the same problem as alto had already reported. Somehow the WindowsFileParser instead of the UnixFileParser is being used.
Below the java exception I get:
02/05/2006 18:06:07:140 ERROR [Thread-2436] [SystemException.<init>] [1146585967140.15] java.text.ParseException: Unparseable date: "drwxrwxrwx 1"
at java.text.DateFormat.parse(DateFormat.java:335)
at com.enterprisedt.net.ftp.WindowsFileParser.parse(WindowsFileParser.java:111)
at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:246)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:2002)
at com.tilab.common.ftp.FtpManager.listDetails(Unknown Source)
...
Here the output I get from a command line FTP client:
ftp> dir lok
200 PORT command okay
150 File Listing Follows in ASCII mode
drwxrwxrwx 1 noone nogroup 0 May 2 11:22 .
drwxrwxrwx 1 noone nogroup 0 May 2 11:22 ..
-rwxrwxrwx 1 noone nogroup 553672 Apr 18 12:07 squatter-OADM-1 trottolo.dat
-rwxrwxrwx 1 noone nogroup 553672 Mar 30 15:13 squatter-OADM-1jghj.dat
-rwxrwxrwx 1 noone nogroup 553672 May 2 11:22 squatterk-OADM-1 pingo.dat
-rwxrwxrwx 1 noone nogroup 553672 Apr 20 17:16 squatterk-OADM-1 troll.dat
226 Transfer finished successfully.
ftp: 442 bytes received in 0,00Seconds 442000,00Kbytes/sec.
ftp>
The very strange thing is the following: if the directory for which I am calling dirDetails() is dated 30.04.06 or before, the command succeeds and I get the correct output. If however the directory is dated 01.05.06 or later it fails with the exception above.
I read about the possibility to force set the UnixFileParser, but I need the FTP client working no matter which FTP server is, it should work also with Windows notation!
Here the output of 'quote syst' command:
ftp> quote syst
215 MSDOS A N (WFTPD by Texas Imperial Software)
ftp>
Can you please tell me what other information do you need to investigate on?
Thanks,
Alberto