commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Pik <pi...@ais.pl>
Subject Re: Please Help me !! listFiles() return null
Date Tue, 23 Mar 2004 22:23:50 GMT
Fabio Cuomo wrote:

> Hi at all....
> I'm developing an application that support file transfer using ftp .... 
> particularly it is possible to send and receive file more list all 
> information files or directory. To do this i use listFiles() method of 
> class FTPClass, as follow:
> 
>    FTPClient ftp = new FTPClient();
>    ftp.connect(host);
>    ftp.login(dbuser, pwd);
>    FTPFile[] filelist = ftp.listFiles();
>    for (int i = 0; i < filelist.length; ++i)
>        System.out.println(filelist[i]);
>    ftp.disconnect();
> 
> ... but on i get a null pointer.

Any stack trace... In which line of your code?

[...]

Regards,
Tomek


> regards mulp


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message