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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Gretchen Moran,
  • 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)
    via by Gretchen Moran,
    • 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)
    No Bugmate found.