commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38055] - [net] FTP Client fails to retrieve file list
Date Wed, 28 Dec 2005 21:12:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38055>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38055





------- Additional Comments From pcgscrap@comcast.net  2005-12-28 22:12 -------
May have a problem that just might be the cause as to why listFiles() isn't
working. When attempting to use listFiles(path) to get a single file I get the
following exception. (code I am using is at the end of this message)

*****************************************************************************
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
com.comtrol.global.connections.FTPTransfer.checkFile(FTPTransfer.java:119)
        at com.synfoserv.actions.ActionServlet.checkSPSFTP(ActionServlet.java:443)
        at com.synfoserv.actions.ActionServlet.access$400(ActionServlet.java:27)
        at com.synfoserv.actions.ActionServlet$2.run(ActionServlet.java:52)
        at java.util.TimerThread.mainLoop(Timer.java:432)
        at java.util.TimerThread.run(Timer.java:382)
*****************************************************************************

public FTPFile checkFile(String sServerFile){
    FTPFile f = null;
    FTPFile[] fa = null;
    try{
      fa = this.listFiles(sServerFile);
      if(fa != null){
        f = fa[0];
      }
    }catch(Exception e){System.out.println("checkFile() Error: \n" +
e.getMessage());}
    return f;
  }


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message