Greenhorn
This page shows details for the Java class FTPClient contained in the package org.apache.commons.net.ftp. All JAR files containing this class file are listed. Last queries: liferay.portal org.dom4j.datatype.DatatypeAttribute cxf-rt-frontend-simple. Here you can download the dependencies for the java class org.apache.commons.net.ftp.FTPClient. Use this engine to looking through the maven repository.
posted 9 years agoHello All!!
While m running my code m getting following error i.e.
while accessing methods in JAR file 'zehon_file_transfer-1.1.6'
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)
2010-07-22 15:57:26,697 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
2010-07-22 15:57:26,697 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(FtpClientFactory.java:125)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.createClient(FTPClientWrapper.java:70)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.getFtpClient(FTPClientWrapper.java:89)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.<init>(FTPClientWrapper.java:48)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpFileProvider.doCreateFileSystem(FtpFileProvider.java:85)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:66)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:692)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:620)
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileObject(FileTransferClient.java:741)
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(FileTransferClient.java:848)
Kindly help me to fix the problem.
Thanks in advance
While m running my code m getting following error i.e.
while accessing methods in JAR file 'zehon_file_transfer-1.1.6'
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)
2010-07-22 15:57:26,697 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
2010-07-22 15:57:26,697 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(FtpClientFactory.java:125)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.createClient(FTPClientWrapper.java:70)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.getFtpClient(FTPClientWrapper.java:89)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.<init>(FTPClientWrapper.java:48)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpFileProvider.doCreateFileSystem(FtpFileProvider.java:85)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:66)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:692)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:620)
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileObject(FileTransferClient.java:741)
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(FileTransferClient.java:848)
Kindly help me to fix the problem.
Thanks in advance
Sheriff
posted 9 years agoAre you using the right version of Apache Commons Net ?
Ranch Hand
posted 9 years agomake sure you are passing the correct parameters as expected by the arguments of the method in the class in the jar
if you are using reflection to use method
make sure that method exists there
if you are using reflection to use method
make sure that method exists there
Ranch Hand
posted 9 years agoIt seems to be an issue with the availability of the method in specified class.
Can you try with getting more latest version of the JAR
OR
Find the developer / support team and get help from them?
Can you try with getting more latest version of the JAR
OR
Find the developer / support team and get help from them?
Greenhorn
posted 9 years agom using Kukini Workbench 8.2 of BroadVision in which eclipse is inbuilt
In method getFileNamesInFolder(arg).I am passing FTPfolder name where from i have to take xml files which is correct.
In method getFileNamesInFolder(arg).I am passing FTPfolder name where from i have to take xml files which is correct.
Ranch Hand
posted 9 years agoyou are using this jar for the first time ? means you are not familiar with this jar.
choose the exact jar exact class and exact method
choose the exact jar exact class and exact method