You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Anil Philip <go...@yahoo.com> on 2006/08/07 21:24:54 UTC

[commons-net ftp] help! can I avoid oro.jar? (MalformedPatternException)

Hello,
I am getting this error during a call to 
FTPFile[] f = FTPClient.listFiles();
Using commons-net-1.4.1
I googled and read that the oro.jar is missing.
However my application is sensitive to download times
and I dont wish to add the oro.jar if possible - I am
not using regex here.
Is there any way out?
thanks,
Anil

===================================================
Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/oro/text/regex/MalformedPatternException
	at
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUnixFTPEntryParser(DefaultFTPFileEntryParserFactory.java:169)
	at
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:94)
	at
org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)
	at
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
	at
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)
===================================================

Any help appreciated.
thanks,
anil


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [commons-net ftp] help! can I avoid oro.jar? (MalformedPatternException)

Posted by Henri Yandell <fl...@gmail.com>.
I'm afraid it's the obvious one - check the code out and modify bits.
Alternatively, take an oro jar and rip out the bits that are being
used (maybe using Torsten's minijar).

Hen

On 8/7/06, Anil Philip <go...@yahoo.com> wrote:
> Hello,
> I am getting this error during a call to
> FTPFile[] f = FTPClient.listFiles();
> Using commons-net-1.4.1
> I googled and read that the oro.jar is missing.
> However my application is sensitive to download times
> and I dont wish to add the oro.jar if possible - I am
> not using regex here.
> Is there any way out?
> thanks,
> Anil
>
> ===================================================
> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> org/apache/oro/text/regex/MalformedPatternException
>         at
> org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUnixFTPEntryParser(DefaultFTPFileEntryParserFactory.java:169)
>         at
> org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:94)
>         at
> org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)
>         at
> org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
>         at
> org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)
> ===================================================
>
> Any help appreciated.
> thanks,
> anil
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org