commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: [NET FTPClient] MalformedPatternException when trying to list Files()
Date Fri, 28 May 2004 12:49:04 GMT
Wow... so simple...
jakarta-oro was missing. Now everything works great, both problems are
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

Thank you very much for your help!


-----Urspr√ľngliche Nachricht-----
Von: []
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, said:

> Hello All, I am having problems with the FTPClient class of
> (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
> xFTPEntryParser( at
> eEntryParser( at
> ) at
> at
> at
> at
> .java:184) at
> at

> 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:
> For additional commands, e-mail:

Jeffrey D. Brekke                         
Wisconsin,  USA                           

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message