java.lang.NullPointerException

Pentaho BI Platform Tracking | Brian Hagan | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Schema workbench revision 11894 A schema is invalid due to a hierarchy without any levels. When loading the schema in schemaworkbench, the following stack trace appeared in the console: 14:51:03,625 ERROR [Workbench] Exception : Schema file C:\Documents and Settings\Brian\Desktop\test7.mondrian.xml is invalid.null java.lang.NullPointerException at mondrian.rolap.HierarchyUsage.init(HierarchyUsage.java:351) at mondrian.rolap.HierarchyUsage.<init>(HierarchyUsage.java:187) at mondrian.rolap.RolapCubeHierarchy.<init>(RolapCubeHierarchy.java:58) at mondrian.rolap.RolapCubeDimension.<init>(RolapCubeDimension.java:48) at mondrian.rolap.RolapCube.getOrCreateDimension(RolapCube.java:615) at mondrian.rolap.RolapCube.<init>(RolapCube.java:148) at mondrian.rolap.RolapCube.<init>(RolapCube.java:178) at mondrian.rolap.RolapSchema.load(RolapSchema.java:453) at mondrian.rolap.RolapSchema.load(RolapSchema.java:346) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:236) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:76) at mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:980) at mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:789) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:186) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:117) at mondrian.olap.DriverManager.getConnection(DriverManager.java:110) at mondrian.olap.DriverManager.getConnection(DriverManager.java:74) at mondrian.gui.Workbench.checkSchemaFile(Workbench.java:1609) at mondrian.gui.Workbench.openSchemaFrame(Workbench.java:1389) at mondrian.gui.Workbench.openMenuItemActionPerformed(Workbench.java:1533) at mondrian.gui.Workbench.access$600(Workbench.java:59) at mondrian.gui.Workbench$14.actionPerformed(Workbench.java:449) 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.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092) 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) I determined that the a hierarchy without any levels caused this to occur. The tools currently warns you that the hierarchy is invalid, but does not tell you why.

    Pentaho BI Platform Tracking | 8 years ago | Brian Hagan
    java.lang.NullPointerException
  2. 0

    Schema workbench revision 11894 A schema is invalid due to a hierarchy without any levels. When loading the schema in schemaworkbench, the following stack trace appeared in the console: 14:51:03,625 ERROR [Workbench] Exception : Schema file C:\Documents and Settings\Brian\Desktop\test7.mondrian.xml is invalid.null java.lang.NullPointerException at mondrian.rolap.HierarchyUsage.init(HierarchyUsage.java:351) at mondrian.rolap.HierarchyUsage.<init>(HierarchyUsage.java:187) at mondrian.rolap.RolapCubeHierarchy.<init>(RolapCubeHierarchy.java:58) at mondrian.rolap.RolapCubeDimension.<init>(RolapCubeDimension.java:48) at mondrian.rolap.RolapCube.getOrCreateDimension(RolapCube.java:615) at mondrian.rolap.RolapCube.<init>(RolapCube.java:148) at mondrian.rolap.RolapCube.<init>(RolapCube.java:178) at mondrian.rolap.RolapSchema.load(RolapSchema.java:453) at mondrian.rolap.RolapSchema.load(RolapSchema.java:346) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:236) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:76) at mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:980) at mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:789) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:186) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:117) at mondrian.olap.DriverManager.getConnection(DriverManager.java:110) at mondrian.olap.DriverManager.getConnection(DriverManager.java:74) at mondrian.gui.Workbench.checkSchemaFile(Workbench.java:1609) at mondrian.gui.Workbench.openSchemaFrame(Workbench.java:1389) at mondrian.gui.Workbench.openMenuItemActionPerformed(Workbench.java:1533) at mondrian.gui.Workbench.access$600(Workbench.java:59) at mondrian.gui.Workbench$14.actionPerformed(Workbench.java:449) 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.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092) 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) I determined that the a hierarchy without any levels caused this to occur. The tools currently warns you that the hierarchy is invalid, but does not tell you why.

    Pentaho BI Platform Tracking | 8 years ago | Brian Hagan
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at mondrian.rolap.HierarchyUsage.init()
    2. mondrian.rolap
      RolapConnection.<init>
      1. mondrian.rolap.HierarchyUsage.init(HierarchyUsage.java:351)
      2. mondrian.rolap.HierarchyUsage.<init>(HierarchyUsage.java:187)
      3. mondrian.rolap.RolapCubeHierarchy.<init>(RolapCubeHierarchy.java:58)
      4. mondrian.rolap.RolapCubeDimension.<init>(RolapCubeDimension.java:48)
      5. mondrian.rolap.RolapCube.getOrCreateDimension(RolapCube.java:615)
      6. mondrian.rolap.RolapCube.<init>(RolapCube.java:148)
      7. mondrian.rolap.RolapCube.<init>(RolapCube.java:178)
      8. mondrian.rolap.RolapSchema.load(RolapSchema.java:453)
      9. mondrian.rolap.RolapSchema.load(RolapSchema.java:346)
      10. mondrian.rolap.RolapSchema.<init>(RolapSchema.java:236)
      11. mondrian.rolap.RolapSchema.<init>(RolapSchema.java:76)
      12. mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:980)
      13. mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:789)
      14. mondrian.rolap.RolapConnection.<init>(RolapConnection.java:186)
      15. mondrian.rolap.RolapConnection.<init>(RolapConnection.java:117)
      15 frames
    3. mondrian.olap
      DriverManager.getConnection
      1. mondrian.olap.DriverManager.getConnection(DriverManager.java:110)
      2. mondrian.olap.DriverManager.getConnection(DriverManager.java:74)
      2 frames
    4. mondrian.gui
      Workbench$14.actionPerformed
      1. mondrian.gui.Workbench.checkSchemaFile(Workbench.java:1609)
      2. mondrian.gui.Workbench.openSchemaFrame(Workbench.java:1389)
      3. mondrian.gui.Workbench.openMenuItemActionPerformed(Workbench.java:1533)
      4. mondrian.gui.Workbench.access$600(Workbench.java:59)
      5. mondrian.gui.Workbench$14.actionPerformed(Workbench.java:449)
      5 frames
    5. 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.AbstractButton.doClick(AbstractButton.java:302)
      6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
      8. java.awt.Component.processMouseEvent(Component.java:5517)
      9. javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
      10. java.awt.Component.processEvent(Component.java:5282)
      11. java.awt.Container.processEvent(Container.java:1966)
      12. java.awt.Component.dispatchEventImpl(Component.java:3984)
      13. java.awt.Container.dispatchEventImpl(Container.java:2024)
      14. java.awt.Component.dispatchEvent(Component.java:3819)
      15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
      16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
      17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
      18. java.awt.Container.dispatchEventImpl(Container.java:2010)
      19. java.awt.Window.dispatchEventImpl(Window.java:1791)
      20. java.awt.Component.dispatchEvent(Component.java:3819)
      21. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      22. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      23. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      25. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      26. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      26 frames