java.lang.ClassCastException: org.pentaho.reportdesigner.crm.report.model.LineReportElement

Pentaho BI Platform Tracking | Jared Pshedesky | 8 years ago
  1. 0

    Create a bunch of text fields on the design view. Create a line element. Select all the elements on the view and use the FontColor toolbar button to assign a font color. You will get a ClassCastException like the one below. The toolbar buttons should become inactive if there are any elements in a selection upon which they cannot operate (the same as if they were the only element in the selection). Optionally, they can remain active, but the elements that are ineligible to be operated on in this way should be filtered out behind the scenes so we don't get the exception. java.lang.ClassCastException: org.pentaho.reportdesigner.crm.report.model.LineReportElement at org.pentaho.reportdesigner.crm.report.commands.FontColorCommand$2.actionPerformed(FontColorCommand.java:237) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5517) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Pentaho BI Platform Tracking | 8 years ago | Jared Pshedesky
    java.lang.ClassCastException: org.pentaho.reportdesigner.crm.report.model.LineReportElement
  2. 0

    Create a bunch of text fields on the design view. Create a line element. Select all the elements on the view and use the FontColor toolbar button to assign a font color. You will get a ClassCastException like the one below. The toolbar buttons should become inactive if there are any elements in a selection upon which they cannot operate (the same as if they were the only element in the selection). Optionally, they can remain active, but the elements that are ineligible to be operated on in this way should be filtered out behind the scenes so we don't get the exception. java.lang.ClassCastException: org.pentaho.reportdesigner.crm.report.model.LineReportElement at org.pentaho.reportdesigner.crm.report.commands.FontColorCommand$2.actionPerformed(FontColorCommand.java:237) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5517) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Pentaho BI Platform Tracking | 8 years ago | Jared Pshedesky
    java.lang.ClassCastException: org.pentaho.reportdesigner.crm.report.model.LineReportElement
  3. 0

    JaxB cannot be cast to java.lang.Integer

    Stack Overflow | 4 years ago | Rodrigo
    java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to java.lang.Integer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    app crashes when i change the order of my XML RelativeLayout android

    Stack Overflow | 4 years ago | Aaron Russell
    java.lang.ClassCastException: android.widget.ImageView
  6. 0

    Fragment Activity in tabhost "cannot be cast to android.support.v4.app.Fragment"

    Stack Overflow | 4 years ago | Aoyama Nanami
    java.lang.ClassCastException: id.co.ajsmsig.epolicy.LoginActivity cannot be cast to android.support.v4.app.Fragment

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

      org.pentaho.reportdesigner.crm.report.model.LineReportElement

      at org.pentaho.reportdesigner.crm.report.commands.FontColorCommand$2.actionPerformed()
    2. org.pentaho.reportdesigner
      FontColorCommand$2.actionPerformed
      1. org.pentaho.reportdesigner.crm.report.commands.FontColorCommand$2.actionPerformed(FontColorCommand.java:237)
      1 frame
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
      7. java.awt.Component.processMouseEvent(Component.java:5517)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
      9. java.awt.Component.processEvent(Component.java:5282)
      10. java.awt.Container.processEvent(Container.java:1966)
      11. java.awt.Component.dispatchEventImpl(Component.java:3984)
      12. java.awt.Container.dispatchEventImpl(Container.java:2024)
      13. java.awt.Component.dispatchEvent(Component.java:3819)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
      17. java.awt.Container.dispatchEventImpl(Container.java:2010)
      18. java.awt.Window.dispatchEventImpl(Window.java:1791)
      19. java.awt.Component.dispatchEvent(Component.java:3819)
      20. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      21. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      22. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      25. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      25 frames