java.lang.IllegalStateException: A newly inserted section must have a parent.

Pentaho BI Platform Tracking | Ingo Klose | 6 years ago
  1. 0

    In trunk version (3.7 seems to work fine) copy & past of elements between reporst is broken. To reproduce open a existing report and then try to copy lables or other elements into a new report. This is the exception that I got: java.lang.IllegalStateException: A newly inserted section must have a parent. at org.pentaho.reporting.designer.core.actions.global.PasteAction.actionPerformed(PasteAction.java:167) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Sorry, can't provide a build number since I can't find it anywhere in PRD

    Pentaho BI Platform Tracking | 6 years ago | Ingo Klose
    java.lang.IllegalStateException: A newly inserted section must have a parent.
  2. 0

    In trunk version (3.7 seems to work fine) copy & past of elements between reporst is broken. To reproduce open a existing report and then try to copy lables or other elements into a new report. This is the exception that I got: java.lang.IllegalStateException: A newly inserted section must have a parent. at org.pentaho.reporting.designer.core.actions.global.PasteAction.actionPerformed(PasteAction.java:167) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Sorry, can't provide a build number since I can't find it anywhere in PRD

    Pentaho BI Platform Tracking | 6 years ago | Ingo Klose
    java.lang.IllegalStateException: A newly inserted section must have a parent.
  3. 0

    After upgrade to SQ 5.2, background task throws IllegalStateException

    Google Groups | 1 year ago | Tyrel Haveman
    java.lang.IllegalStateException: Changeset must have a date
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why isn't my canvas working?

    Stack Overflow | 4 years ago | John Pringle
    java.lang.IllegalStateException: Component must have a valid peer
  6. 0

    java.lang.IllegalStateException when creating BufferStrategy

    Stack Overflow | 3 years ago | Andrew Kor
    java.lang.IllegalStateException: Component must have a valid peer

    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

      A newly inserted section must have a parent.

      at org.pentaho.reporting.designer.core.actions.global.PasteAction.actionPerformed()
    2. org.pentaho.reporting
      PasteAction.actionPerformed
      1. org.pentaho.reporting.designer.core.actions.global.PasteAction.actionPerformed(PasteAction.java:167)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      5. javax.swing.AbstractButton.doClick(AbstractButton.java:357)
      6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
      8. java.awt.Component.processMouseEvent(Component.java:6263)
      9. javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
      10. java.awt.Component.processEvent(Component.java:6028)
      11. java.awt.Container.processEvent(Container.java:2041)
      12. java.awt.Component.dispatchEventImpl(Component.java:4630)
      13. java.awt.Container.dispatchEventImpl(Container.java:2099)
      14. java.awt.Component.dispatchEvent(Component.java:4460)
      15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
      16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
      17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
      18. java.awt.Container.dispatchEventImpl(Container.java:2085)
      19. java.awt.Window.dispatchEventImpl(Window.java:2475)
      20. java.awt.Component.dispatchEvent(Component.java:4460)
      21. java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      22. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      23. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      24. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      25. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      26. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      27. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      27 frames