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 # : Beta 1 ] [ JDK VERSION : J2SE 1.5.0 ] I'm not pretty sure that this is a bug. But when I had a lot of programs (jvm's) running I ran out of virtual memory on my windows XP platform. I stoped the programs and shutdown netbeans. After that I changed my netbeans.conf -J-Xms128m parameter to -J-Xms25m. And then restarted netbeans. Since that I'm getting the ArrayIndexOutOfBoundsException every time I start netbeans. java.lang.ArrayIndexOutOfBoundsException: 3 at org.netbeans.modules.project.ui.PhysicalView.createNodesForProject(PhysicalView.java:114) at org.netbeans.modules.project.ui.ProjectsRootNode$ProjectChildren.createNodes(ProjectsRootNode.java:205) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1986) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:112) at org.openide.nodes.Children$Info.nodes(Children.java:1082) at org.openide.nodes.Children.justComputeNodes(Children.java:588) at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:54) at org.openide.nodes.Children.getNodes(Children.java:324) at org.openide.nodes.Children.findChild(Children.java:264) at org.openide.nodes.Children.getNodes(Children.java:380) at org.openide.explorer.view.TreeView$2.run(TreeView.java:733) 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)
Now I get it allways. Even after I've installed a new build [200408291800] But the stack trace has changed a bit: java.lang.ArrayIndexOutOfBoundsException: 3 at org.netbeans.modules.project.ui.PhysicalView.createNodesForProject(PhysicalView.java:114) at org.netbeans.modules.project.ui.ProjectsRootNode$ProjectChildren.createNodes(ProjectsRootNode.java:199) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1986) at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:112) at org.openide.nodes.Children$Info.nodes(Children.java:1082) at org.openide.nodes.Children.justComputeNodes(Children.java:588) at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:54) at org.openide.nodes.Children.getNodes(Children.java:324) at org.openide.nodes.NodeMemberEvent.getDeltaIndices(NodeMemberEvent.java:73) at org.openide.explorer.view.VisualizerNode.childrenAdded(VisualizerNode.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:582) at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:383) at $Proxy14.childrenAdded(Unknown Source) at org.openide.nodes.Node.fireSubNodesChange(Node.java:922) at org.openide.nodes.Children.notifyAdd(Children.java:925) at org.openide.nodes.Children.updateAdd(Children.java:902) at org.openide.nodes.Children.setEntries(Children.java:677) at org.openide.nodes.Children$3.run(Children.java:1877) at org.openide.util.Mutex.postRequest(Mutex.java:866) at org.openide.util.Mutex.postWriteRequest(Mutex.java:364) at org.openide.nodes.Children$Keys.applyKeys(Children.java:1885) at org.openide.nodes.Children$Keys.setKeys(Children.java:1844) at org.netbeans.modules.project.ui.ProjectsRootNode$ProjectChildren.propertyChange(ProjectsRootNode.java:238) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270) at org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:149) [catch] at org.netbeans.modules.project.ui.actions.NewProject$1.run(NewProject.java:122) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) 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)
Replaced by safer implementation. Should not happen again. (For the reporter: seems that you have some broken project - may be because of the OOME - which does not list it's project dir among its source groups. You might need to recreate the project) Checking in projects/projectui/src/org/netbeans/modules/project/ui/PhysicalView.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/PhysicalView.java,v <-- PhysicalView.java new revision: 1.10; previous revision: 1.9 done
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.