Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 41636 invoked from network); 7 Aug 2003 18:39:00 -0000 Received: from smtp.mathworks.com (HELO smtp2.mathworks.com) (144.212.95.12) by daedalus.apache.org with SMTP; 7 Aug 2003 18:39:00 -0000 Received: from mail-vif.mathworks.com (fred-ce0.mathworks.com [144.212.95.18]) by smtp2.mathworks.com (8.11.7/8.11.7) with ESMTP id h77Id3E23191 for ; Thu, 7 Aug 2003 14:39:03 -0400 (EDT) Received: from madmax.mathworks.com (madmax.mathworks.com [144.212.95.21]) by mail-vif.mathworks.com (8.11.7/8.11.7) with ESMTP id h77Id3h17321 for ; Thu, 7 Aug 2003 14:39:03 -0400 (EDT) Received: from localhost (matthew@localhost) by madmax.mathworks.com (8.9.3/8.9.3) with ESMTP id OAA04394 for ; Thu, 7 Aug 2003 14:39:03 -0400 (EDT) X-Authentication-Warning: madmax.mathworks.com: matthew owned process doing -bs Date: Thu, 7 Aug 2003 14:39:03 -0400 (EDT) From: "Matthew J. Simoneau" To: commons-user@jakarta.apache.org Subject: [net] FTPClient.listFiles sometimes locks up Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N FTPClient.listFiles intermittently locks up on me, about every couple dozen times I call it. I can reproduce this with the 1.0 release and with last night's build. When I attach a debugger and look at the stack traces (below), I see that DefaultFTPFileListParser.parseFileList calls BufferedReader.readLine. Is it possible that due to networking hiccups, readLine isn't getting its end-of-line and it never times out? Is there something else going on? Has anyone else seen this problem? Thanks for your help. Using the 1.0 version: main: [1] java.net.SocketInputStream.socketRead0 (native method) [2] java.net.SocketInputStream.read (null) [3] sun.nio.cs.StreamDecoder$CharsetSD.readBytes (null) [4] sun.nio.cs.StreamDecoder$CharsetSD.implRead (null) [5] sun.nio.cs.StreamDecoder.read (null) [6] java.io.InputStreamReader.read (null) [7] java.io.BufferedReader.fill (null) [8] java.io.BufferedReader.readLine (null) [9] java.io.BufferedReader.readLine (null) [10] org.apache.commons.net.ftp.DefaultFTPFileListParser.parseFileList (DefaultFTPFileListParser.java:397) [11] org.apache.commons.net.ftp.FTPClient.listFiles (FTPClient.java:1,933) [12] org.apache.commons.net.ftp.FTPClient.listFiles (FTPClient.java:1,964) [13] org.apache.commons.net.ftp.FTPClient.listFiles (FTPClient.java:2,020) Using last night's build: main: [1] java.net.SocketInputStream.socketRead0 (native method) [2] java.net.SocketInputStream.read (null) [3] sun.nio.cs.StreamDecoder$CharsetSD.readBytes (null) [4] sun.nio.cs.StreamDecoder$CharsetSD.implRead (null) [5] sun.nio.cs.StreamDecoder.read (null) [6] java.io.InputStreamReader.read (null) [7] java.io.BufferedReader.fill (null) [8] java.io.BufferedReader.readLine (null) [9] java.io.BufferedReader.readLine (null) [10] org.apache.commons.net.ftp.DefaultFTPFileListParser.parseFileList (DefaultFTPFileListParser.java:395) [11] org.apache.commons.net.ftp.FTPClient.listFiles (FTPClient.java:1,985) [12] org.apache.commons.net.ftp.FTPClient.listFiles (FTPClient.java:2,016) [13] org.apache.commons.net.ftp.FTPClient.listFiles (FTPClient.java:2,072) -- Matthew J. Simoneau The MathWorks, Inc.