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 188999

Summary: AIOOBE from TaskModel.getSelectedHandle
Product: platform Reporter: Jesse Glick <jglick>
Component: ProgressAssignee: Jan Peska <JPESKA>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aldobrucale, alexvsimon
Priority: P3 Keywords: RANDOM, TEST, THREAD
Version: 7.0   
Hardware: PC   
OS: Linux   
URL: http://deadlock.netbeans.org/hudson/job/NB-Core-Build/4926/testReport/org.netbeans.modules.java.j2seproject/BuildImplTest/testJavadocPackagesDocumented/
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2010-07-27 23:00:14 UTC
BuildImplTest.testJavadocPackagesDocumented failed due to an uncaught runtime exception manipulating progress handles:

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
	at java.util.Vector.elementAt(Vector.java:427)
	at javax.swing.DefaultListModel.getElementAt(DefaultListModel.java:70)
	at org.netbeans.modules.progress.spi.TaskModel.getSelectedHandle(TaskModel.java:154)
	at org.netbeans.modules.progress.spi.TaskModel.updateSelection(TaskModel.java:91)
	at org.netbeans.modules.progress.spi.Controller.toIndeterminate(Controller.java:158)
	at org.netbeans.modules.progress.spi.InternalHandle.toIndeterminate(InternalHandle.java:182)
	at org.netbeans.api.progress.ProgressHandle.switchToIndeterminate(ProgressHandle.java:106)
	at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.checkForStop(NbBuildLogger.java:204)
	at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.messageLogged(NbBuildLogger.java:583)
...

Looks to me like TaskModel reads & writes the 'model' field without apparent synchronization. Not sure if the InternalHandle lock is supposed to control all accesses.
Comment 1 Jan Peska 2011-08-11 14:51:34 UTC
*** Bug 196129 has been marked as a duplicate of this bug. ***
Comment 2 Jan Peska 2011-11-03 09:51:32 UTC
*** Bug 190798 has been marked as a duplicate of this bug. ***
Comment 3 Jan Peska 2011-11-14 13:49:25 UTC
*** Bug 205082 has been marked as a duplicate of this bug. ***
Comment 4 Jan Peska 2011-11-23 10:43:31 UTC

*** This bug has been marked as a duplicate of bug 192420 ***