This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : beta1 ] [ JDK VERSION : J2SE 1.5.0 ] When I select "override methods" in the editor (for a JPanel-derived class) the dialog stays in the "please wait" stage and doesn't show the list of functions (I only waited a few minutes). If I cancel and try again I get the following exception. The project is reasonably big (380 classes) java.lang.IllegalStateException: Cannot initialize 0th child of node org.openide.nodes.AbstractNode@3fab68[Name=, displayName=]; it already belongs to node org.openide.nodes.AbstractNode@1de9546[Name=, displayName=] at org.openide.nodes.Node.assignTo(Node.java:251) at org.openide.nodes.Children.justComputeNodes(Children.java:599) at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:54) at org.openide.nodes.Children.getNodes(Children.java:324) at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:179) at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode.java:218) at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java:168) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1461) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270) at javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:725) at javax.swing.tree.VariableHeightLayoutCache.treeStructureChanged(VariableHeightLayoutCache.java:626) at javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructureChanged(BasicTreeUI.java:3650) at javax.swing.tree.DefaultTreeModel.fireTreeStructureChanged(DefaultTreeModel.java:559) at javax.swing.tree.DefaultTreeModel.nodeStructureChanged(DefaultTreeModel.java:345) at javax.swing.tree.DefaultTreeModel.setRoot(DefaultTreeModel.java:117) at org.openide.explorer.view.NodeTreeModel$1.run(NodeTreeModel.java:67) at org.openide.util.Mutex.doEvent(Mutex.java:903) at org.openide.util.Mutex.readAccess(Mutex.java:227) at org.openide.explorer.view.NodeTreeModel.setNode(NodeTreeModel.java:54) at org.openide.explorer.view.TreeView.synchronizeRootContext(TreeView.java:646) at org.openide.explorer.view.TreeView.lookupExplorerManager(TreeView.java:493) at org.openide.explorer.view.TreeView.addNotify(TreeView.java:471) at java.awt.Container.addNotify(Container.java:2500) at javax.swing.JComponent.addNotify(JComponent.java:4436) at java.awt.Container.addNotify(Container.java:2500) at javax.swing.JComponent.addNotify(JComponent.java:4436) at org.netbeans.modules.java.tools.OverridePanel2.addNotify(OverridePanel2.java:213) at java.awt.Container.addNotify(Container.java:2500) at javax.swing.JComponent.addNotify(JComponent.java:4436) at java.awt.Container.addNotify(Container.java:2500) at javax.swing.JComponent.addNotify(JComponent.java:4436) at java.awt.Container.addNotify(Container.java:2500) at javax.swing.JComponent.addNotify(JComponent.java:4436) at javax.swing.JRootPane.addNotify(JRootPane.java:680) at java.awt.Container.addNotify(Container.java:2500) at java.awt.Window.addNotify(Window.java:458) at java.awt.Dialog.addNotify(Dialog.java:376) at org.netbeans.core.windows.services.NbPresenter.addNotify(NbPresenter.java:306) at java.awt.Window.pack(Window.java:476) at org.netbeans.core.windows.services.NbPresenter.initialize(NbPresenter.java:163) at org.netbeans.core.windows.services.NbPresenter.<init>(NbPresenter.java:104) at org.netbeans.core.windows.services.NbDialog.<init>(NbDialog.java:36) at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:68) at org.openide.util.Mutex.doEventAccess(Mutex.java:923) at org.openide.util.Mutex.readAccess(Mutex.java:158) at org.netbeans.core.windows.services.DialogDisplayerImpl.createDialog(DialogDisplayerImpl.java:51) at org.netbeans.modules.java.tools.OverrideAction.performAction(OverrideAction.java:71) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:438) 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:1000) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) 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) ------------------- In one particular class (uses Generics) I get this exception immediately: Annotation: Exception occurred in Request Processor java.lang.NullPointerException at org.netbeans.modules.java.tools.InheritanceSupport2.isOverriden(InheritanceSupport2.java:403) at org.netbeans.modules.java.tools.InheritanceSupport2.collectClassMethods(InheritanceSupport2.java:426) at org.netbeans.modules.java.tools.InheritanceSupport2.run(InheritanceSupport2.java:281) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686) ------------------- In some cases it works but if the class uses Generics it usually only displays the members from java.lang.Object
Dane, please evaluate. This looks like a duplicate of something and maybe it is already fixed by your rewrite.
Fixed by rewriting Override/Implement action to JMI.