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.
[020421] 1. Invoke New Class Wizard 2. Set the name "Foo", push next 3. Set "java.awt.Component" as a super class 4. push next, next, next ... 5. Step 5, Override inherited methods: push Add All push Generate Super Calls -> java.lang.IndexOutOfBoundsException is "sometimes" thrown Tue Apr 23 10:16:22 CEST 2002: java.lang.IndexOutOfBoundsException: Posted StackTrace Annotation: Exception occurred in Request Processor Nested annotation: Index: 173, Size: 173 org.openide.util.RequestProcessor$Holder: Posted StackTrace(task org.openide.explorer.ExplorerManager$Listener@8 fac5f [-8863, 1, -1]) at org.openide.util.RequestProcessor$Holder.fillIn StackTrace(RequestProcessor.java:300) at java.lang.Throwable.<init> (Throwable.java:195) at java.lang.Exception.<init> (Exception.java:41) at org.openide.util.RequestProcessor$Holder.<init> (RequestProcessor.java:280) at org.openide.util.RequestProcessor$Task.createHo lder(RequestProcessor.java:333) at org.openide.util.RequestProcessor$Task.schedule (RequestProcessor.java:357) at org.openide.explorer.ExplorerManager$Listener.s cheduleRemove(ExplorerManager.java:714) at org.openide.explorer.ExplorerManager$Listener.n odeDestroyed(ExplorerManager.java:686) at org.openide.util.WeakListener$Node.nodeDestroye d(WeakListener.java:653) at org.openide.nodes.Node.fireNodeDestroyed (Node.java:671) at org.openide.nodes.Children$Keys.destroyNodes (Children.java:1771) at org.openide.nodes.Children$Keys.notifyRemove (Children.java:1779) at org.openide.nodes.Children.updateRemove (Children.java:560) at org.openide.nodes.Children.setEntries (Children.java:514) at org.openide.nodes.Children$3.run (Children.java:1719) at org.openide.util.Mutex.postRequest (Mutex.java:860) at org.openide.util.Mutex.postWriteRequest (Mutex.java:363) at org.openide.nodes.Children$Keys.applyKeys (Children.java:1727) at org.openide.nodes.Children$Keys.setKeys (Children.java:1686) at org.netbeans.modules.java.ui.wizard.Inheritance Children$OverridenMethods.refreshKeys (InheritanceChildren.java:263) at org.netbeans.modules.java.ui.wizard.Inheritance Children$OverridenMethods.propertyChange (InheritanceChildren.java:268) at java.beans.PropertyChangeSupport.firePropertyCh ange(PropertyChangeSupport.java:252) at org.openide.src.Element$Memory.firePropertyChan ge(Element.java:352) at org.openide.src.MemoryCollection.change (MemoryCollection.java:188) at org.openide.src.MemoryCollection.change (MemoryCollection.java:112) at org.openide.src.ClassElement$Memory.changeMetho ds(ClassElement.java:1415) at org.openide.src.ClassElement.removeMethod (ClassElement.java:464) at org.netbeans.modules.java.ui.wizard.OverridePan el.undoOverrideMethods(OverridePanel.java:357) at org.netbeans.modules.java.ui.wizard.OverridePan el.superCheckBoxActionPerformed (OverridePanel.java:297) at org.netbeans.modules.java.ui.wizard.OverridePan el.access$500(OverridePanel.java:30) at org.netbeans.modules.java.ui.wizard.OverridePan el$3.actionPerformed(OverridePanel.java:204) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1767) at javax.swing.AbstractButton$ForwardActionEvents. actionPerformed(AbstractButton.java:1820) at javax.swing.DefaultButtonModel.fireActionPerfor med(DefaultButtonModel.java:419) at javax.swing.JToggleButton$ToggleButtonModel.set Pressed(JToggleButton.java:273) at javax.swing.plaf.basic.BasicButtonListener.mous eReleased(BasicButtonListener.java:258) [catch] at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java:227) at java.awt.Component.processMouseEvent (Component.java:5021) at java.awt.Component.processEvent (Component.java:4818) at java.awt.Container.processEvent (Container.java:1380) at java.awt.Component.dispatchEventImpl (Component.java:3526) at java.awt.Container.dispatchEventImpl (Container.java:1437) at java.awt.Component.dispatchEvent (Component.java:3367) at java.awt.LightweightDispatcher.retargetMouseEve nt(Container.java:3214) at java.awt.LightweightDispatcher.processMouseEven t(Container.java:2929) at java.awt.LightweightDispatcher.dispatchEvent (Container.java:2859) at java.awt.Container.dispatchEventImpl (Container.java:1423) at java.awt.Window.dispatchEventImpl (Window.java:1566) at java.awt.Component.dispatchEvent (Component.java:3367) at java.awt.EventQueue.dispatchEvent (EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHie rarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHiera rchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEventsForHiera rchy(EventDispatchThread.java:134) at java.awt.Dialog.show (Dialog.java:524) at org.netbeans.core.NbPresenter.superShow (NbPresenter.java:672) at org.netbeans.core.NbPresenter.run (NbPresenter.java:695) at org.openide.util.Mutex.doEventAccess (Mutex.java:917) at org.openide.util.Mutex.readAccess (Mutex.java:162) at org.netbeans.core.NbPresenter.show (NbPresenter.java:676) at org.openide.loaders.TemplateWizard.instantiateI mpl(TemplateWizard.java:493) at org.openide.loaders.TemplateWizard.instantiate (TemplateWizard.java:426) at org.openide.actions.NewTemplateAction$TemplateA ctionListener.acceptNodes (NewTemplateAction.java:257) at org.openide.explorer.view.MenuView$MenuItem.doC lick(MenuView.java:504) at javax.swing.plaf.basic.BasicMenuItemUI.doClick (BasicMenuItemUI.java:1092) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInp utHandler.mouseReleased (BasicMenuItemUI.java:932) at java.awt.Component.processMouseEvent (Component.java:5021) at java.awt.Component.processEvent (Component.java:4818) at java.awt.Container.processEvent (Container.java:1380) at java.awt.Component.dispatchEventImpl (Component.java:3526) at java.awt.Container.dispatchEventImpl (Container.java:1437) at java.awt.Component.dispatchEvent (Component.java:3367) at java.awt.LightweightDispatcher.retargetMouseEve nt(Container.java:3214) at java.awt.LightweightDispatcher.processMouseEven t(Container.java:2929) at java.awt.LightweightDispatcher.dispatchEvent (Container.java:2859) at java.awt.Container.dispatchEventImpl (Container.java:1423) at java.awt.Window.dispatchEventImpl (Window.java:1566) at java.awt.Component.dispatchEvent (Component.java:3367) at java.awt.EventQueue.dispatchEvent (EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHie rarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHiera rchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:130) at java.awt.EventDispatchThread.run (EventDispatchThread.java:98) Tue Apr 23 10:16:23 CEST 2002: java.lang.IndexOutOfBoundsException: Index: 173, Size: 173 java.lang.IndexOutOfBoundsException: Index: 173, Size: 173 at java.util.LinkedList.entry (LinkedList.java:356) at java.util.LinkedList.get (LinkedList.java:299) at org.openide.explorer.view.VisualizerNode.getChi ldAt(VisualizerNode.java:175) at org.openide.explorer.view.NodeListModel.findEle mentAt(NodeListModel.java:233) at org.openide.explorer.view.NodeListModel.getElem entAt(NodeListModel.java:147) at javax.swing.plaf.basic.BasicListUI.updateLayout State(BasicListUI.java:1146) at javax.swing.plaf.basic.BasicListUI.maybeUpdateL ayoutState(BasicListUI.java:1097) at javax.swing.plaf.basic.BasicListUI$ListSelectio nHandler.valueChanged(BasicListUI.java:1465) at javax.swing.DefaultListSelectionModel.fireValue Changed(DefaultListSelectionModel.java:187) at javax.swing.DefaultListSelectionModel.fireValue Changed(DefaultListSelectionModel.java:167) at javax.swing.DefaultListSelectionModel.fireValue Changed(DefaultListSelectionModel.java:214) at javax.swing.DefaultListSelectionModel.changeSel ection(DefaultListSelectionModel.java:402) at javax.swing.DefaultListSelectionModel.changeSel ection(DefaultListSelectionModel.java:411) at javax.swing.DefaultListSelectionModel.addSelect ionInterval(DefaultListSelectionModel.java:456) at javax.swing.JList.setSelectedIndices (JList.java:1744) at org.openide.explorer.view.ListView.showSelectio n(ListView.java:393) at org.openide.explorer.view.ListView.updateSelect ion(ListView.java:488) at org.openide.explorer.view.ListView.access$100 (ListView.java:49) at org.openide.explorer.view.ListView$Listener.pro pertyChange(ListView.java:709) at org.openide.util.WeakListener$PropertyChange.pr opertyChange(WeakListener.java:325) at java.beans.PropertyChangeSupport.firePropertyCh ange(PropertyChangeSupport.java:252) at org.openide.explorer.ExplorerManager.setSelecte dNodes(ExplorerManager.java:204) at org.netbeans.modules.java.ui.wizard.OverridePan el.updateButtons(OverridePanel.java:411) at org.netbeans.modules.java.ui.wizard.OverridePan el.access$1000(OverridePanel.java:30) at org.netbeans.modules.java.ui.wizard.OverridePan el$8.propertyChange(OverridePanel.java:467) at java.beans.PropertyChangeSupport.firePropertyCh ange(PropertyChangeSupport.java:252) at org.openide.explorer.ExplorerManager.setSelecte dNodes(ExplorerManager.java:204) at org.openide.explorer.ExplorerManager.setSelecte dNodes0(ExplorerManager.java:298) at org.openide.explorer.ExplorerManager$Listener.r un(ExplorerManager.java:731) at org.openide.util.Task.run (Task.java:152) [catch] at org.openide.util.RequestProcessor$ProcessorThre ad.run(RequestProcessor.java:622)
*please* make attachments, rather than inline thread dumps or stacktraces :-( It's terrible to read the report when the browser wraps all lines.
Created attachment 5606 [details] OK OK. Once again - stack trace
Thrown from explorer.ListView's selection update, or NodeListModel
[Jun 03 dev3.4] I'm not able reproduce it on many attempts maybe it's fixed maybe not. Jan, could you try reproduce on any recent builds and optionally add any extra steps which I miss. Thanks.
I'm not able to reproduce IndexOutOfBoundsException, but now java.lang.IllegalArgumentException is thrown.
Created attachment 6044 [details] IllegalArgumentException
[Jun 05 dev3.4] I can reproduce it, IndexOutOfBoundsException was thrown.
Set target milestone to TBD
*** Issue 30143 has been marked as a duplicate of this issue. ***
[Feb 19 dev] I'm not able to reproduce it, it's random, won't be solved in 3.5
Supected panel in NewTemplateWizard is not part of "New Class" wizard => don't need fix.
closed