linux-china / zookeeper-intellij

IntelliJ IDEA ZooKeeper Plugin
62 stars 36 forks source link

NPE & tree doesn't render #11

Open fsparv opened 9 years ago

fsparv commented 9 years ago

2014-12-11 16:50:19,772 [ 313270] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 13.1.6 Build #IU-135.1306 2014-12-11 16:50:19,772 [ 313270] ERROR - llij.ide.plugins.PluginManager - JDK: 1.6.0_65 2014-12-11 16:50:19,772 [ 313270] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM 2014-12-11 16:50:19,773 [ 313271] ERROR - llij.ide.plugins.PluginManager - Vendor: Apple Inc. 2014-12-11 16:50:19,773 [ 313271] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X 2014-12-11 16:50:19,773 [ 313271] ERROR - llij.ide.plugins.PluginManager - Last Action: ShowSettings 2014-12-11 16:50:19,775 [ 313273] ERROR - llij.ide.plugins.PluginManager - null java.lang.NullPointerException at org.mvnsearch.intellij.plugin.zookeeper.ui.ZkNode.getTooltip(ZkNode.java:101) at org.mvnsearch.intellij.plugin.zookeeper.ZkProjectComponent$1.getTreeCellRendererComponent(ZkProjectComponent.java:119) at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2718) at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:475) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1342) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getPreferredWidth(VariableHeightLayoutCache.java:1159) at javax.swing.tree.VariableHeightLayoutCache.getMaxNodeWidth(VariableHeightLayoutCache.java:990) at javax.swing.tree.VariableHeightLayoutCache.getPreferredWidth(VariableHeightLayoutCache.java:291) at javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize(BasicTreeUI.java:1821) at javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(BasicTreeUI.java:1924) at javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(BasicTreeUI.java:1912) at javax.swing.JComponent.getPreferredSize(JComponent.java:1642) at com.intellij.ui.treeStructure.Tree.getPreferredSize(Tree.java:813) at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769) at java.awt.Container.layout(Container.java:1420) at java.awt.Container.doLayout(Container.java:1409) at java.awt.Container.validateTree(Container.java:1506) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validateTree(Container.java:1512) at java.awt.Container.validate(Container.java:1479) at javax.swing.RepaintManager$2.run(RepaintManager.java:698) at javax.swing.RepaintManager$2.run(RepaintManager.java:696) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:695) at com.intellij.ide.IdeRepaintManager.validateInvalidComponents(IdeRepaintManager.java:114) at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1679) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:685) at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

fsparv commented 9 years ago

The plugin worked fine initially but once I closed the project and then came back to it after working on another the zookeeper plugin had disappeared. I disabled/enabled it and turned on checkboxes the window appeared, but empty and I got the above stack trace. I also tried turning off the tooltip and then I get a single node on the tree that says localhost:2181, and don't see any paths below it. When I click editNode on it I get a new stack trace:

java.lang.NullPointerException at org.mvnsearch.intellij.plugin.zookeeper.actions.OpenZkNodeInEditorAction.actionPerformed(OpenZkNodeInEditorAction.java:26) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:266) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:926) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:236) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:105) at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532) at java.awt.Component.processMouseEvent(Component.java:6414) at javax.swing.JComponent.processMouseEvent(JComponent.java:3275) at java.awt.Component.processEvent(Component.java:6179) at java.awt.Container.processEvent(Container.java:2084) at java.awt.Component.dispatchEventImpl(Component.java:4776) at java.awt.Container.dispatchEventImpl(Container.java:2142) at java.awt.Component.dispatchEvent(Component.java:4604) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209) at java.awt.Container.dispatchEventImpl(Container.java:2128) at java.awt.Window.dispatchEventImpl(Window.java:2492) at java.awt.Component.dispatchEvent(Component.java:4604) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97) at java.awt.EventQueue$3.run(EventQueue.java:690) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:687) at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

zouyaowen commented 4 years ago

I hava the same question,is there any solution?

zouyaowen commented 4 years ago

I guess the zookeeper version is too high