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 165905 - ArrayIndexOutOfBoundsException: 2
Summary: ArrayIndexOutOfBoundsException: 2
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
: 165932 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-24 22:12 UTC by Torbjorn Norbye
Modified: 2009-05-29 11:59 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146572


Attachments
stacktrace (1.21 KB, text/plain)
2009-05-24 22:13 UTC, Torbjorn Norbye
Details
stacktrace (1.21 KB, text/plain)
2009-05-25 08:48 UTC, Vojtech Sigler
Details
stacktrace (1.21 KB, text/plain)
2009-05-25 08:55 UTC, Vojtech Sigler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2009-05-24 22:12:50 UTC
Build: NetBeans IDE Dev (Build 090524)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.7, x86_64

User Comments:
tor: Opened debugger. I had previously closed the "Location" column (which appeared out of nowhere, I haven't seen it before and I don't want it since it's mostly redundant - it shows the Java file for the class name showed in the usual name column)



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at org.netbeans.modules.viewmodel.OutlineTable.setColumnsOrder(OutlineTable.java:625)
        at org.netbeans.modules.viewmodel.OutlineTable.updateTableColumns(OutlineTable.java:603)
        at org.netbeans.modules.viewmodel.OutlineTable.setModel(OutlineTable.java:352)
        at org.netbeans.spi.viewmodel.Models.createView(Models.java:115)
        at org.netbeans.modules.debugger.ui.views.ViewModelListener$1.run(ViewModelListener.java:449)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 1 Torbjorn Norbye 2009-05-24 22:13:00 UTC
Created attachment 82708 [details]
stacktrace
Comment 2 Vojtech Sigler 2009-05-25 08:48:01 UTC
Build: NetBeans IDE Dev (Build 200905250201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, i386

User Comments: 
While debugging php I set the Variables view to hide "toString()" column and switched to the Watches view and back to Variables.

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 4
        at org.netbeans.modules.viewmodel.OutlineTable.setColumnsOrder(OutlineTable.java:625)
        at org.netbeans.modules.viewmodel.OutlineTable.updateTableColumns(OutlineTable.java:603)
        at org.netbeans.modules.viewmodel.OutlineTable.setModel(OutlineTable.java:352)
        at org.netbeans.spi.viewmodel.Models.createView(Models.java:115)
        at org.netbeans.modules.debugger.ui.views.ViewModelListener$1.run(ViewModelListener.java:449)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 3 Vojtech Sigler 2009-05-25 08:48:05 UTC
Created attachment 82718 [details]
stacktrace
Comment 4 Vojtech Sigler 2009-05-25 08:55:01 UTC
Build: NetBeans IDE Dev (Build 200905250201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, i386

User Comments: 
Switched into variables view.

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 4
        at org.netbeans.modules.viewmodel.OutlineTable.setColumnsOrder(OutlineTable.java:625)
        at org.netbeans.modules.viewmodel.OutlineTable.updateTableColumns(OutlineTable.java:603)
        at org.netbeans.modules.viewmodel.OutlineTable.setModel(OutlineTable.java:352)
        at org.netbeans.spi.viewmodel.Models.createView(Models.java:115)
        at org.netbeans.modules.debugger.ui.views.ViewModelListener$1.run(ViewModelListener.java:449)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 5 Vojtech Sigler 2009-05-25 08:55:04 UTC
Created attachment 82719 [details]
stacktrace
Comment 6 Martin Entlicher 2009-05-25 09:03:42 UTC
Fixed in changeset:   133348:0404866b0e39
http://hg.netbeans.org/main/rev/0404866b0e39
Comment 7 Alexander Pepin 2009-05-25 11:14:01 UTC
It's a showstopper for RC12
Comment 8 Martin Entlicher 2009-05-25 12:23:28 UTC
*** Issue 165932 has been marked as a duplicate of this issue. ***
Comment 9 Alexander Pepin 2009-05-25 13:55:35 UTC
the fix should be ported to release67 clone
Comment 10 Filip Zamboj 2009-05-25 16:17:57 UTC
verified in Product Version: NetBeans IDE Dev (Build 090525), last changeset:   133357:5acb4f001ca0

@mentlicher: could you please port to 67 then? thanks a lot. 
Comment 11 Quality Engineering 2009-05-25 18:37:58 UTC
Integrated into 'main-golden', will be available in build *200905251401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0404866b0e39
User: mentlicher@netbeans.org
Log: #165905 - Prevent from ArrayIndexOutOfBoundsException.
Comment 12 Daniel Prusa 2009-05-26 10:59:04 UTC
Review done. The fix is simple and correct.
Comment 13 Martin Entlicher 2009-05-26 13:06:36 UTC
Thanks, pushed to release67 in changeset:   133359:597df7408f25
http://hg.netbeans.org/release67/rev/597df7408f25
Comment 14 Filip Zamboj 2009-05-27 11:19:58 UTC
verified in new rc1 

Product Version: NetBeans IDE 6.7 RC1 (Build 200905270001)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02
Comment 15 artisan 2009-05-27 12:02:37 UTC
Product Version: NetBeans IDE Dev (Build 200905261401)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: Windows XP version 5.1 running on x86; Cp1252; nl_BE (nb)

Just installed the latest 6.7 dev version. The error still occurs when I'm switching to the debugger variables tab.

Or is this fix not yet applied to the dev builds ?
Comment 16 Filip Zamboj 2009-05-27 12:11:39 UTC
it should be available in that build already since 
Integrated into 'main-golden', will be available in build *200905251401* on http://bits.netbeans.org/dev/nightly/
(upload may still be in progress)

@artisan: did you report the exception. please? 
@vsigler: could you verify as well, please? I'll try on XP. 
Comment 17 Vojtech Sigler 2009-05-27 12:30:46 UTC
Fix verified in latest dev build on Ubuntu 9.04:

Product Version: NetBeans IDE Dev (Build 200905270201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)

@artisan: if you did not report the exception, please do so. Or post steps to reproduce. Thanks
Comment 18 Filip Zamboj 2009-05-27 12:57:52 UTC
not reproduced on 

Product Version: NetBeans IDE 6.7 RC1 (Build 200905270001)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)
Userdir: C:\Documents and Settings\i18n\.netbeans\6.7rc1

@reporter: looks like it's needed to switch to newer build. feel free to reopen this issue if you reproduce again.
thanks a lot! 
Comment 19 tkellerer 2009-05-27 18:32:07 UTC
I am using the latest dev build (May, 27th) and I'm getting this error as well. 
The exception occurred when customized the displayed columns in the "Variables" window of the debugger.
Now I cannot display the variables in the debugger any longer. Makes debugging a bit of a pain
Comment 20 tkellerer 2009-05-27 18:37:58 UTC
I could only get the debugger to work again by deleting all files with "debug" in them from the user dir
Comment 21 Alexander Pepin 2009-05-27 18:56:55 UTC
cleaning userdir is a normal operation while testing dev builds :)
I can not reproduce the bug anymore with a fresh userdir.
Comment 22 Marian Mirilovic 2009-05-28 08:39:50 UTC
Filip & Vojta,
please evaluate this issue again to be sure it's fixed in RC1. Thanks in advance.
Comment 23 Filip Zamboj 2009-05-28 09:59:26 UTC
verified in 
Product Version: NetBeans IDE 6.7 RC1 (Build 200905280001)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02

not reproduced nor with fresh userdir nor with existing userdir 
Comment 24 Marian Mirilovic 2009-05-28 10:07:54 UTC
so keep it fixed
Comment 25 artisan 2009-05-28 10:15:03 UTC
The exception was already reported via Netbeans. Very nice feature btw. :-)

