Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 87715 invoked from network); 28 May 2004 09:52:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 May 2004 09:52:19 -0000 Received: (qmail 59017 invoked by uid 500); 28 May 2004 09:53:00 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 58947 invoked by uid 500); 28 May 2004 09:53:00 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 58925 invoked by uid 98); 28 May 2004 09:52:59 -0000 Received: from Hermann.Pruem@f-it.de by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(153.95.95.71):. Processed in 0.346883 secs); 28 May 2004 09:52:59 -0000 X-Qmail-Scanner-Mail-From: Hermann.Pruem@f-it.de via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(153.95.95.71):. Processed in 0.346883 secs) Received: from unknown (HELO itnts96.freudenberg.de) (153.95.95.71) by hermes.apache.org with SMTP; 28 May 2004 09:52:59 -0000 Received: from fgnts03.fit.freudenberg.de (unverified) by itnts96.freudenberg.de (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 28 May 2004 11:53:43 +0200 Received: by fgnts03.fit.freudenberg.de with Internet Mail Service (5.5.2657.72) id ; Fri, 28 May 2004 11:40:14 +0200 Message-ID: <2DC5022CD399E44997505F207604EE348D92AF@itntf2012.fit-rz.freudenberg.de> From: Hermann.Pruem@f-it.de To: commons-user@jakarta.apache.org Subject: [NET FTPClient] MalformedPatternException when trying to listFile s() Date: Fri, 28 May 2004 11:46:24 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) content-class: urn:content-classes:message Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello All, I am having problems with the FTPClient class of commons.net (1.2.1). When I do FTPFile[] f = ftpClient.listFiles(filename); a runtime exception is thrown (the file really exists on the server, the ftp connection is working correctly). java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUni xFTPEntryParser(DefaultFTPFileEntryParserFactory.java:121) at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFil eEntryParser(DefaultFTPFileEntryParserFactory.java:84) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2306 ) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2055) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2106) at de.freudenberg.it.ssts.liet.FTPConnection.getFileSize(FTPConnection.java:80) at de.freudenberg.it.ssts.liet.ProcessingThread.processOutFile(ProcessingThread .java:184) at de.freudenberg.it.ssts.liet.ProcessingThread.run(ProcessingThread.java:131) at java.lang.Thread.run(Thread.java:484) I have managed to trace this down as follows: Obviously, a UnixFTPEntryParser is created (the server is identified as "UNIX Type: L8 Version: BSD-44"). On this creation, a RegexFTPFileEntryParserImpl is created with a regex pattern given in the libraries source code. A Perl5Matcher and a Perl5Compiler() are created and the regex pattern is used to compile(). And now things are getting weird: Problem 1: compile() throws a MalformedPatternException in case the regex pattern is not correct. Here, compile() tries to throw it, so there seems to be something wrong with the pattern. Is this a known issue? Or am I really the first one to have this problem? Or have I simply done something wrong? Problem 2: compile() does not even manage to throw this exception, so there must be some library files missing. I am a bit at a loss with this. Can anybody help? Hermann --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org