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.

Bug 191781 - IndexOutOfBoundsException during project opening
Summary: IndexOutOfBoundsException during project opening
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 187371 188043 189447 189588 191711 (view as bug list)
Depends on: 180940
Blocks:
  Show dependency tree
 
Reported: 2010-11-10 10:43 UTC by akiliyevich
Modified: 2010-11-25 09:04 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description akiliyevich 2010-11-10 10:43:21 UTC
I have received the following problem:

java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:571)
at java.util.ArrayList.remove(ArrayList.java:412)
at org.openide.explorer.view.VisualizerChildren.removed(VisualizerChildren.java:256)
at org.openide.explorer.view.VisualizerEvent$Removed.run(VisualizerEvent.java:134)
at org.openide.util.Mutex.readAccess(Mutex.java:365)
at org.openide.util.Mutex$1R.run(Mutex.java:1307)
at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1835)
at org.openide.util.Mutex.doWrapperAccess(Mutex.java:1326)
at org.openide.util.Mutex.readAccess(Mutex.java:354)
[catch] at org.openide.explorer.view.VisualizerNode$QP.run(VisualizerNode.java:688)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)


It was occurred during project opening.
This happens very rarely, and I can't reproduce it.
I could not determine the cause of the problem.
Can you help me?

My project asks for login when opening and establishes a connection to the server, it is realized in project's ProjectOpenedHook, connection is remembered in project.
Project node is created in LogicalViewProvider without any cashing (as described in JavaDoc). LogicalViewProvider return empty node (without children) if login cancelled.
Comment 1 Jesse Glick 2010-11-10 18:29:44 UTC
Assignee will likely request a minimal, self-contained test case to reproduce.
Comment 2 Jaroslav Tulach 2010-11-11 08:03:23 UTC
Actually the assignee will thank for the report. It shows that fix for bug 180940 was not correct. It could modify the VisualizerChildren hierarchy from outside of AWT dispatch thread.

core-main#9446ce2bf11d
Comment 3 Jaroslav Tulach 2010-11-11 08:04:21 UTC
*** Bug 188043 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2010-11-11 08:13:12 UTC
*** Bug 189588 has been marked as a duplicate of this bug. ***
Comment 5 Jaroslav Tulach 2010-11-11 09:49:01 UTC
*** Bug 191711 has been marked as a duplicate of this bug. ***
Comment 6 akiliyevich 2010-11-12 06:35:48 UTC
I run our application created on Netbeans platform.
Netbeans started to open the previous 4 projects.
I entered the password for the first project, entered the password for second project, then there was the error.
Files tab after that did not work.
After restarting, everything works as expected and the error no longer occurs.
I can't reproduce it again.
Comment 7 Jaroslav Tulach 2010-11-23 12:04:50 UTC
*** Bug 187371 has been marked as a duplicate of this bug. ***
Comment 8 Jaroslav Tulach 2010-11-25 09:04:56 UTC
*** Bug 189447 has been marked as a duplicate of this bug. ***