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 231959 - IndexOutOfBoundsException: Index: 1, Size: 1
Summary: IndexOutOfBoundsException: Index: 1, Size: 1
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 231960 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-27 20:29 UTC by rodrigorsantos
Modified: 2013-07-01 15:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 201751


Attachments
stacktrace (7.29 KB, text/plain)
2013-06-27 20:29 UTC, rodrigorsantos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rodrigorsantos 2013-06-27 20:29:36 UTC
Build: NetBeans IDE Dev (Build 20130625-bb06ec1a02a7)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
rodrigorsantos: <Please provide a description of the problem or the steps to reproduce>
Error while Insert Record (Alt +I)




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
   at java.util.ArrayList.RangeCheck(ArrayList.java:604)
   at java.util.ArrayList.get(ArrayList.java:382)
   at org.netbeans.modules.db.dataview.table.ResultSetTableModel.getValueAt(ResultSetTableModel.java:244)
   at org.netbeans.modules.db.dataview.output.InsertRecordDialog.getInsertValues(InsertRecordDialog.java:537)
   at org.netbeans.modules.db.dataview.output.InsertRecordDialog.refreshSQL(InsertRecordDialog.java:465)
   at org.netbeans.modules.db.dataview.output.InsertRecordDialog$TableListener.tableChanged(InsertRecordDialog.java:365)
Comment 1 rodrigorsantos 2013-06-27 20:29:37 UTC
Created attachment 136433 [details]
stacktrace
Comment 2 Jaroslav Havlin 2013-06-28 07:37:50 UTC
I'm sorry, I cannot reproduce the bug.
Can you please provide more information? How many rows did you try to add? When did the exception appear? Were the columns in "Add Record(s)" dialog sorted?
Is the exception raised every time you try to add new records?
Thank you.
Comment 3 Jaroslav Havlin 2013-06-28 14:34:55 UTC
I've finally managed to reproduce the bug.
Hopefully fixed in http://hg.netbeans.org/core-main/rev/2f8a5b942406.
Please verify.
Thank you for reporting.
Comment 4 Jaroslav Havlin 2013-06-28 14:37:02 UTC
*** Bug 231960 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2013-07-01 15:55:44 UTC
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2f8a5b942406
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #231959: IndexOutOfBoundsException: Index: 1, Size: 1