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 190798 - ArrayIndexOutOfBoundsException in progress
Summary: ArrayIndexOutOfBoundsException in progress
Status: RESOLVED DUPLICATE of bug 188999
Alias: None
Product: platform
Classification: Unclassified
Component: Progress (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords: RANDOM
Depends on:
Blocks: 190638
  Show dependency tree
 
Reported: 2010-10-06 07:44 UTC by Alexander Simon
Modified: 2011-11-23 10:36 UTC (History)
0 users

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 Alexander Simon 2010-10-06 07:44:16 UTC
Random exception in unit tests

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.netbeans.api.extexecution.ExecutionService.createProgressHandle(ExecutionService.java:498)
	at org.netbeans.api.extexecution.ExecutionService.run(ExecutionService.java:219)
	at org.netbeans.api.extexecution.ExecutionService.run(ExecutionService.java:211)
	at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService.runRegular(NativeExecutionService.java:286)
	at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService.run(NativeExecutionService.java:135)
	at org.netbeans.modules.cnd.actions.MakeBaseAction.performAction(MakeBaseAction.java:126)
	at org.netbeans.modules.cnd.actions.MakeAction.execute(MakeAction.java:99)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject.postMake(ImportProject.java:757)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject.access$800(ImportProject.java:134)
	at org.netbeans.modules.cnd.discovery.projectimport.ImportProject$4.executionFinished(ImportProject.java:683)
	at org.netbeans.modules.cnd.actions.AbstractExecutorRunAction$ProcessChangeListener.run(AbstractExecutorRunAction.java:585)
	at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$PostRunnable.run(NativeExecutionService.java:337)
	at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:334)
	at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:233)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Comment 1 Alexander Simon 2010-10-06 07:53:12 UTC
Root of exception is not synchronized access to internal field TaskModel.model.
Should be synchronized.
Comment 2 Jan Peska 2011-11-03 09:51:32 UTC

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