[ http://issues.apache.org/jira/browse/NET-61?page=comments#action_12430101 
] 
            
Patrick Cruce commented on NET-61:
----------------------------------


 I'm getting the same problem when running on:
 
 CentOS 4
 uname -a returns:Linux horae 2.6.9-11.106.unsupportedsmp #1 SMP Wed Jun 8
 22:05:04 CDT 2005 i686 i686 i386 GNU/Linux
 
 Here's the log messages my program printed out indicating ftp connection
 status/type:
 "
 Log Message At: Thu Aug 17 15:04:47 PDT 2006 : FTPConnection connected to
 ftp.sac.co.za
 Log Message At: Thu Aug 17 15:04:47 PDT 2006 : Reply String: 220 scs Microsoft
 FTP Service (Version 5.0).
 
 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : Client Type: Windows_NT version 
5.0
 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : System Name: Windows_NT version 
5.0
 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : Status: 211-scs Microsoft 
Windows
 NT FTP Server status:
      Version 5.0
      Connected to horae.SSL.Berkeley.EDU
      Logged in as Themis
      TYPE: ASCII, FORM: Nonprint; STRUcture: File; transfer MODE: STREAM
      No data connection
 211 End of status.
"
 
I set my client to passive mode.

 My question is thus:
#1 is this problem definitely due to having SELinux enabled
#2 if yes to #1 is there any way to solve the problem without disabling SELinux
#3 if no to #2 is there any way to disable SELinux without recompiling/switching
the kernel


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

Reply via email to