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 143360 - [65cat] ArrayIndexOutOfBoundsException: -1
Summary: [65cat] ArrayIndexOutOfBoundsException: -1
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: John Baker
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-09 00:47 UTC by sunbiz
Modified: 2009-05-25 21:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 88505


Attachments
stacktrace (2.54 KB, text/plain)
2008-08-09 00:47 UTC, sunbiz
Details
stacktrace (2.54 KB, text/plain)
2008-11-07 11:29 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-08-09 00:47:19 UTC
Build: NetBeans IDE Dev (Build 080808)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 
1.) Selected table colum and clicked design query
2.) Added group-by clause
3.) Ran query and got results as a table
4.) Right-clicked on table and clicked Copy-Cell value and got this exception

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.Vector.elementAt(Vector.java:430)
        at javax.swing.table.DefaultTableModel.getValueAt(DefaultTableModel.java:633)
        at javax.swing.JTable.getValueAt(JTable.java:2664)
        at org.netbeans.modules.db.sql.visualeditor.querybuilder.QueryBuilderResultTable.actionPerformed(QueryBuilderResultTable.java:302)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
Comment 1 sunbiz 2008-08-09 00:47:24 UTC
Created attachment 66945 [details]
stacktrace
Comment 2 John Baker 2008-08-09 00:54:31 UTC

may fix for 6.5 (if time) and also if I can find someone to verify the fix.
Comment 3 sunbiz 2008-11-07 11:29:02 UTC
Build: NetBeans IDE Dev (Build 200811060201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, x86

User Comments: 
Copy Cell Value in the Run Query of the Visual SQL Editor

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.Vector.elementAt(Vector.java:430)
        at javax.swing.table.DefaultTableModel.getValueAt(DefaultTableModel.java:633)
        at javax.swing.JTable.getValueAt(JTable.java:2695)
        at org.netbeans.modules.db.sql.visualeditor.querybuilder.QueryBuilderResultTable.actionPerformed(QueryBuilderResultTable.java:302)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
Comment 4 sunbiz 2008-11-07 11:29:11 UTC
Created attachment 73458 [details]
stacktrace
Comment 5 Petr Blaha 2008-11-18 13:01:51 UTC
Move visualsqleditor subcomponents below visualweb
Comment 6 Peter Zavadsky 2008-12-09 18:07:11 UTC
Query editor is not part of visual web any more.