You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "videoVj (JIRA)" <ji...@apache.org> on 2007/04/27 16:15:15 UTC

[jira] Commented: (NET-61) [net] FTPClient.listFiles() hangs on Red Hat Linux

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

videoVj commented on NET-61:
----------------------------

I am still facing the same problem with listnames using http://issues.apache.org/jira/browse/NET-61?page=comments#action_12432300 on Java 1.6.0 on LINUX
The call to listNames hangs and when i use ctrl+\ thpart of dump goes liek this:


"Finalizer" daemon prio=10 tid=0x080a7400 nid=0x1445 in Object.wait() [0x404e9000..0x404e931c]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x44662690> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x44662690> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x080a6000 nid=0x1444 in Object.wait() [0x40499000..0x4049951c]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x44662720> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x44662720> (a java.lang.ref.Reference$Lock)

"main" prio=10 tid=0x08057400 nid=0x1442 runnable [0x400b4000..0x400b56f4]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        - locked <0x441d98a0> (a java.net.SocksSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:503)
        at org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:1962)
        at org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:2008)
        at 

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