Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Error while launching a demo in my application

  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Default Error while launching a demo in my application

    Hi !

    I have an old version of JFreeReport (0.8.6-4) used in my application and I cannot export a report to PDF or RTF file...

    I read in this forum that new flow engine (0.9) is not yet ready for production so I chose the Pentaho Reporting (Classic).

    I tried to remove the old version and old linked libraries and put the 2 JARs (+ libraries dependencies) files in my library folder. I have these files :
    HTML Code:
    JimiCore.jar
    batik-awt-util.jar
    batik-bridge.jar
    batik-css.jar
    batik-dom.jar
    batik-ext.jar
    batik-extension.jar
    batik-gui-util.jar
    batik-gvt.jar
    batik-parser.jar
    batik-script.jar
    batik-svg-dom.jar
    batik-svggen.jar
    batik-swing.jar
    batik-transcoder.jar
    batik-util.jar
    batik-xml.jar
    bsf-2.4.0.jar
    bsh-1.3.0.jar
    commons-logging-1.0.4.jar
    commons-math-1.0.jar
    geotools.jar
    gnujaxp.jar
    hibernate3.jar
    hsqldb.jar
    itext-1.5.2.jar
    jbcl.jar
    jcommon-1.0.12.jar
    jcommon-logging-jcl-1.0.2.jar
    jcommon-serializer-0.2.0.jar
    jcommon-xml-1.0.12.jar
    jdbc2_0-stdext.jar
    jfreechart-1.0.5.jar
    js.jar
    jta-spec1_0_1.jar
    kunststoff.jar
    libfonts-0.3.4.jar
    libformula-0.1.17.jar
    libloader-0.3.7.jar
    librepository-0.1.6.jar
    libxml-0.9.11.jar
    mysql-connector-java-3.0.14-production-bin.jar
    mysql-connector-java-3.1.13-bin.jar
    oscache-2.3-compat.jar
    pdf-transcoder.jar
    pentaho-reporting-engine-classic-0.8.9.3.jar
    pentaho-reporting-engine-classic-demo-0.8.9.3.jar
    pentaho-reporting-engine-classic-ext-0.8.9.3.jar
    pixie-0.8.10.jar
    poi-3.0.1-jdk122-final-20071014.jar
    rhino-1.6r7.jar
    utils.jar
    xerces_2_5_0.jar
    xml-apis.jar
    I have no compilation error but when I try to launch a HelloWorld style demo in my application I have the following exception :
    HTML Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.jfree.resourceloader.LibLoaderInfo.addOptionalLibrary(Ljava/lang/String;)V
            at org.jfree.resourceloader.LibLoaderInfo.<init>(LibLoaderInfo.java:81)
            at org.jfree.resourceloader.LibLoaderInfo.getInstance(LibLoaderInfo.java:50)
            at org.jfree.report.JFreeReportInfo.<init>(JFreeReportInfo.java:110)
            at org.jfree.report.JFreeReportInfo.getInstance(JFreeReportInfo.java:64)
            at org.jfree.report.JFreeReportBoot.<init>(JFreeReportBoot.java:217)
            at org.jfree.report.JFreeReportBoot.getInstance(JFreeReportBoot.java:234)
            at Results.ReportTest.main(ReportTest.java:181)
    I think this exception comes from a conflicts in my librairies because when I launch the same file out of my application it works...

    Can I have some help please ?
    Raimana

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    This looks like a version issue with either jcommon or libloader.
    (JCommon provides the base class for LibLoaderInfo, where the "addOptionalLibrary(..)" is implemented.

    LibLoader (and all other libs in your list) seem to be ok. So my guess is that there is a older version of JCommon sitting around somewhere.

    Try to execute this code from within your application:

    System.out.println (BasicProjectInfo.class.getProtectionDomain().getCodeSource().getLocation());

    This should tell you where the jar-file is that provides the JCommon classes. And if thats not the one you listed here, then you know why the thing fails.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Feb 2008
    Posts
    2

    Default

    Hi !

    You were right ! I didn't see there was another library folder which contained an older JCommon version.

    Thanks for help and speedy answer !
    Raimana

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.