Hello, I try to onnect to server and receive "/" directory listing, my code: FTPClient ftp = new FTPClient(); FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX); ftp.configure(conf); ftp.connect(server_ip); ftp.enterLocalPassiveMode(); ftp.login(username, password); if (!FTPReply.isPositiveCompletion(reply)) { ftp.disconnect(); System.out.println(server_ip + " refused connection"); System.exit(1); } FTPFile[] files = ftp.listFiles("/");
and after executing listFiles nothing work, except code in finally (all ftp operations surrounded with try... catch) in ftp server logs: Thu Jul 27 16:52:59 2006 [pid 28756] CONNECT: Client "127.0.0.1" Thu Jul 27 16:52:59 2006 [pid 28756] FTP response: Client "127.0.0.1", "220 (vsFTPd 2.0.4)" Thu Jul 27 16:52:59 2006 [pid 28756] FTP command: Client "127.0.0.1", "USER anonymous" Thu Jul 27 16:52:59 2006 [pid 28756] [anonymous] FTP response: Client "127.0.0.1", "331 Please specify the password." Thu Jul 27 16:52:59 2006 [pid 28756] [anonymous] FTP command: Client "127.0.0.1", "PASS <password>" Thu Jul 27 16:52:59 2006 [pid 28755] [ftp] OK LOGIN: Client "127.0.0.1", anon password "lftp@" Thu Jul 27 16:52:59 2006 [pid 28758] [ftp] FTP response: Client "127.0.0.1", "230 Login successful." I'm using sun-java 5.0.06, jakarta commons-net 1.4.1 Have anybody same troubles? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]