Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.4k views
in Java FTP by (220 points)
Hi all,

While im using the newest package, edtFTPj 1.5.5, i faced another exception while trying to get a list of files from the server, im working & running the code from Windows XP OS, and trying to connect to a RedHat Linux ES 4...

I used the "ftp.dirDetails("");" to get the full details for the files in the current directory, but the command returned to me with the following exception while trying to parse the list of data.

Exception: Failed to parse line '-rw-r--r-- 1 501 501 1024 Aug 08 16:44 File_Name.ext' (Unparseable date: "Aug-08-2007-16:44")


Is it possible that the package couldn't recognize which parser to use by itself? or do i have to specify the operating system of the remote machine im connection to, so that the function will recognize which parser to use then???

3 Answers

0 votes
by (220 points)
I found my problem with the Locale settings, my machine locale had a different locale than the remote server locale.
Once i set the server's locale for the parser's locale, everything went well.

Can't there be a better solution for solving this problem without me having to set the server's locale in my application?
since my application may have to work on different kinds of servers.
0 votes
by (162k points)
There's no simple solution unfortunately. What is your locale, and what is the locale of your server?

We are considering making the default server locale english, with a fallback of the locale of the client.
0 votes
by (220 points)
Seems i'll have to add the locale configuration for the remote machine in the .properties file along with the others, since the locale of the remote server can differ from one company to another.

Thats the only option i have in here, i don't want to make any configurations or properties hard coded in my application, this will only bring a headache for the developer...

thanks anyways... i really appreciate your reply...
this library really relieved me from so many undeeded steps...

Categories

...