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 190984 - IndexOutOfBoundsException: Index: -1, Size: 0
Summary: IndexOutOfBoundsException: Index: -1, Size: 0
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.0
Hardware: All All
: P4 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 15:04 UTC by Jiri Kovalsky
Modified: 2013-03-01 16:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171663


Attachments
stacktrace (1.68 KB, text/plain)
2010-10-13 15:04 UTC, Jiri Kovalsky
Details
stacktrace (2.07 KB, text/plain)
2011-03-19 16:40 UTC, rudyment
Details
stacktrace (2.07 KB, text/plain)
2011-03-19 21:40 UTC, rudyment
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2010-10-13 15:04:20 UTC
Build: NetBeans IDE 7.0 M2 (Build 201010121358)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
jkovalsky: Right clicked ThreadSuspending1.java file in MemoryView project and tried to "Debug File" from its popup menu. For more details, see "1. Suspend running thread" test case in Java Debugger Sanity Test Specification [1].

[1] http://wiki.netbeans.org/TS_68_Debugger_Sanity




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
   at java.util.ArrayList.add(ArrayList.java:367)
   at org.netbeans.swing.etable.ETableColumnModel.setColumnSorted(ETableColumnModel.java:197)
   at org.netbeans.swing.etable.ETable.createDefaultColumnsFromModel(ETable.java:671)
   at javax.swing.JTable.tableChanged(JTable.java:4374)
   at org.netbeans.swing.etable.ETable.tableChanged(ETable.java:1211)
   at org.netbeans.swing.outline.Outline.tableChanged(Outline.java:766)
Comment 1 Jiri Kovalsky 2010-10-13 15:04:26 UTC
Created attachment 102393 [details]
stacktrace
Comment 2 Martin Entlicher 2010-11-02 10:45:02 UTC
I can not reproduce this yet. From the code it looks like some columns had to be sorted before this occurred? Something probably went wrong just before this exception was thrown...
Can you reproduce it with clean user-dir by following the steps at http://wiki.netbeans.org/TS_68_Debugger_Sanity#Test_suite:_Resume.2FSuspend_threads._.28Multithread.29 ?
Comment 3 Martin Entlicher 2010-11-05 07:43:58 UTC
IMHO this occurs quite rarely and it's not easily reproducible. Therefore I'm moving this to P4 until we have more information on when this occurs.
Comment 4 Exceptions Reporter 2011-02-18 08:33:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=171663
Comment 5 rudyment 2011-03-19 16:40:01 UTC
Created attachment 107121 [details]
stacktrace

Excetion occurred when I have started debugging of a project.
Comment 6 rudyment 2011-03-19 21:40:01 UTC
Created attachment 107126 [details]
stacktrace

The exception occured when I started to debug a second program (I wanted to step through two programs simultaneously)
Comment 7 Marian Mirilovic 2013-03-01 16:13:47 UTC
The latest report is almost 2 years old - worksforme. Please reopen if you are able to reproduce it in 7.2 and newer, thanks in advance.