java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap

Pentaho BI Platform Tracking | Ezequiel Cuellar | 4 years ago
  1. 0

    -Start PRD -Go to create a JDBC Data Source -Select the SampleData connection -Add a new the following query "select * from ORDERS" -Press OK You will get the following exception: java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap at org.pentaho.reporting.engine.classic.core.cache.DataCacheKey.makeReadOnly(DataCacheKey.java:76) at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.createCacheKey(CachingDataFactory.java:375) at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryData(CachingDataFactory.java:295) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.queryReportData(DesignTimeDataSchemaModel.java:384) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.buildDataSchema(DesignTimeDataSchemaModel.java:314) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.ensureDataSchemaValid(DesignTimeDataSchemaModel.java:243) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.getColumnNames(DesignTimeDataSchemaModel.java:448) at org.pentaho.reporting.designer.core.editor.fieldselector.FieldSelectorPanel.computeColumns(FieldSelectorPanel.java:133) at org.pentaho.reporting.designer.core.editor.fieldselector.FieldSelectorPanel$ReportModelChangeHandler.nodeChanged(FieldSelectorPanel.java:68) at org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.fireModelLayoutChanged(AbstractReportDefinition.java:1247) at org.pentaho.reporting.engine.classic.core.MasterReport.updateChangedFlagInternal(MasterReport.java:431) at org.pentaho.reporting.engine.classic.core.Element.notifyNodeChildAdded(Element.java:980) at org.pentaho.reporting.engine.classic.core.MasterReport.setDataFactory(MasterReport.java:318) at org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.addDataFactory(AddDataFactoryAction.java:140) at org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.actionPerformed(AddDataFactoryAction.java:94) 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:809) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.Component.processMouseEvent(Component.java:6290) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6055) at java.awt.Container.processEvent(Container.java:2039) at java.awt.Component.dispatchEventImpl(Component.java:4653) at java.awt.Container.dispatchEventImpl(Container.java:2097) at java.awt.Component.dispatchEvent(Component.java:4481) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166) at java.awt.Container.dispatchEventImpl(Container.java:2083) at java.awt.Window.dispatchEventImpl(Window.java:2482) at java.awt.Component.dispatchEvent(Component.java:4481) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648) at java.awt.EventQueue.access$000(EventQueue.java:84) at java.awt.EventQueue$1.run(EventQueue.java:607) at java.awt.EventQueue$1.run(EventQueue.java:605) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$2.run(EventQueue.java:621) at java.awt.EventQueue$2.run(EventQueue.java:619) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:618) 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)

    Pentaho BI Platform Tracking | 4 years ago | Ezequiel Cuellar
    java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap
  2. 0

    -Start PRD -Go to create a JDBC Data Source -Select the SampleData connection -Add a new the following query "select * from ORDERS" -Press OK You will get the following exception: java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap at org.pentaho.reporting.engine.classic.core.cache.DataCacheKey.makeReadOnly(DataCacheKey.java:76) at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.createCacheKey(CachingDataFactory.java:375) at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryData(CachingDataFactory.java:295) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.queryReportData(DesignTimeDataSchemaModel.java:384) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.buildDataSchema(DesignTimeDataSchemaModel.java:314) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.ensureDataSchemaValid(DesignTimeDataSchemaModel.java:243) at org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.getColumnNames(DesignTimeDataSchemaModel.java:448) at org.pentaho.reporting.designer.core.editor.fieldselector.FieldSelectorPanel.computeColumns(FieldSelectorPanel.java:133) at org.pentaho.reporting.designer.core.editor.fieldselector.FieldSelectorPanel$ReportModelChangeHandler.nodeChanged(FieldSelectorPanel.java:68) at org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.fireModelLayoutChanged(AbstractReportDefinition.java:1247) at org.pentaho.reporting.engine.classic.core.MasterReport.updateChangedFlagInternal(MasterReport.java:431) at org.pentaho.reporting.engine.classic.core.Element.notifyNodeChildAdded(Element.java:980) at org.pentaho.reporting.engine.classic.core.MasterReport.setDataFactory(MasterReport.java:318) at org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.addDataFactory(AddDataFactoryAction.java:140) at org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.actionPerformed(AddDataFactoryAction.java:94) 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:809) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.Component.processMouseEvent(Component.java:6290) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6055) at java.awt.Container.processEvent(Container.java:2039) at java.awt.Component.dispatchEventImpl(Component.java:4653) at java.awt.Container.dispatchEventImpl(Container.java:2097) at java.awt.Component.dispatchEvent(Component.java:4481) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166) at java.awt.Container.dispatchEventImpl(Container.java:2083) at java.awt.Window.dispatchEventImpl(Window.java:2482) at java.awt.Component.dispatchEvent(Component.java:4481) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648) at java.awt.EventQueue.access$000(EventQueue.java:84) at java.awt.EventQueue$1.run(EventQueue.java:607) at java.awt.EventQueue$1.run(EventQueue.java:605) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$2.run(EventQueue.java:621) at java.awt.EventQueue$2.run(EventQueue.java:619) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:618) 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)

    Pentaho BI Platform Tracking | 4 years ago | Ezequiel Cuellar
    java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap
  3. 0

    /feedbackSubmissionAdjustmentWorker is failing

    GitHub | 3 years ago | damithc
    java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.ClassCastException: while running web application in HEROKU

    Stack Overflow | 4 years ago | agaase
    java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap</p> <pre><code>*at org.apache.jsp.client.Page_jsp._jspService(org.apache.jsp.client.Page_jsp:185) ----- ----- -----
  6. 0

    Coder Wall: java.lang.ClassCastException: java.util.Collections$SynchronizedMap

    blogspot.com | 1 year ago
    java.lang.ClassCastException: java.util.Collections$SynchronizedMap cannot be cast to java.util.HashMap at .......org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)

    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

      java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap

      at org.pentaho.reporting.engine.classic.core.cache.DataCacheKey.makeReadOnly()
    2. org.pentaho.reporting
      AddDataFactoryAction.actionPerformed
      1. org.pentaho.reporting.engine.classic.core.cache.DataCacheKey.makeReadOnly(DataCacheKey.java:76)
      2. org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.createCacheKey(CachingDataFactory.java:375)
      3. org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryData(CachingDataFactory.java:295)
      4. org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.queryReportData(DesignTimeDataSchemaModel.java:384)
      5. org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.buildDataSchema(DesignTimeDataSchemaModel.java:314)
      6. org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.ensureDataSchemaValid(DesignTimeDataSchemaModel.java:243)
      7. org.pentaho.reporting.engine.classic.core.designtime.DesignTimeDataSchemaModel.getColumnNames(DesignTimeDataSchemaModel.java:448)
      8. org.pentaho.reporting.designer.core.editor.fieldselector.FieldSelectorPanel.computeColumns(FieldSelectorPanel.java:133)
      9. org.pentaho.reporting.designer.core.editor.fieldselector.FieldSelectorPanel$ReportModelChangeHandler.nodeChanged(FieldSelectorPanel.java:68)
      10. org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.fireModelLayoutChanged(AbstractReportDefinition.java:1247)
      11. org.pentaho.reporting.engine.classic.core.MasterReport.updateChangedFlagInternal(MasterReport.java:431)
      12. org.pentaho.reporting.engine.classic.core.Element.notifyNodeChildAdded(Element.java:980)
      13. org.pentaho.reporting.engine.classic.core.MasterReport.setDataFactory(MasterReport.java:318)
      14. org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.addDataFactory(AddDataFactoryAction.java:140)
      15. org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.actionPerformed(AddDataFactoryAction.java:94)
      15 frames
    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:809)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
      8. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
      9. java.awt.Component.processMouseEvent(Component.java:6290)
      10. javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
      11. java.awt.Component.processEvent(Component.java:6055)
      12. java.awt.Container.processEvent(Container.java:2039)
      13. java.awt.Component.dispatchEventImpl(Component.java:4653)
      14. java.awt.Container.dispatchEventImpl(Container.java:2097)
      15. java.awt.Component.dispatchEvent(Component.java:4481)
      16. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
      17. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
      18. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
      19. java.awt.Container.dispatchEventImpl(Container.java:2083)
      20. java.awt.Window.dispatchEventImpl(Window.java:2482)
      21. java.awt.Component.dispatchEvent(Component.java:4481)
      22. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
      23. java.awt.EventQueue.access$000(EventQueue.java:84)
      24. java.awt.EventQueue$1.run(EventQueue.java:607)
      25. java.awt.EventQueue$1.run(EventQueue.java:605)
      26. java.security.AccessController.doPrivileged(Native Method)
      27. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      28. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      29. java.awt.EventQueue$2.run(EventQueue.java:621)
      30. java.awt.EventQueue$2.run(EventQueue.java:619)
      31. java.security.AccessController.doPrivileged(Native Method)
      32. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      33. java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
      34. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      35. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      36. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      37. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      38. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      39. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      39 frames