Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 75888 invoked from network); 5 Mar 2008 08:05:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 08:05:16 -0000 Received: (qmail 47606 invoked by uid 500); 5 Mar 2008 08:05:09 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 47317 invoked by uid 500); 5 Mar 2008 08:05:08 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 47308 invoked by uid 99); 5 Mar 2008 08:05:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 00:05:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kathy.lo.ky@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 08:04:33 +0000 Received: by wf-out-1314.google.com with SMTP id 25so1602271wfc.27 for ; Wed, 05 Mar 2008 00:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=HKW8JB2I0irNV08ttpqgrKMKe4tcL5dT662uXXhUhg4=; b=E8u2oyDGnjvi98mz4lzD7tDJxunhV7e35nt2f5sEPXcxH7n1lmS3th7cTztJPR2K/s0O7JRgRKITvTS3u/+TS8DZ1nPJTZQH3tUTjIZ+aYPxQ4/o+DmYgwZpEW+MJfnHTPmMBzgoeZCI7lfh8Sr2T75bDpQWITPs7KbW2ncFKJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RjRc55yIvdB/7WBxlIczj+8Yw5HpyB8gANyM090g3s4G/njOv3eJ3XlpycV00MqLIpZHOnswrmH+l5q1l5tiQ7og5oWOr8rs3rOPfvs70NWtHGYDomVAbAhjRksxuvUe4cK07iCBszmcH5GUSWW9n3N/jPuG5oXRB6rryr4aQZc= Received: by 10.143.5.21 with SMTP id h21mr708657wfi.80.1204704284273; Wed, 05 Mar 2008 00:04:44 -0800 (PST) Received: by 10.142.177.11 with HTTP; Wed, 5 Mar 2008 00:04:44 -0800 (PST) Message-ID: Date: Wed, 5 Mar 2008 16:04:44 +0800 From: "Kathy Lo" To: user@commons.apache.org Subject: [ftp] Fail to create FTPFile object on some directories/files when calling listFiles() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Dear all, In server-side, it uses vsftpd 2.0.3 as FTP Server. In client-side, it uses common-net-1.4.1 Java package to communicate with FTP Server through Java program. Both the server and client are running Linux FC 4 In client side, I wrote a Java program to call FTPClient.listFiles() to get a list FTPFile objects for each directories/files in /Doc directory in the server and use FTPClientConfig object to configure the FTPClient as follow: serverTimeZoneId = "Asia/Hong Kong" defaultDateFormatStr = "MMM d yyyy" recentDateFormatStr = "MMM d HH:mm" If the file/directory date falls between "Feb 29 00:00" and "Feb 29 23:59", the FTPFile object is "NULL". If the file/directory date is "Feb 29 2008", the FTPFile object is created normally. Then, I download the source code of common-net-1.4.1 Java package and found that FTPTimestampParserImpl.parseTimestamp() throws ParseException. How can I solve this problem? -- Kathy Lo --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org