Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-2259

Setting V-Align to Middle on a Row-Layouted band crashes the layouter

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.6.0
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Use the attached prpt.
      Go to the report footer. select the band and set layout to "row"
      From then on the UI is not refreashed correctly anymore.
      This is what is in the log:
      java.lang.IllegalArgumentException: Cannot shift upwards: -1000
      at org.pentaho.reporting.engine.classic.core.layout.process.CacheBoxShifter.shiftBox(CacheBoxShifter.java:45)
      at org.pentaho.reporting.engine.classic.core.layout.process.CanvasMajorAxisLayoutStep.computeRowHeightAndAlign(CanvasMajorAxisLayoutStep.java:457)
      at org.pentaho.reporting.engine.classic.core.layout.process.CanvasMajorAxisLayoutStep.startCanvasLevelBox(CanvasMajorAxisLayoutStep.java:497)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processCanvasLevelChild(IterateVisualProcessStep.java:146)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.startProcessing(IterateVisualProcessStep.java:55)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processBoxChilds(IterateVisualProcessStep.java:217)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processBlockLevelChild(IterateVisualProcessStep.java:200)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.startProcessing(IterateVisualProcessStep.java:51)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processBoxChilds(IterateVisualProcessStep.java:217)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processBlockLevelChild(IterateVisualProcessStep.java:200)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.startProcessing(IterateVisualProcessStep.java:51)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processBoxChilds(IterateVisualProcessStep.java:217)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.processBlockLevelChild(IterateVisualProcessStep.java:181)
      at org.pentaho.reporting.engine.classic.core.layout.process.IterateVisualProcessStep.startProcessing(IterateVisualProcessStep.java:44)
      at org.pentaho.reporting.engine.classic.core.layout.process.CanvasMajorAxisLayoutStep.compute(CanvasMajorAxisLayoutStep.java:62)
      at org.pentaho.reporting.engine.classic.core.layout.AbstractRenderer.processPage(AbstractRenderer.java:912)
      at org.pentaho.reporting.designer.core.editor.report.layouting.BandLayouter.doRootBandLayout(BandLayouter.java:222)
      at org.pentaho.reporting.designer.core.editor.report.layouting.BandLayouter.doLayout(BandLayouter.java:134)
      at org.pentaho.reporting.designer.core.editor.report.layouting.AbstractElementRenderer.performLayouting(AbstractElementRenderer.java:252)
      at org.pentaho.reporting.designer.core.editor.report.layouting.AbstractElementRenderer.getLayoutHeight(AbstractElementRenderer.java:222)
      at org.pentaho.reporting.designer.core.editor.report.lineal.VerticalLinealComponent.getPreferredSize(VerticalLinealComponent.java:657)
      at org.pentaho.reporting.designer.core.editor.report.lineal.VerticalLinealComponent.getMinimumSize(VerticalLinealComponent.java:644)
      at javax.swing.BoxLayout.checkRequests(Unknown Source)
      at javax.swing.BoxLayout.preferredLayoutSize(Unknown Source)
      at java.awt.Container.preferredSize(Unknown Source)
      at java.awt.Container.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
      at java.awt.Container.preferredSize(Unknown Source)
      at java.awt.Container.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
      at java.awt.Container.preferredSize(Unknown Source)
      at java.awt.Container.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
      at java.awt.Container.layout(Unknown Source)
      at java.awt.Container.doLayout(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validate(Unknown Source)
      at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      java.lang.NullPointerException
      at javax.swing.BoxLayout.preferredLayoutSize(Unknown Source)
      at java.awt.Container.preferredSize(Unknown Source)
      at java.awt.Container.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
      at java.awt.Container.preferredSize(Unknown Source)
      at java.awt.Container.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
      at java.awt.Container.preferredSize(Unknown Source)
      at java.awt.Container.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
      at java.awt.Container.layout(Unknown Source)
      at java.awt.Container.doLayout(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validate(Unknown Source)
      at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcruzada Kurtis Cruzada
                Reporter:
                begunrom gunter rombauts
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: