commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepa Nair (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-61) [net] FTPClient.listFiles() hangs on Red Hat Linux
Date Thu, 22 Mar 2007 23:12:34 GMT

    [ https://issues.apache.org/jira/browse/NET-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483349
] 

Deepa Nair commented on NET-61:
-------------------------------

Rory,
I am still facing this issue. 
ListFiles retrieves null array

ListNames causes IO Exception 
Caused by:
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server
closed connection.
I am using the jar from http://people.apache.org/~rwinston/commons-net-2.0/commons-net-ftp-2.0.0-SNAPSHOT.jar
 on LINUX


> [net] FTPClient.listFiles() hangs on Red Hat Linux
> --------------------------------------------------
>
>                 Key: NET-61
>                 URL: https://issues.apache.org/jira/browse/NET-61
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: George Van Treeck
>            Priority: Blocker
>             Fix For: 2.0
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
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