java.lang.IllegalStateException: There is no layout manager defined for that band.

Pentaho BI Platform Tracking | Will Gorman | 10 years ago
  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.IllegalStateException: There is no layout manager defined for that band.
  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.IllegalStateException: There is no layout manager defined for that band.
  3. 0
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").
  6. 0
    The cursor might not be initalized.

    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.IllegalStateException

      There is no layout manager defined for that band.

      at org.jfree.report.layout.BandLayoutManagerUtil.getLayoutManager()
    2. org.jfree.report
      TableProcessor.processReport
      1. org.jfree.report.layout.BandLayoutManagerUtil.getLayoutManager(BandLayoutManagerUtil.java:68)
      2. org.jfree.report.layout.BandLayoutManagerUtil.doLayout(BandLayoutManagerUtil.java:157)
      3. org.jfree.report.modules.output.table.base.TableWriter.doLayout(TableWriter.java:474)
      4. org.jfree.report.modules.output.table.base.TableWriter.print(TableWriter.java:350)
      5. org.jfree.report.modules.output.support.pagelayout.SimplePageLayoutDelegate.pageStarted(SimplePageLayoutDelegate.java:407)
      6. org.jfree.report.modules.output.table.base.TableWriter.pageStarted(TableWriter.java:698)
      7. org.jfree.report.states.LayoutProcess.firePageStartedEvent(LayoutProcess.java:448)
      8. org.jfree.report.states.LayoutProcess.fireReportEvent(LayoutProcess.java:208)
      9. org.jfree.report.states.ReportState.firePageStartedEvent(ReportState.java:736)
      10. org.jfree.report.modules.output.table.base.TableWriter.restartPage(TableWriter.java:583)
      11. org.jfree.report.modules.output.table.base.TableWriter.reportInitialized(TableWriter.java:903)
      12. org.jfree.report.states.LayoutProcess.fireReportInitializedEvent(LayoutProcess.java:431)
      13. org.jfree.report.states.LayoutProcess.fireReportEvent(LayoutProcess.java:253)
      14. org.jfree.report.states.ReportState.fireReportInitializedEvent(ReportState.java:678)
      15. org.jfree.report.states.StartState.advance(StartState.java:112)
      16. org.jfree.report.modules.output.table.base.TableProcessor.repaginate(TableProcessor.java:367)
      17. org.jfree.report.modules.output.table.base.TableProcessor.processReport(TableProcessor.java:501)
      17 frames
    3. org.pentaho.plugin
      ComponentBase.execute
      1. org.pentaho.plugin.jfreereport.outputs.JFreeReportHtmlComponent.performExport(JFreeReportHtmlComponent.java:98)
      2. org.pentaho.plugin.jfreereport.outputs.AbstractGenerateStreamContentComponent.performExport(AbstractGenerateStreamContentComponent.java:70)
      3. org.pentaho.plugin.jfreereport.outputs.AbstractGenerateContentComponent.executeAction(AbstractGenerateContentComponent.java:146)
      4. org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436)
      5. org.pentaho.plugin.jfreereport.outputs.JFreeReportAllContentComponent.executeAction(JFreeReportAllContentComponent.java:45)
      6. org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436)
      7. org.pentaho.plugin.jfreereport.JFreeReportComponent.executeReportAction(JFreeReportComponent.java:204)
      8. org.pentaho.plugin.jfreereport.JFreeReportComponent.executeAction(JFreeReportComponent.java:135)
      9. org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:436)
      9 frames
    4. 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
    5. 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