Uploaded image for project: 'Pentaho Schema Workbench'
  1. Pentaho Schema Workbench
  2. PSW-236

Getting NullPointerException error when clicking on View > generic to add SQL

    XMLWordPrintable

    Details

    • 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

      Scenario 1
      1. Launch Schema Workbench
      2. Add new schema
      3. Add "Cube"
      4. Click "New Cube"
      5. Add "Dimension"
      6. Click "New Dimension 0"
      7. Click "New Hierarchy 0"
      8. Add View
      9. Click "generic" , exception is happened . I attached.
      10. Cannot operate correctly , for example , we cannot do right click.

      Scenario 2:
      1. Launch Schema Workbench
      2. Add new schema
      3. Add "Cube"
      4. Click "New Cube"
      5. Add "Dimension"
      6. Click "New Dimension 0"
      7. Click "New Hierarchy 0"
      8. Add View
      9. Right Click on View --> Select "Add SQL"
      10. Getting exception error in Window console
      11. Nothing works correctly after.

      Show
      Scenario 1 1. Launch Schema Workbench 2. Add new schema 3. Add "Cube" 4. Click "New Cube" 5. Add "Dimension" 6. Click "New Dimension 0" 7. Click "New Hierarchy 0" 8. Add View 9. Click "generic" , exception is happened . I attached. 10. Cannot operate correctly , for example , we cannot do right click. Scenario 2: 1. Launch Schema Workbench 2. Add new schema 3. Add "Cube" 4. Click "New Cube" 5. Add "Dimension" 6. Click "New Dimension 0" 7. Click "New Hierarchy 0" 8. Add View 9. Right Click on View --> Select "Add SQL" 10. Getting exception error in Window console 11. Nothing works correctly after.

      Description

      When following the steps above the user cannot add SQL to the View > Generic and the following stack trace is recorded:

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at mondrian.gui.MondrianGuiDef$View.equals(MondrianGuiDef.java:2418)
              at javax.swing.tree.TreePath.equals(TreePath.java:260)
              at java.util.Hashtable.get(Hashtable.java:366)
              at javax.swing.tree.VariableHeightLayoutCache.getMapping(VariableHeightLayoutCache.java:708)
              at javax.swing.tree.VariableHeightLayoutCache.getNodeForPath(VariableHeightLayoutCache.java:820)
              at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLayoutCache.java:978)
              at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:182)
              at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1696)
              at javax.swing.plaf.basic.BasicTreeUI$Handler.treeExpanded(BasicTreeUI.java:3805)
              at javax.swing.JTree.fireTreeExpanded(JTree.java:2764)
              at javax.swing.JTree.setExpandedState(JTree.java:3629)
              at javax.swing.JTree.expandPath(JTree.java:2212)
              at mondrian.gui.JTreeUpdater.update(JTreeUpdater.java:56)
              at mondrian.gui.SchemaExplorer.editingStopped(SchemaExplorer.java:4640)
              at mondrian.gui.SchemaPropertyCellEditor.fireEditingStopped(SchemaPropertyCellEditor.java:1267)
              at mondrian.gui.SchemaPropertyCellEditor.stopCellEditing(SchemaPropertyCellEditor.java:1259)
              at mondrian.gui.SchemaExplorer.valueChanged(SchemaExplorer.java:4088)
              at javax.swing.JTree.fireValueChanged(JTree.java:2927)
              at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3391)
              at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
              at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
              at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
              at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188)
              at javax.swing.JTree.setSelectionPath(JTree.java:1634)
              at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2393)
              at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3609)
              at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3548)
              at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
              at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
              at java.awt.Component.processMouseEvent(Component.java:6532)
              at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
              at java.awt.Component.processEvent(Component.java:6300)
              at java.awt.Container.processEvent(Container.java:2236)
              at java.awt.Component.dispatchEventImpl(Component.java:4891)
              at java.awt.Container.dispatchEventImpl(Container.java:2294)
              at java.awt.Component.dispatchEvent(Component.java:4713)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
              at java.awt.Container.dispatchEventImpl(Container.java:2280)
              at java.awt.Window.dispatchEventImpl(Window.java:2750)
              at java.awt.Component.dispatchEvent(Component.java:4713)
              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:76)
              at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
              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:76)
              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)
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at mondrian.gui.MondrianGuiDef$View.equals(MondrianGuiDef.java:2418)
              at javax.swing.tree.TreePath.equals(TreePath.java:260)
              at java.util.Hashtable.get(Hashtable.java:366)
              at javax.swing.JTree.hasBeenExpanded(JTree.java:1988)
              at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1190)
              at javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeUI.java:169)
              at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
              at javax.swing.JComponent.paintComponent(JComponent.java:780)
              at javax.swing.JComponent.paint(JComponent.java:1056)
              at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
              at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
              at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
              at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
              at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
              at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
              at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
              at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
              at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
              at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
              at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
              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:76)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
              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)
      

        Attachments

        1. 1.jpg
          1.jpg
          28 kB
        2. 2.jpg
          2.jpg
          37 kB
        3. 3.jpg
          3.jpg
          86 kB
        4. 4.jpg
          4.jpg
          96 kB
        5. 5.jpg
          5.jpg
          79 kB
        6. 6.jpg
          6.jpg
          110 kB
        7. 7.jpg
          7.jpg
          96 kB
        8. log.txt
          8 kB

          Activity

            People

            Assignee:
            AKarneichyk Alena Karneichyk (Inactive)
            Reporter:
            thuynh Thoa Huynh (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: