com.zehon.exception.FileTransferException: java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V 2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(FileTransferClient.java:858) 2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.ftp.FTPClient.getFileNamesInFolder(FTPClient.java:545) 2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.TransferFtptolocal(XMLRequestUtil.java:461) 2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.getXMLRequestFiles2DB(XMLRequestUtil.java:77) 2010-07-22 15:57:26,696 ERROR [STDERR] at corp.broadvision.org.XMLgeneration.SchedularServlet$1.run(SchedularServlet.java:27) 2010-07-22 15:57:26,696 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)

Coderanch | Durgesh Rajbhar | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NoSuchMethodError while accessing jar method

    Coderanch | 7 years ago | Durgesh Rajbhar
    com.zehon.exception.FileTransferException: java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V 2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(FileTransferClient.java:858) 2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.ftp.FTPClient.getFileNamesInFolder(FTPClient.java:545) 2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.TransferFtptolocal(XMLRequestUtil.java:461) 2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.getXMLRequestFiles2DB(XMLRequestUtil.java:77) 2010-07-22 15:57:26,696 ERROR [STDERR] at corp.broadvision.org.XMLgeneration.SchedularServlet$1.run(SchedularServlet.java:27) 2010-07-22 15:57:26,696 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V

      at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection()
    2. Commons VFS
      DefaultFileSystemManager.resolveFile
      1. org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(FtpClientFactory.java:125)
      2. org.apache.commons.vfs.provider.ftp.FTPClientWrapper.createClient(FTPClientWrapper.java:70)
      3. org.apache.commons.vfs.provider.ftp.FTPClientWrapper.getFtpClient(FTPClientWrapper.java:89)
      4. org.apache.commons.vfs.provider.ftp.FTPClientWrapper.<init>(FTPClientWrapper.java:48)
      5. org.apache.commons.vfs.provider.ftp.FtpFileProvider.doCreateFileSystem(FtpFileProvider.java:85)
      6. org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
      7. org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
      8. org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:66)
      9. org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:692)
      10. org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:620)
      10 frames