Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in Java FTP by (200 points)
Hello everbody.

I have a problem using edtFTPj/Free, Version 1.5.4.
When I try to execute client.dirDetails() in a directory where a .htaccess-File exists, I receive a java.text.ParseException.
java.text.ParseException: Failed to parse line '-rw-r--r-- 1 ftp ftp 24 Dec 1 16:06 .htaccess' (Unparseable date: "Dec-1-2007-16:06")
at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:271)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:2267)

Is it possible to fix this problem? Can I get edtFTP ignoring .htaccess-Files?

Thanks for any help.

Jan Hillebrand.

4 Answers

0 votes
by (162k points)
It shouldn't make any difference - are you in a non-English locale? That will make a difference.
0 votes
by (200 points)
Yes, I'm from Germany, but I suppose that the server is in English locale though. What can I do?

Edit: I just tried it with setParserLocale() to Locale.GERMAN and Locale.GERMANY, but I still receive the same exception.
0 votes
by (51.6k points)
The fact that the month is before the day hints that it is a US date. Have you tried a US locale?

- Hans (EDT)
0 votes
by (200 points)
Yeah, that fixed it. Thank you!

Categories

...