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

When double click in a table of contents shows an error message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 GA, Master
    • Fix Version/s: 8.0.0 GA
    • Component/s: None
    • Labels:
    • Environment:
      7.1 QAT 294
    • Story Points:
      0
    • 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.
    • Sprint Team:
      Tatooine (Maint)
    • Steps to Reproduce:
      Hide
      1. Open New Report Designer,
      2. Click on the report;
      3. In menu bar click Insert text Field,
      4. In the report click on the text-field word
      5. In the menu bar select Format --> Morph --> Table of contents,
      6. Double click in the table of contents
      Show
      Open New Report Designer, Click on the report; In menu bar click Insert text Field, In the report click on the text-field word In the menu bar select Format --> Morph --> Table of contents, Double click in the table of contents

      Description

      When selecting a table of contents in a new report when double click it shows the following error message:

      java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.extensions.toc.TocElement
      	at org.pentaho.reporting.designer.extensions.toc.TocReportElementInlineEditor.getElementCellEditorComponent(TocReportElementInlineEditor.java:48)
      	at org.pentaho.reporting.designer.core.editor.report.AbstractRenderComponent.installEditor(AbstractRenderComponent.java:1402)
      	at org.pentaho.reporting.designer.core.editor.report.AbstractRenderComponent$MouseEditorActionHandler.mouseClicked(AbstractRenderComponent.java:641)
      	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
      	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
      	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
      	at java.awt.Component.processMouseEvent(Component.java:6536)
      	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      	at java.awt.Component.processEvent(Component.java:6298)
      	at java.awt.Container.processEvent(Container.java:2236)
      	at java.awt.Component.dispatchEventImpl(Component.java:4889)
      	at java.awt.Container.dispatchEventImpl(Container.java:2294)
      	at java.awt.Component.dispatchEvent(Component.java:4711)
      	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
      	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      	at java.awt.Container.dispatchEventImpl(Container.java:2280)
      	at java.awt.Window.dispatchEventImpl(Window.java:2746)
      	at java.awt.Component.dispatchEvent(Component.java:4711)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      	at java.awt.EventQueue.access$500(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.awt.EventQueue$3.run(EventQueue.java:703)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
      	at java.awt.EventQueue$4.run(EventQueue.java:731)
      	at java.awt.EventQueue$4.run(EventQueue.java:729)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      
      

      Note: The same error message happen in 7.0. See the attaches.
      Note: It was not possible to save the file with the report mentioned above (It may be related with the issue above) it shows the error message:

      java.io.IOException: Save Failed
      	at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:172)
      	at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.saveReport(AbstractSaveReportAction.java:81)
      	at org.pentaho.reporting.designer.core.actions.report.AbstractSaveReportAction.actionPerformed(AbstractSaveReportAction.java:58)
      	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
      	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
      	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
      	at java.awt.Component.processMouseEvent(Component.java:6533)
      	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      	at java.awt.Component.processEvent(Component.java:6298)
      	at java.awt.Container.processEvent(Container.java:2236)
      	at java.awt.Component.dispatchEventImpl(Component.java:4889)
      	at java.awt.Container.dispatchEventImpl(Container.java:2294)
      	at java.awt.Component.dispatchEvent(Component.java:4711)
      	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
      	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      	at java.awt.Container.dispatchEventImpl(Container.java:2280)
      	at java.awt.Window.dispatchEventImpl(Window.java:2746)
      	at java.awt.Component.dispatchEvent(Component.java:4711)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      	at java.awt.EventQueue.access$500(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.awt.EventQueue$3.run(EventQueue.java:703)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
      	at java.awt.EventQueue$4.run(EventQueue.java:731)
      	at java.awt.EventQueue$4.run(EventQueue.java:729)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      Caused by: java.lang.ClassCastException: org.pentaho.reporting.engine.classic.core.Element cannot be cast to org.pentaho.reporting.engine.classic.extensions.toc.TocElement
      	at org.pentaho.reporting.engine.classic.extensions.toc.writer.TocElementWriteHandler.writeElement(TocElementWriteHandler.java:51)
      	at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.AbstractElementWriteHandler.writeChildElements(AbstractElementWriteHandler.java:477)
      	at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.GenericElementWriteHandler.writeElement(GenericElementWriteHandler.java:67)
      	at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.StyleFileWriter.writeReport(StyleFileWriter.java:147)
      	at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:117)
      	at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReport(BundleWriter.java:93)
      	at org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriter.writeReportToZipFile(BundleWriter.java:152)
      	at org.pentaho.reporting.designer.core.actions.report.SaveReportUtilities.saveReport(SaveReportUtilities.java:167)
      	... 40 more
      

      Note: This error also happens with other formats for example Index.

        Attachments

          Activity

            People

            Assignee:
            upihin Uladzimir Pihin (Inactive)
            Reporter:
            spires Sandra Pires (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: