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 247520 - IndexOutOfBoundsException: valid viewIndex: 0 <= index < 0 but was: 19
Summary: IndexOutOfBoundsException: valid viewIndex: 0 <= index < 0 but was: 19
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-27 23:41 UTC by Exceptions Reporter
Modified: 2015-04-04 05:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212284


Attachments
stacktrace (2.95 KB, text/plain)
2014-09-27 23:41 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-09-27 23:41:22 UTC
This bug was originally marked as duplicate of bug 233172, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
GUEST: Just running my project




Stacktrace: 
java.lang.IndexOutOfBoundsException: valid viewIndex: 0 <= index < 0 but was: 19
   at org.jdesktop.swingx.sort.DefaultSortController.convertRowIndexToModel(DefaultSortController.java:311)
   at javax.swing.JTable.convertRowIndexToModel(JTable.java:2644)
   at org.netbeans.modules.db.dataview.table.ResultSetJXTable.isCellEditable(ResultSetJXTable.java:305)
   at org.jdesktop.swingx.JXTable.setValueAt(JXTable.java:1471)
   at javax.swing.JTable.editingStopped(JTable.java:4725)
   at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:141)
Comment 1 Exceptions Reporter 2014-09-27 23:41:24 UTC
Created attachment 149558 [details]
stacktrace
Comment 2 matthias42 2015-04-02 20:44:25 UTC
Ok - I'm still not sure how illegal indices reach that method, but nonetheless this should be handled gracefully. The fix committed as:

http://hg.netbeans.org/core-main/rev/c890e5fa5588

handles this situation by marking an illegal index combination as not editable instead of throwing an exception.

If someone can reproduce this problem it would be good if he/she could try the nightly build resulting from this change and verify the fix. Thank you!
Comment 3 Quality Engineering 2015-04-04 05:16:04 UTC
Integrated into 'main-silver', will be available in build *201504040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c890e5fa5588
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #247520: Ensure illegal column/row index is handled sane way by ResultSetJXTable