java.lang.NullPointerException

Pentaho BI Platform Tracking | Will Gorman | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    There are two errors when publishing a report. The first error is a null pointer coming out of jfree report (see below). This error is due to the "<data-factory/>" tag. When removed, another error appears. The second error, no manager found for band (second exceptio below), has to do with pretty printing of the xml sent to the server. I removed all the new lines and trimmed the lines, and the report worked fine. java.lang.NullPointerException at org.jfree.report.JFreeReport.setDataFactory(JFreeReport.java:356) at org.jfree.report.modules.parser.ext.readhandlers.ReportConfigReadHandler.doneParsing(ReportConfigReadHandler.java:121) at org.jfree.xmlns.parser.AbstractXmlReadHandler.endElement(AbstractXmlReadHandler.java:161) at org.jfree.xmlns.parser.RootXmlReadHandler.endElement(RootXmlReadHandler.java:513) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jfree.xmlns.parser.AbstractXmlResourceFactory.create(AbstractXmlResourceFactory.java:200) at org.jfree.resourceloader.ResourceManager.performCreate(ResourceManager.java:387) at org.jfree.resourceloader.ResourceManager.create(ResourceManager.java:316) at org.jfree.resourceloader.ResourceManager.create(ResourceManager.java:258) at org.jfree.report.modules.parser.base.ReportGenerator.parseReport(ReportGenerator.java:351) at org.pentaho.plugin.jfreereport.components.JFreeReportLoadComponent.parseReport(JFreeReportLoadComponent.java:301) at org.pentaho.plugin.jfreereport.components.JFreeReportLoadComponent.executeAction(JFreeReportLoadComponent.java:140) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeReportAction(JFreeReportComponent.java:158) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeAction(JFreeReportComponent.java:135) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.core.runtime.RuntimeContextBase.executeComponent(RuntimeContextBase.java:1096) at org.pentaho.core.runtime.RuntimeContextBase.executeAction(RuntimeContextBase.java:1070) at org.pentaho.core.runtime.RuntimeContextBase.performActions(RuntimeContextBase.java:985) at org.pentaho.core.runtime.RuntimeContextBase.executeLoop(RuntimeContextBase.java:941) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:846) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:753) at org.pentaho.core.solution.SolutionEngineBase.executeInternal(SolutionEngineBase.java:298) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:232) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:164) at org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:58) at org.pentaho.core.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:149) at org.pentaho.ui.servlet.ViewAction.handleActionRequest(ViewAction.java:133) at org.pentaho.ui.servlet.ViewAction.doGet(ViewAction.java:223) java.lang.IllegalStateException: There is no layout manager defined for that band. at org.jfree.report.layout.BandLayoutManagerUtil.getLayoutManager(BandLayoutManagerUtil.java:68) at org.jfree.report.layout.BandLayoutManagerUtil.doLayout(BandLayoutManagerUtil.java:157) at org.jfree.report.modules.output.table.base.TableWriter.doLayout(TableWriter.java:474) at org.jfree.report.modules.output.table.base.TableWriter.print(TableWriter.java:350) at org.jfree.report.modules.output.support.pagelayout.SimplePageLayoutDelegate.pageStarted(SimplePageLayoutDelegate.java:407) at org.jfree.report.modules.output.table.base.TableWriter.pageStarted(TableWriter.java:698) at org.jfree.report.states.LayoutProcess.firePageStartedEvent(LayoutProcess.java:448) at org.jfree.report.states.LayoutProcess.fireReportEvent(LayoutProcess.java:208) at org.jfree.report.states.ReportState.firePageStartedEvent(ReportState.java:736) at org.jfree.report.modules.output.table.base.TableWriter.restartPage(TableWriter.java:583) at org.jfree.report.modules.output.table.base.TableWriter.reportInitialized(TableWriter.java:903) at org.jfree.report.states.LayoutProcess.fireReportInitializedEvent(LayoutProcess.java:431) at org.jfree.report.states.LayoutProcess.fireReportEvent(LayoutProcess.java:253) at org.jfree.report.states.ReportState.fireReportInitializedEvent(ReportState.java:678) at org.jfree.report.states.StartState.advance(StartState.java:112) at org.jfree.report.modules.output.table.base.TableProcessor.repaginate(TableProcessor.java:367) at org.jfree.report.modules.output.table.base.TableProcessor.processReport(TableProcessor.java:501) at org.pentaho.plugin.jfreereport.outputs.JFreeReportHtmlComponent.performExport(JFreeReportHtmlComponent.java:98) at org.pentaho.plugin.jfreereport.outputs.AbstractGenerateStreamContentComponent.performExport(AbstractGenerateStreamContentComponent.java:70) at org.pentaho.plugin.jfreereport.outputs.AbstractGenerateContentComponent.executeAction(AbstractGenerateContentComponent.java:146) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.plugin.jfreereport.outputs.JFreeReportAllContentComponent.executeAction(JFreeReportAllContentComponent.java:45) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeReportAction(JFreeReportComponent.java:204) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeAction(JFreeReportComponent.java:135) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.core.runtime.RuntimeContextBase.executeComponent(RuntimeContextBase.java:1096) at org.pentaho.core.runtime.RuntimeContextBase.executeAction(RuntimeContextBase.java:1070) at org.pentaho.core.runtime.RuntimeContextBase.performActions(RuntimeContextBase.java:985) at org.pentaho.core.runtime.RuntimeContextBase.executeLoop(RuntimeContextBase.java:941) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:846) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:753) at org.pentaho.core.solution.SolutionEngineBase.executeInternal(SolutionEngineBase.java:298) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:232) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:164) at org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:58) at org.pentaho.core.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:149) at org.pentaho.ui.servlet.ViewAction.handleActionRequest(ViewAction.java:133) at org.pentaho.ui.servlet.ViewAction.doGet(ViewAction.java:223)

    Pentaho BI Platform Tracking | 10 years ago | Will Gorman
    java.lang.NullPointerException
  2. 0

    There are two errors when publishing a report. The first error is a null pointer coming out of jfree report (see below). This error is due to the "<data-factory/>" tag. When removed, another error appears. The second error, no manager found for band (second exceptio below), has to do with pretty printing of the xml sent to the server. I removed all the new lines and trimmed the lines, and the report worked fine. java.lang.NullPointerException at org.jfree.report.JFreeReport.setDataFactory(JFreeReport.java:356) at org.jfree.report.modules.parser.ext.readhandlers.ReportConfigReadHandler.doneParsing(ReportConfigReadHandler.java:121) at org.jfree.xmlns.parser.AbstractXmlReadHandler.endElement(AbstractXmlReadHandler.java:161) at org.jfree.xmlns.parser.RootXmlReadHandler.endElement(RootXmlReadHandler.java:513) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jfree.xmlns.parser.AbstractXmlResourceFactory.create(AbstractXmlResourceFactory.java:200) at org.jfree.resourceloader.ResourceManager.performCreate(ResourceManager.java:387) at org.jfree.resourceloader.ResourceManager.create(ResourceManager.java:316) at org.jfree.resourceloader.ResourceManager.create(ResourceManager.java:258) at org.jfree.report.modules.parser.base.ReportGenerator.parseReport(ReportGenerator.java:351) at org.pentaho.plugin.jfreereport.components.JFreeReportLoadComponent.parseReport(JFreeReportLoadComponent.java:301) at org.pentaho.plugin.jfreereport.components.JFreeReportLoadComponent.executeAction(JFreeReportLoadComponent.java:140) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeReportAction(JFreeReportComponent.java:158) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeAction(JFreeReportComponent.java:135) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.core.runtime.RuntimeContextBase.executeComponent(RuntimeContextBase.java:1096) at org.pentaho.core.runtime.RuntimeContextBase.executeAction(RuntimeContextBase.java:1070) at org.pentaho.core.runtime.RuntimeContextBase.performActions(RuntimeContextBase.java:985) at org.pentaho.core.runtime.RuntimeContextBase.executeLoop(RuntimeContextBase.java:941) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:846) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:753) at org.pentaho.core.solution.SolutionEngineBase.executeInternal(SolutionEngineBase.java:298) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:232) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:164) at org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:58) at org.pentaho.core.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:149) at org.pentaho.ui.servlet.ViewAction.handleActionRequest(ViewAction.java:133) at org.pentaho.ui.servlet.ViewAction.doGet(ViewAction.java:223) java.lang.IllegalStateException: There is no layout manager defined for that band. at org.jfree.report.layout.BandLayoutManagerUtil.getLayoutManager(BandLayoutManagerUtil.java:68) at org.jfree.report.layout.BandLayoutManagerUtil.doLayout(BandLayoutManagerUtil.java:157) at org.jfree.report.modules.output.table.base.TableWriter.doLayout(TableWriter.java:474) at org.jfree.report.modules.output.table.base.TableWriter.print(TableWriter.java:350) at org.jfree.report.modules.output.support.pagelayout.SimplePageLayoutDelegate.pageStarted(SimplePageLayoutDelegate.java:407) at org.jfree.report.modules.output.table.base.TableWriter.pageStarted(TableWriter.java:698) at org.jfree.report.states.LayoutProcess.firePageStartedEvent(LayoutProcess.java:448) at org.jfree.report.states.LayoutProcess.fireReportEvent(LayoutProcess.java:208) at org.jfree.report.states.ReportState.firePageStartedEvent(ReportState.java:736) at org.jfree.report.modules.output.table.base.TableWriter.restartPage(TableWriter.java:583) at org.jfree.report.modules.output.table.base.TableWriter.reportInitialized(TableWriter.java:903) at org.jfree.report.states.LayoutProcess.fireReportInitializedEvent(LayoutProcess.java:431) at org.jfree.report.states.LayoutProcess.fireReportEvent(LayoutProcess.java:253) at org.jfree.report.states.ReportState.fireReportInitializedEvent(ReportState.java:678) at org.jfree.report.states.StartState.advance(StartState.java:112) at org.jfree.report.modules.output.table.base.TableProcessor.repaginate(TableProcessor.java:367) at org.jfree.report.modules.output.table.base.TableProcessor.processReport(TableProcessor.java:501) at org.pentaho.plugin.jfreereport.outputs.JFreeReportHtmlComponent.performExport(JFreeReportHtmlComponent.java:98) at org.pentaho.plugin.jfreereport.outputs.AbstractGenerateStreamContentComponent.performExport(AbstractGenerateStreamContentComponent.java:70) at org.pentaho.plugin.jfreereport.outputs.AbstractGenerateContentComponent.executeAction(AbstractGenerateContentComponent.java:146) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.plugin.jfreereport.outputs.JFreeReportAllContentComponent.executeAction(JFreeReportAllContentComponent.java:45) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeReportAction(JFreeReportComponent.java:204) at org.pentaho.plugin.jfreereport.JFreeReportComponent.executeAction(JFreeReportComponent.java:135) at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436) at org.pentaho.core.runtime.RuntimeContextBase.executeComponent(RuntimeContextBase.java:1096) at org.pentaho.core.runtime.RuntimeContextBase.executeAction(RuntimeContextBase.java:1070) at org.pentaho.core.runtime.RuntimeContextBase.performActions(RuntimeContextBase.java:985) at org.pentaho.core.runtime.RuntimeContextBase.executeLoop(RuntimeContextBase.java:941) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:846) at org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:753) at org.pentaho.core.solution.SolutionEngineBase.executeInternal(SolutionEngineBase.java:298) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:232) at org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:164) at org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:58) at org.pentaho.core.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:149) at org.pentaho.ui.servlet.ViewAction.handleActionRequest(ViewAction.java:133) at org.pentaho.ui.servlet.ViewAction.doGet(ViewAction.java:223)

    Pentaho BI Platform Tracking | 10 years ago | Will Gorman
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jfree.report.JFreeReport.setDataFactory()
    2. org.jfree.report
      ReportConfigReadHandler.doneParsing
      1. org.jfree.report.JFreeReport.setDataFactory(JFreeReport.java:356)
      2. org.jfree.report.modules.parser.ext.readhandlers.ReportConfigReadHandler.doneParsing(ReportConfigReadHandler.java:121)
      2 frames
    3. org.jfree.xmlns
      RootXmlReadHandler.endElement
      1. org.jfree.xmlns.parser.AbstractXmlReadHandler.endElement(AbstractXmlReadHandler.java:161)
      2. org.jfree.xmlns.parser.RootXmlReadHandler.endElement(RootXmlReadHandler.java:513)
      2 frames
    4. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      9. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      9 frames
    5. org.jfree.xmlns
      AbstractXmlResourceFactory.create
      1. org.jfree.xmlns.parser.AbstractXmlResourceFactory.create(AbstractXmlResourceFactory.java:200)
      1 frame
    6. org.jfree.resourceloader
      ResourceManager.create
      1. org.jfree.resourceloader.ResourceManager.performCreate(ResourceManager.java:387)
      2. org.jfree.resourceloader.ResourceManager.create(ResourceManager.java:316)
      3. org.jfree.resourceloader.ResourceManager.create(ResourceManager.java:258)
      3 frames
    7. org.jfree.report
      ReportGenerator.parseReport
      1. org.jfree.report.modules.parser.base.ReportGenerator.parseReport(ReportGenerator.java:351)
      1 frame
    8. org.pentaho.plugin
      ComponentBase.execute
      1. org.pentaho.plugin.jfreereport.components.JFreeReportLoadComponent.parseReport(JFreeReportLoadComponent.java:301)
      2. org.pentaho.plugin.jfreereport.components.JFreeReportLoadComponent.executeAction(JFreeReportLoadComponent.java:140)
      3. org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436)
      4. org.pentaho.plugin.jfreereport.JFreeReportComponent.executeReportAction(JFreeReportComponent.java:158)
      5. org.pentaho.plugin.jfreereport.JFreeReportComponent.executeAction(JFreeReportComponent.java:135)
      6. org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436)
      6 frames
    9. org.pentaho.core
      BaseRequestHandler.handleActionRequest
      1. org.pentaho.core.runtime.RuntimeContextBase.executeComponent(RuntimeContextBase.java:1096)
      2. org.pentaho.core.runtime.RuntimeContextBase.executeAction(RuntimeContextBase.java:1070)
      3. org.pentaho.core.runtime.RuntimeContextBase.performActions(RuntimeContextBase.java:985)
      4. org.pentaho.core.runtime.RuntimeContextBase.executeLoop(RuntimeContextBase.java:941)
      5. org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:846)
      6. org.pentaho.core.runtime.RuntimeContextBase.executeSequence(RuntimeContextBase.java:753)
      7. org.pentaho.core.solution.SolutionEngineBase.executeInternal(SolutionEngineBase.java:298)
      8. org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:232)
      9. org.pentaho.core.solution.SolutionEngineBase.execute(SolutionEngineBase.java:164)
      10. org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:58)
      11. org.pentaho.core.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:149)
      11 frames
    10. org.pentaho.ui
      ViewAction.doGet
      1. org.pentaho.ui.servlet.ViewAction.handleActionRequest(ViewAction.java:133)
      2. org.pentaho.ui.servlet.ViewAction.doGet(ViewAction.java:223)
      2 frames