java.lang.NullPointerException

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.

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