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 194028 - [70cat] ArrayIndexOutOfBoundsException: 2 >= 2
Summary: [70cat] ArrayIndexOutOfBoundsException: 2 >= 2
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 195308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-04 19:06 UTC by mortennobel
Modified: 2011-02-11 14:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175569


Attachments
stacktrace (1.11 KB, text/plain)
2011-01-04 19:06 UTC, mortennobel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mortennobel 2011-01-04 19:06:21 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-6369-on-101222)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
mortennobel: After a cpp debug session. This error happened when I closed an expanded variable




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
   at java.util.Vector.elementAt(Vector.java:427)
   at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
   at org.netbeans.modules.viewmodel.OutlineTable.updateColumnWidthsAndSorting(OutlineTable.java:799)
   at org.netbeans.modules.viewmodel.OutlineTable.setModel(OutlineTable.java:454)
   at org.netbeans.spi.viewmodel.Models$1.run(Models.java:178)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 1 mortennobel 2011-01-04 19:06:24 UTC
Created attachment 104707 [details]
stacktrace
Comment 2 Martin Entlicher 2011-01-06 10:05:55 UTC
Very similar to issue #193427, but at a different place.
Comment 3 Martin Entlicher 2011-02-07 10:02:06 UTC
This should be fixed by changeset:   188136:1e3fbf0b6c0a
http://hg.netbeans.org/main/rev/1e3fbf0b6c0a

Logging enhanced to see more details in case that the problem reappears:
changeset:   188137:73a2189fa179
http://hg.netbeans.org/main/rev/73a2189fa179
Comment 4 Quality Engineering 2011-02-08 06:15:30 UTC
Integrated into 'main-golden', will be available in build *201102080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/73a2189fa179
User: mentlicher@netbeans.org
Log: #193427 and #194028 Enhanced error logging.
Comment 5 Martin Entlicher 2011-02-08 15:56:35 UTC
Unfortunately, the fix in changeset 1e3fbf0b6c0a is not sufficient.

I've found steps how to reliably reproduce this exception:
1) Start NetBeans with an empty user dir
2) Open a C/C++ project
3) Open Window -> Debugging -> Watches
4) Start debug of the C/C++ project
5) Select the Watches window
6) Finish debugger
7) This exception is thrown.
Comment 6 Martin Entlicher 2011-02-09 10:03:52 UTC
Finally fixed by changeset:   188343:c107a5bf73c0
http://hg.netbeans.org/main/rev/c107a5bf73c0
Comment 7 Quality Engineering 2011-02-10 11:27:32 UTC
Integrated into 'main-golden', will be available in build *201102100500* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c107a5bf73c0
User: mentlicher@netbeans.org
Log: #193427, #194028 Clean the columns, including hidden ones, before we set new ones.
Comment 8 Egor Ushakov 2011-02-11 14:08:35 UTC
*** Bug 195308 has been marked as a duplicate of this bug. ***