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 175946

Summary: ArrayIndexOutOfBoundsException: 2
Product: db Reporter: martinhavle <martinhavle>
Component: CodeAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: gerzhedowich, lolo_101
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=149895
Issue Type: DEFECT Exception Reporter: 149895
Attachments: stacktrace
stacktrace
stacktrace

Description martinhavle 2009-11-02 15:29:59 UTC
Build: NetBeans IDE Dev (Build 200910310201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows 7, 6.1, x86

User Comments:
martinhavle: Added row when inserting rows, clicked row created befored and added other row. Error occured.



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
        at org.jdesktop.swingx.decorator.ShuttleSorter.mapTowardModel(ShuttleSorter.java:106)
        at org.jdesktop.swingx.decorator.Filter.convertRowIndexToModel(Filter.java:116)
        at org.jdesktop.swingx.decorator.FilterPipeline.convertRowIndexToModel(FilterPipeline.java:430)
        at org.jdesktop.swingx.decorator.DefaultSelectionMapper.convertToModel(DefaultSelectionMapper.java:207)
        at org.jdesktop.swingx.decorator.DefaultSelectionMapper.mapTowardsModel(DefaultSelectionMapper.java:235)
        at org.jdesktop.swingx.decorator.DefaultSelectionMapper.access$000(DefaultSelectionMapper.java:37)
Comment 1 martinhavle 2009-11-02 15:30:09 UTC
Created attachment 90437 [details]
stacktrace
Comment 2 Jiri Rechtacek 2009-11-04 14:52:51 UTC
A bug in org.jdesktop.swingx.decorator.ShuttleSorter, not part of DB tools in IDE. Leaving open but lowering the
priority to track further reports.
Comment 3 lolo_101 2010-12-14 10:43:26 UTC
Created attachment 104050 [details]
stacktrace

Browsing though SQL query result.
Clicked the first (1) row in the '#' column.
Strangely the result table is empty though the request returned many rows that were displayed.
As i'm currently debugging i did many actions between the moment i executed the query (returned many rows and displayed them correctly) and the moment i got this exception (the result table appears now empty)
Comment 4 gerzhedowich 2012-01-30 13:34:23 UTC
Created attachment 115385 [details]
stacktrace
Comment 5 matthias42 2013-05-25 16:36:58 UTC
The bundled version of swingx in netbeans core was updated.

I tried to reproduce this with that version and found it not to be reproducible. Please reopen, if you can reproduce.