DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35338>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35338

           Summary: FTPClient.listFiles() hangs on Red Hat Linux
           Product: Commons
           Version: 1.4 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Net
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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();

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to