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 143840 - AssertionError occurs when connect mySQL from IDE
Summary: AssertionError occurs when connect mySQL from IDE
Status: RESOLVED DUPLICATE of bug 143051
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 01:01 UTC by davisn
Modified: 2008-08-14 15:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (86.45 KB, text/plain)
2008-08-14 01:03 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2008-08-14 01:01:37 UTC
AssertionError occurs when trying to connect mySQL 5.1 database from the Netbean IDE 6.5 Beta build

Steps to Reproduce:
1. Install MySQL Server 5.1 onto a WindowXP machine (use default information)
2. Start MySQL Server
3. Install Netbean 6.5 Trunk build (08/12/2008)
4. From Services node, click Databases > Drivers > right-click at MySQL node and select "Conenct Using" menu
    and enter information below to configure
        Database: test
        Host: localhost
        Port Number: 3306
        User Name: root
        Password: <root>
  Click to OK > OK to connect
5. Expand the "jdbc:mysql://localhost:3306/mysql..." node 
BUG:       
java.lang.AssertionError: tn must be our child!
	at org.openide.explorer.view.VisualizerChildren.recomputeIndexes(VisualizerChildren.java:94)
	at org.openide.explorer.view.VisualizerChildren.getIndex(VisualizerChildren.java:161)
	at org.openide.explorer.view.VisualizerNode.getIndex(VisualizerNode.java:276)
	at javax.swing.tree.DefaultTreeModel.getIndexOfChild(DefaultTreeModel.java:142)
	at javax.swing.tree.FixedHeightLayoutCache.getBounds(FixedHeightLayoutCache.java:176)
	at javax.swing.tree.AbstractLayoutCache.getPreferredWidth(AbstractLayoutCache.java:228)
	at javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize(BasicTreeUI.java:1845)
	at javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(BasicTreeUI.java:2015)
	at javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(BasicTreeUI.java:2003)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1627)
	at org.openide.explorer.view.TreeView$ExplorerTree.access$2201(TreeView.java:1557)
	at org.openide.explorer.view.TreeView$ExplorerTree$GuardedActions.run(TreeView.java:2103)
	at org.openide.explorer.view.TreeView$ExplorerTree$GuardedActions.<init>(TreeView.java:2075)
	at org.openide.explorer.view.TreeView$ExplorerTree.getPreferredSize(TreeView.java:1691)
	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
	at java.awt.Container.layout(Container.java:1432)
	at java.awt.Container.doLayout(Container.java:1421)
	at java.awt.Container.validateTree(Container.java:1519)
	at java.awt.Container.validate(Container.java:1491)
	at org.openide.explorer.view.TreeView.access$101(TreeView.java:138)
	at org.openide.explorer.view.TreeView$4.run(TreeView.java:611)
	at org.openide.util.Mutex.readAccess(Mutex.java:362)
	at org.openide.explorer.view.TreeView.validate(TreeView.java:609)
	at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:639)
[catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 davisn 2008-08-14 01:03:05 UTC
Created attachment 67328 [details]
messages.log
Comment 2 Roman Mostyka 2008-08-14 15:46:44 UTC

*** This issue has been marked as a duplicate of 143051 ***