commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijay k v <>
Subject Re: FTPFile throws NullPointerException!!
Date Mon, 07 Jul 2003 04:21:05 GMT
The remote ftp host was a Win NT.By default it gives a DOS like listing of the files. I guess
the default parser dosen't  work quite  well with DOS like listings. So I issued a SITE command
to get UNIX like listings and bingo!!!...that worked. I am wondering if there are parsers
available that would function in a more generic manner.


--- "Daniel F. Savarese" <> wrote:
>In message <>, vijay k v writes:
>>Then i do ..
>>FTPFile ftpFile[] = ftp.listFiles();
>>But when i do..
>>I get a java.lang.NullPointerException
>    The list of file information contained in the current working directory.
>==> null if the list could not be obtained or if there are no files in the
>    directory.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Thank you for choosing LinuxQuestions.

View raw message