This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

NoSuchMethodError while accessing jar method

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the right version of Apache Commons Net ?
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make 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
 
Ranch Hand
Posts: 49
Spring Redhat Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It 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?
 
Durgesh Rajbhar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
m 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.





 
subhash kumar
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you 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
    Bookmark Topic Watch Topic
  • New Topic