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 108070 - java.lang.ClassCastException: org.netbeans.modules.db.explorer.nodes.ConnectionNode cannot be cast to java.lang.Comparable
Summary: java.lang.ClassCastException: org.netbeans.modules.db.explorer.nodes.Connecti...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-06-25 20:30 UTC by _ gtzabari
Modified: 2007-07-03 09:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack-trace (7.42 KB, text/plain)
2007-06-25 20:31 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2007-06-25 20:30:26 UTC
dev huild 200706230000

I filled out a "New Database Connection" dialog, hit OK and got the attached exception.
Comment 1 _ gtzabari 2007-06-25 20:31:05 UTC
Created attachment 44366 [details]
stack-trace
Comment 2 Andrei Badea 2007-06-26 09:40:15 UTC
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.
Comment 3 _ gtzabari 2007-06-26 13:16:21 UTC
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.
Comment 4 Andrei Badea 2007-06-26 14:04:53 UTC
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().
Comment 5 _ gtzabari 2007-06-27 14:34:04 UTC
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.
Comment 6 Andrei Badea 2007-06-29 17:52:17 UTC
I could reproduce after making the "Please wait..." child node under the Databases node be displayed while registering a
connection.
Comment 7 Andrei Badea 2007-07-03 09:09:45 UTC
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