java.lang.IllegalArgumentException: FontSize must be greater than 0

Pentaho BI Platform Tracking | Gretchen Moran | 1 decade 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

    This bug was reported in the forums. I have tested the repro path with the same builds and my test fails as well. I have added the .xreportspec that was generated during my tests in case that helps to expedite the fix: From Wismed on the forums (http://forums.pentaho.org/showthread.php?p=156307#post156307): I created a generic report using the SampleData in the standalone pentaho-report-design-wizard-1.2.0.373.GA. I didn't change any of the defaults when creating the report just went through and published it. When I try to import it (the .xreportspec file) into ReportDesigner 1.2.0 build 143 it always errors with this message...you can only input valid JFreeReport xml files. java.lang.IllegalArgumentException: FontSize must be greater than 0 at org.jfree.report.style.FontDefinition.<init>(FontDefinition.java:157) at org.jfree.report.style.ElementStyleSheet.getFontDefinitionProperty(ElementStyleSheet.java:951) at org.jfree.report.TextElement.getFont(TextElement.java:328) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.applyTextProperties(JFreeReportImporter.java:734) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.addElement(JFreeReportImporter.java:516) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.addElements(JFreeReportImporter.java:417) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.importStandardBands(JFreeReportImporter.java:163) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.<init>(JFreeReportImporter.java:133) at org.pentaho.reportdesigner.crm.report.commands.ImportReportDefinitionAsXMLCommand$2.run(ImportReportDefinitionAsXMLCommand.java:190)

    Pentaho BI Platform Tracking | 1 decade ago | Gretchen Moran
    java.lang.IllegalArgumentException: FontSize must be greater than 0
  2. 0

    This bug was reported in the forums. I have tested the repro path with the same builds and my test fails as well. I have added the .xreportspec that was generated during my tests in case that helps to expedite the fix: From Wismed on the forums (http://forums.pentaho.org/showthread.php?p=156307#post156307): I created a generic report using the SampleData in the standalone pentaho-report-design-wizard-1.2.0.373.GA. I didn't change any of the defaults when creating the report just went through and published it. When I try to import it (the .xreportspec file) into ReportDesigner 1.2.0 build 143 it always errors with this message...you can only input valid JFreeReport xml files. java.lang.IllegalArgumentException: FontSize must be greater than 0 at org.jfree.report.style.FontDefinition.<init>(FontDefinition.java:157) at org.jfree.report.style.ElementStyleSheet.getFontDefinitionProperty(ElementStyleSheet.java:951) at org.jfree.report.TextElement.getFont(TextElement.java:328) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.applyTextProperties(JFreeReportImporter.java:734) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.addElement(JFreeReportImporter.java:516) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.addElements(JFreeReportImporter.java:417) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.importStandardBands(JFreeReportImporter.java:163) at org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.<init>(JFreeReportImporter.java:133) at org.pentaho.reportdesigner.crm.report.commands.ImportReportDefinitionAsXMLCommand$2.run(ImportReportDefinitionAsXMLCommand.java:190)

    Pentaho BI Platform Tracking | 1 decade ago | Gretchen Moran
    java.lang.IllegalArgumentException: FontSize must be greater than 0

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      FontSize must be greater than 0

      at org.jfree.report.style.FontDefinition.<init>()
    2. org.jfree.report
      TextElement.getFont
      1. org.jfree.report.style.FontDefinition.<init>(FontDefinition.java:157)
      2. org.jfree.report.style.ElementStyleSheet.getFontDefinitionProperty(ElementStyleSheet.java:951)
      3. org.jfree.report.TextElement.getFont(TextElement.java:328)
      3 frames
    3. org.pentaho.reportdesigner
      ImportReportDefinitionAsXMLCommand$2.run
      1. org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.applyTextProperties(JFreeReportImporter.java:734)
      2. org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.addElement(JFreeReportImporter.java:516)
      3. org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.addElements(JFreeReportImporter.java:417)
      4. org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.importStandardBands(JFreeReportImporter.java:163)
      5. org.pentaho.reportdesigner.crm.report.reportimporter.JFreeReportImporter.<init>(JFreeReportImporter.java:133)
      6. org.pentaho.reportdesigner.crm.report.commands.ImportReportDefinitionAsXMLCommand$2.run(ImportReportDefinitionAsXMLCommand.java:190)
      6 frames