[ http://issues.apache.org/jira/browse/NET-61?page=comments#action_12459470 ] Rory Winston commented on NET-61: ---------------------------------
Hi Ross (and anyone else interested in this issue) Can you try the latest RC: http://people.apache.org/~rwinston/commons-net-2.0/commons-net-ftp-2.0.0-SNAPSHOT.jar It requires Java 5.0. This hopefully may fix the issues you are seeing. > [net] FTPClient.listFiles() hangs on Red Hat Linux > -------------------------------------------------- > > Key: NET-61 > URL: http://issues.apache.org/jira/browse/NET-61 > Project: Commons Net > Issue Type: Bug > Affects Versions: 1.4 Final > Environment: Operating System: Linux > Platform: PC > Reporter: George Van Treeck > Priority: Blocker > > A Java app that uses FTPClient to download a file from a website to Windows > XP > works properly. But, when the same app runs on Linux to download the same > file > from the same website, it hangs at listFiles(). > Using Java 1.5.0_03 on both the Windows XP and Linux. The version of Linux > used is Fedor Red Hat Linux Core 3 with all the latest updates. The following > segment of code from the program demonstrates the problem: > FTPClient ftp = new FTPClient(); > ftp.connect(host); > reply = ftp.getReplyCode(); > if (!FTPReply.isPositiveCompletion(reply)) { > final String ftpStatus = ftp.getReplyString(); > ftp.disconnect(); > throw new IOException( > "FTP server refused connection. Status: " + > ftpStatus); > } > ftp.login(user, password); > reply = ftp.getReplyCode(); > if (!FTPReply.isPositiveCompletion(reply)) { > final String ftpStatus = ftp.getReplyString(); > ftp.disconnect(); > throw new IOException( > "FTP server refused username/password. Status: " + > ftpStatus); > } > String[] list = ftp.listNames(); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]