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.
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) ---------------------------
please provide your environment, NetBeans version from the Help->About box
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.
Can reproduce with build Product Version: NetBeans IDE Dev (Build 20080407115058) Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
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
I don't see a way yet how this exception could have occurred. So taking over.
*** Issue 133956 has been marked as a duplicate of this issue. ***
*** Issue 132916 has been marked as a duplicate of this issue. ***
This issue can not be reproduced in 6.1, but it can be reproduced in the trunk, and apparently only on Windows.
I'm not able to reproduce this issue with 6.1 on Windows.
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)
*** Issue 134367 has been marked as a duplicate of this issue. ***
*** Issue 134777 has been marked as a duplicate of this issue. ***
Upgrading to P1 due huge number of duplicates.
Committed a work around that should remove the exception. This is not the correct fix, so leaving open. c60723e7d854
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)
*** Issue 134650 has been marked as a duplicate of this issue. ***
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.
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.
Verified with build 080714.