java.lang.NullPointerException

Pentaho BI Platform Tracking | Jared Cornelius | 9 years ago
  1. 0

    Repro path: 1) Create a simple report with line chart using RDW 1.5.4 -notice preview in RDW works fine. 2) Publish report to 1.5.4 platform and run it - fails with following error: 11:16:45,515 ERROR [JFreeReportPdfComponent] Error Start: Pentaho 1.5.4 build 716 0 11:16:45,515 ERROR [JFreeReportPdfComponent] 3e43a2dc-28af-11dc-88ed-9ba27aa92d2b:COMPONENT:context-14277157-1183389404328:LineCha rtTest1.xaction Base.ERROR_0002 - Component execution failed java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.translateLineStyle(LineChartExpression.java:143) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:75) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:209) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:704) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:676) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:322) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:301) at org.jfree.report.states.ReportState.fireItemsAdvancedEvent(ReportState.java:815) at org.jfree.report.states.InItemGroupState.advance(InItemGroupState.java:79) . . . <much more> Attached is the action sequence and report xml from my test (uses sampledata).

    Pentaho BI Platform Tracking | 9 years ago | Jared Cornelius
    java.lang.NullPointerException
  2. 0

    Repro path: 1) Create a simple report with line chart using RDW 1.5.4 -notice preview in RDW works fine. 2) Publish report to 1.5.4 platform and run it - fails with following error: 11:16:45,515 ERROR [JFreeReportPdfComponent] Error Start: Pentaho 1.5.4 build 716 0 11:16:45,515 ERROR [JFreeReportPdfComponent] 3e43a2dc-28af-11dc-88ed-9ba27aa92d2b:COMPONENT:context-14277157-1183389404328:LineCha rtTest1.xaction Base.ERROR_0002 - Component execution failed java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.translateLineStyle(LineChartExpression.java:143) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:75) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:209) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:704) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:676) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:322) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:301) at org.jfree.report.states.ReportState.fireItemsAdvancedEvent(ReportState.java:815) at org.jfree.report.states.InItemGroupState.advance(InItemGroupState.java:79) . . . <much more> Attached is the action sequence and report xml from my test (uses sampledata).

    Pentaho BI Platform Tracking | 9 years ago | Jared Cornelius
    java.lang.NullPointerException
  3. 0

    NPE occurs when trying to create a line chart in the Report Designer (1.6 RC1). I started with a simple bar chart, switched to Line, and the following exception occurs: 2007-09-11 10:39:55:390 SEVERE org.pentaho.reportdesigner.lib.client.util.UncaughtExcpetionsModel: UncaughtExcpetionsModel.addExce ption java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) Sep 11, 2007 10:39:55 AM org.pentaho.reportdesigner.lib.client.util.UncaughtExcpetionsModel addException SEVERE: UncaughtExcpetionsModel.addException java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) 2007-09-11 10:39:55:406 SEVERE org.pentaho.reportdesigner.crm.report.StatusBar: StatusBar.exceptionCaught java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) Sep 11, 2007 10:39:55 AM org.pentaho.reportdesigner.crm.report.StatusBar exceptionCaught SEVERE: StatusBar.exceptionCaught java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113)

    Pentaho BI Platform Tracking | 9 years ago | Jared Cornelius
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After attempting to set the "Background Image" property in the Chart Editor, the chart generates many exceptions and the image doesn't show. Even after trying to clear the background image property, there errors still occur. What should the Background Image property be set to, a file or web URL? Stack trace: ERROR: ABSTRACTCHARTEXPRESSION.ERROR_0007 - Error occurred while retrieving plot background image. java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression.setChartProperties(AbstractChartExpression.java:561 ) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.setChartProperties(CategoricalChartExpression.ja va:234) at org.pentaho.plugin.jfreereport.reportcharts.BarChartExpression.setChartProperties(BarChartExpression.java:91) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPage(AbstractReportProcessor.java:791) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.processPage(PrintReportProcessor.java:277) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:248) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) ERROR: ABSTRACTCHARTEXPRESSION.ERROR_0007 - Error occurred while retrieving plot background image. java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression.setChartProperties(AbstractChartExpression.java:561 ) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.setChartProperties(CategoricalChartExpression.ja va:234) at org.pentaho.plugin.jfreereport.reportcharts.BarChartExpression.setChartProperties(BarChartExpression.java:91) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.firePageFinishedEvent(ProcessState.java:473) at org.jfree.report.layout.output.DefaultLayoutPagebreakHandler.pagebreakGenerated(DefaultLayoutPagebreakHandler.java:69) at org.jfree.report.modules.output.pageable.base.PageableRenderer.performPagination(PageableRenderer.java:174) at org.jfree.report.layout.AbstractRenderer.processPage(AbstractRenderer.java:354) at org.jfree.report.layout.output.AbstractReportProcessor.processPage(AbstractReportProcessor.java:867) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.processPage(PrintReportProcessor.java:277) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:248) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) ERROR: ABSTRACTCHARTEXPRESSION.ERROR_0007 - Error occurred while retrieving plot background image. <... this error repeats many times>

    Pentaho BI Platform Tracking | 9 years ago | Jared Cornelius
    java.lang.NullPointerException
  6. 0

    NPE occurs when trying to create a line chart in the Report Designer (1.6 RC1). I started with a simple bar chart, switched to Line, and the following exception occurs: 2007-09-11 10:39:55:390 SEVERE org.pentaho.reportdesigner.lib.client.util.UncaughtExcpetionsModel: UncaughtExcpetionsModel.addExce ption java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) Sep 11, 2007 10:39:55 AM org.pentaho.reportdesigner.lib.client.util.UncaughtExcpetionsModel addException SEVERE: UncaughtExcpetionsModel.addException java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) 2007-09-11 10:39:55:406 SEVERE org.pentaho.reportdesigner.crm.report.StatusBar: StatusBar.exceptionCaught java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113) Sep 11, 2007 10:39:55 AM org.pentaho.reportdesigner.crm.report.StatusBar exceptionCaught SEVERE: StatusBar.exceptionCaught java.lang.NullPointerException at org.pentaho.plugin.jfreereport.reportcharts.ChartConstants.translateLineStyle(ChartConstants.java:254) at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:54) at org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:229) at org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:653) at org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:625) at org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:360) at org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:292) at org.jfree.report.states.process.ProcessState.fireReportEvent(ProcessState.java:486) at org.jfree.report.states.process.ProcessDetailsHandler.advance(ProcessDetailsHandler.java:31) at org.jfree.report.states.process.ProcessState.advance(ProcessState.java:282) at org.jfree.report.layout.output.AbstractReportProcessor.processPrepareLevels(AbstractReportProcessor.java:311) at org.jfree.report.layout.output.AbstractReportProcessor.prepareReportProcessing(AbstractReportProcessor.java:402) at org.jfree.report.modules.output.pageable.graphics.PrintReportProcessor.getPageDrawable(PrintReportProcessor.java:237) at org.pentaho.reportdesigner.crm.report.preview.ReportPane$3.run(ReportPane.java:113)

    Pentaho BI Platform Tracking | 9 years ago | Jared Cornelius
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.translateLineStyle()
    2. org.pentaho.plugin
      CategoricalChartExpression.getValue
      1. org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.translateLineStyle(LineChartExpression.java:143)
      2. org.pentaho.plugin.jfreereport.reportcharts.LineChartExpression.setChartProperties(LineChartExpression.java:75)
      3. org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.getValue(CategoricalChartExpression.java:209)
      3 frames
    3. org.jfree.report
      InItemGroupState.advance
      1. org.jfree.report.states.datarow.ExpressionDataRow.reactivateExpressions(ExpressionDataRow.java:704)
      2. org.jfree.report.states.datarow.ExpressionDataRow.fireReportEvent(ExpressionDataRow.java:676)
      3. org.jfree.report.states.datarow.GlobalMasterRow.fireReportEvent(GlobalMasterRow.java:322)
      4. org.jfree.report.states.datarow.DefaultFlowController.fireReportEvent(DefaultFlowController.java:301)
      5. org.jfree.report.states.ReportState.fireItemsAdvancedEvent(ReportState.java:815)
      6. org.jfree.report.states.InItemGroupState.advance(InItemGroupState.java:79)
      6 frames