The way I'm reproduce it:

 * Attach the debugger to a remote application (JBoss 4.2.0).
 * Have the debugger stop on a serverside breakpoint.
 * Click on the variables tab to inspect the variables.

As soon as the tab appears the exception is thrown.

I'll try again with the latest build and cleared userdir. Thanks for the good work !!!
Comment 26 Filip Zamboj 2009-05-28 13:41:42 UTC
@reporter: are you reusing your userdir you used when the exception occurred first time? I did my best but I didn't
reproduce this issue. 
@mentlicher: this doesn't depend on having attached debugger or not, does it? 

Linux: not reproducible - attaching to netbeans 
Product Version: NetBeans IDE 6.7 RC1 (Build 200905280001)
just simple debugging in netbeans

XP; not reproducible - simple debugging 
Product Version: NetBeans IDE 6.7 RC1 (Build 200905280001)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02

Comment 27 artisan 2009-05-29 09:25:51 UTC
Product Version: NetBeans IDE Dev (Build 200905280201)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; nl_BE (nb)

Clearing the userdir and installing the mentioned jdk and netbeans solved the issue. I can properly debugging again. 

Thanks guys !!!
Comment 28 Filip Zamboj 2009-05-29 11:59:46 UTC
verified based on previous verifications and last comment from artisan