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 132028 - "View Data" thorws ArrayIndexOutOfBoundsException
Summary: "View Data" thorws ArrayIndexOutOfBoundsException
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Andrei Badea
URL:
Keywords:
: 132916 133956 134367 134650 134777 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-04 10:53 UTC by Nilesh Apte
Modified: 2008-07-14 20:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nilesh Apte 2008-04-04 10:53:14 UTC
When I try to view data from any database table (reproducible with Derby/Oracle etc.), I get following exception and I
don't see any data. Seems to be a regression.
-------------------------------
java.lang.ArrayIndexOutOfBoundsException: No such child: 0
	at java.awt.Container.getComponent(Container.java:280)
	at org.netbeans.modules.db.sql.loader.SQLCloneableEditor.createResultComponent(SQLCloneableEditor.java:123)
	at org.netbeans.modules.db.sql.loader.SQLCloneableEditor.getResultComponent(SQLCloneableEditor.java:110)
[catch] at org.netbeans.modules.db.sql.loader.SQLEditorSupport$2.run(SQLEditorSupport.java:334)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

---------------------------
Comment 1 John Baker 2008-04-05 06:43:14 UTC
please provide your environment, NetBeans version from the Help->About box

Comment 2 David Vancouvering 2008-04-07 23:50:55 UTC
Yes, please indicate what version you are running with.  We were having some issues with the editor but these got fixed,
it would be good to know if this problem was before or after this issue was fixed.
Comment 3 Dan Kolar 2008-04-08 09:00:58 UTC
Can reproduce with build
Product Version: NetBeans IDE Dev (Build 20080407115058)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
Comment 4 Nilesh Apte 2008-04-08 09:11:04 UTC
Product Version: NetBeans IDE Dev (Build 200803251204) - Java CAPS Enabled
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\JavaCAPS6-MS8\.netbeans\caps
Comment 5 Andrei Badea 2008-04-08 18:00:46 UTC
I don't see a way yet how this exception could have occurred. So taking over.
Comment 6 Andrei Badea 2008-04-28 09:56:15 UTC
*** Issue 133956 has been marked as a duplicate of this issue. ***
Comment 7 Andrei Badea 2008-04-28 10:31:21 UTC
*** Issue 132916 has been marked as a duplicate of this issue. ***
Comment 8 David Vancouvering 2008-04-29 17:17:06 UTC
This issue can not be reproduced in 6.1, but it can be reproduced in the trunk, and apparently only on Windows.
Comment 9 Roman Mostyka 2008-04-29 17:31:48 UTC
I'm not able to reproduce this issue with 6.1 on Windows.
Comment 10 yossarian 2008-05-01 23:21:36 UTC
Product Version: NetBeans IDE Dev (Build 080501)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.22.18-desktop586-1mdv running on i386; UTF-8; en_GB (nb)

(I am running the dev trunk -- no local mods and repo version : 79596 (aa7a1b000799) Thu May 01 20:47:05 WAT 2008)

====================

java.lang.ArrayIndexOutOfBoundsException: No such child: 0
	at java.awt.Container.getComponent(Container.java:280)
	at org.netbeans.modules.db.sql.loader.SQLCloneableEditor.createResultComponent(SQLCloneableEditor.java:122)
	at org.netbeans.modules.db.sql.loader.SQLCloneableEditor.getResultComponent(SQLCloneableEditor.java:109)
[catch] at org.netbeans.modules.db.sql.loader.SQLEditorSupport$2.run(SQLEditorSupport.java:331)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 11 David Vancouvering 2008-05-02 17:33:35 UTC
*** Issue 134367 has been marked as a duplicate of this issue. ***
Comment 12 Petr Blaha 2008-05-09 16:00:58 UTC
*** Issue 134777 has been marked as a duplicate of this issue. ***
Comment 13 Petr Blaha 2008-05-09 16:01:37 UTC
Upgrading to P1 due huge number of duplicates.
Comment 14 Andrei Badea 2008-05-09 19:19:42 UTC
Committed a work around that should remove the exception. This is not the correct fix, so leaving open.

c60723e7d854
Comment 15 Quality Engineering 2008-05-10 04:32:57 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #186 build
Changeset: http://hg.netbeans.org/main/rev/c60723e7d854
User: Andrei Badea <abadea@netbeans.org>
Log: #132028: "View Data" thorws ArrayIndexOutOfBoundsException (just working around)
Comment 16 David Vancouvering 2008-05-14 00:54:13 UTC
*** Issue 134650 has been marked as a duplicate of this issue. ***
Comment 17 Andrei Badea 2008-06-17 16:17:15 UTC
I still have no clue on this, nor can I reproduce it. Since it has no impact on users because of the workaround in
desc15, downgrading to P3.
Comment 18 Roman Mostyka 2008-07-14 19:59:06 UTC
I guess since result is displayed now by dataview module, this issue isn't now valid. So mark it as FIXED.
If there are some objections, please feel free to reopen this issue.
Comment 19 Roman Mostyka 2008-07-14 20:02:09 UTC
Verified with build 080714.
Comment 20 Roman Mostyka 2008-07-14 20:03:13 UTC
Verified with build 080714.