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.
Summary: | java.lang.ClassCastException: org.netbeans.modules.db.explorer.nodes.ConnectionNode cannot be cast to java.lang.Comparable | ||
---|---|---|---|
Product: | db | Reporter: | _ gtzabari <gtzabari> |
Component: | Code | Assignee: | Andrei Badea <abadea> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | RANDOM |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | stack-trace |
Description
_ gtzabari
2007-06-25 20:30:26 UTC
Created attachment 44366 [details]
stack-trace
I can't reproduce, but it seems to be caused by a connection node added to the Databases node while it is displaying a "Please wait..." child node. Originally I reproduced this by doing the following: Resolve Databae Problem -> Add Connection -> MySQL (Connector/J Driver) which I had previously defined -> enter the username and password and click OK. But I have since then tried reproducing with a clean userdir and it no longer seems to occur. Feel free to close as INVALID. I will reopen it if I reproduce it again. I have an idea I want to try first. I might be able to reproduce by making the "Please wait..." node stay there for a longer time with a Thread.sleep(). I just reproduced this issue on dev build 20070627000 I selected "Resolve Missing Datasources" -> Select an item from the list -> Add datasource -> Add new database connection -> Point to MySQL driver -> click on okay -> Please wait dialog displays briefly and goes away -> I hit OK and get this exception. To be clear: the exception occured even *after* the "please wait" dialog was dismissed. I could reproduce after making the "Please wait..." child node under the Databases node be displayed while registering a connection. Fixed. Checking in org/netbeans/modules/db/explorer/DatabaseNodeChildren.java; /cvs/db/src/org/netbeans/modules/db/explorer/DatabaseNodeChildren.java,v <-- DatabaseNodeChildren.java new revision: 1.46; previous revision: 1.45 done |