Wow... so simple... jakarta-oro was missing. Now everything works great, both problems are solved. I think I did not take this into account because I somehow got stuck with the regex stuff (which indeed was only a problem resulting from the missing library).
Thank you very much for your help! Hermann -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 28. Mai 2004 14:35 An: Jakarta Commons Users List Betreff: Re: [NET FTPClient] MalformedPatternException when trying to listFile s() A few questions: Do you have the jakarta oro jar in your classpath? What is the host type that the ftp server is on ( nt, unix, etc )? >>>>> On Fri, 28 May 2004 11:46:24 +0200, [EMAIL PROTECTED] said: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] -- ===================================================================== Jeffrey D. Brekke [EMAIL PROTECTED] Wisconsin, USA [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
