Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: NoSuchMethodError

  1. #1
    Join Date
    Mar 2003

    Default NoSuchMethodError

    I have 'borrowed' some of the code from HelloWorld. I get a clean compile, but I get the following stack trace when I try to print data from my table.

    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.jfree.base.BasicProjectInfo.addOptionalLibrary(Ljava/lang/StringV
    at javaSource.TestPanel.executeReport(
    at javaSource.HelperFrame.actionPerformed(
    at javax.swing.AbstractButton.fireActionPerformed(
    at javax.swing.AbstractButton$Handler.actionPerformed(

    at javax.swing.DefaultButtonModel.fireActionPerformed(
    at javax.swing.DefaultButtonModel.setPressed(
    at javax.swing.AbstractButton.doClick(
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
    at java.awt.Component.processMouseEvent(
    at javax.swing.JComponent.processMouseEvent(
    at java.awt.Component.processEvent(
    at java.awt.Container.processEvent(

    at java.awt.Component.dispatchEventImpl(
    at java.awt.Container.dispatchEventImpl(
    at java.awt.Component.dispatchEvent(
    at java.awt.LightweightDispatcher.retargetMouseEvent(
    at java.awt.LightweightDispatcher.processMouseEvent(
    at java.awt.LightweightDispatcher.dispatchEvent(
    at java.awt.Container.dispatchEventImpl(
    at java.awt.Window.dispatchEventImpl(
    at java.awt.Component.dispatchEvent(
    at java.awt.EventQueue.dispatchEvent(
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(
    at java.awt.EventDispatchThread.pumpEvents(
    at java.awt.EventDispatchThread.pumpEvents(
    Finished executing

    Line 277 in is this: JFreeReportBoot.getInstance().start();

    I am pretty sure it is something with the classpath but not sure what I am missing. Here is the javac command (from my IDE):

    C:\Program Files\Java\jdk1.5.0_06\bin\java.exe -classpath "C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_06\lib\tools.jar;C:\Program Files\Java\jfreechart-1.0.0\lib;C:\Program Files\Java\PSwing\bin;C:\Program Files\Java\jfreereport-0.8.7-2\lib;C:\Program Files\Java\jfreereport-0.8.7-2\jfreereport-0.8.7-2.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\bsf-2.3.0.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\bsh-1.3.0.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\gnujaxp.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\itext-1.4.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\jcommon-1.0.2.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\jcommon-xml-1.0.2.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\libfonts-0.1.5.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\pixie-0.8.4.jar;C:\Program Files\Java\jfreereport-0.8.7-2\lib\poi-3.0-alpha1-20050704.jar;C:\Program Files\Java\jfreereport-ext-0.8.7-2\jfreereport-ext-0.8.7-2.jar;C:\Program Files\Java\jfreereport-ext-0.8.7-2\lib;C:\greg\budgetProgram\classes" javaSource.BudgetHelper -Xlint:unchecked

  2. #2
    Join Date
    Mar 2003

    Default got it

    Modified the jar file order and that problem is now corrected...must have an old version of something that wsa causing a problem.

    Now I have another problem.

    The preview window surfaces, but when I close it (from the File -> Close Menu), control is not returned correctly to the JPanel that displays the data from the TableModel.

  3. #3
    Join Date
    Mar 2003

    Default Same Issue

    Good advice, thanks!

    I had the same issue with:

    Once I changed the order of the jar files in my classpath, the report worked.

    I'm also having the issue with control not switching back to the java app. once I 'exit' the report window. This is a minor issue.

  4. #4
    Join Date
    Mar 2003

    Default jar files

    make sure you have all of the files in the jfreereport and the jfreereport-ext lib folders in your classpath...I had the same problem and once I added ALL of the jar files in both lib folders the problem went away. Not exactly sure which ONE did it, but at least it now works.

  5. #5
    Join Date
    Jun 2006

    Default Re: Same Issue

    Hi all,

    Can anyone please tell me which all jar files I should include in the classfile and the order as well.

  6. #6



    The problem is that JCommon is used by JFreeReport and JFreeChart, Try to use lastest version of both or at leat versions that are using the same JCommon library version.
    May the Moo force be with you,
    Said Mimil

    A student of JFree & Pentaho Academies,
    Cedric Pronzato

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.