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 197930 - java.lang.ClassCastException: org.netbeans.modules.db.explorer.node.DriverListNode cannot be cast to java.lang.Comparable
Summary: java.lang.ClassCastException: org.netbeans.modules.db.explorer.node.DriverLis...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 211228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-21 07:13 UTC by myfear
Modified: 2012-04-16 14:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description myfear 2011-04-21 07:13:30 UTC
Product Version: NetBeans IDE 7.0 (Build 201104080000)
Java: 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b08
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)

1) Start the IDE
2) Open Services Tab
3) Click or Right-Click "Databases" => red icon in lower right corner.

messages.log:


Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 32,0MB maximum 682,7MB
Non heap memory usage: initial 34,4MB maximum 432,0MB
Garbage collector: PS Scavenge (Collections=9 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=2 Total time spent=0s)
Classes: loaded=7441 total loaded=7443 unloaded 2
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 8.579.272.704
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 23 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 binary roots took: 495 ms
INFO [org.netbeans.core.startup.layers.BinaryFS]: value = org.netbeans.modules.db.explorer.node.RootNode.instance from UI/Runtime/org-netbeans-modules-db-explorer-node-RootNode-instance.instance
java.lang.ClassCastException: org.netbeans.modules.db.explorer.node.DriverListNode cannot be cast to java.lang.Comparable
	at java.util.TreeMap.compare(TreeMap.java:1188)
	at java.util.TreeMap.put(TreeMap.java:531)
	at java.util.TreeSet.add(TreeSet.java:255)
	at org.netbeans.api.db.explorer.node.NodeProvider.addNode(NodeProvider.java:200)
	at org.netbeans.modules.db.explorer.node.DriverListNodeProvider.<init>(DriverListNodeProvider.java:71)
	at org.netbeans.modules.db.explorer.node.DriverListNodeProvider.<init>(DriverListNodeProvider.java:53)
	at org.netbeans.modules.db.explorer.node.DriverListNodeProvider$FactoryHolder$1.createInstance(DriverListNodeProvider.java:64)
	at org.netbeans.modules.db.explorer.node.DriverListNodeProvider$FactoryHolder$1.createInstance(DriverListNodeProvider.java:62)
	at org.netbeans.modules.db.explorer.node.NodeRegistry.initProviders(NodeRegistry.java:139)
	at org.netbeans.modules.db.explorer.node.NodeRegistry.init(NodeRegistry.java:117)
	at org.netbeans.modules.db.explorer.node.NodeRegistry.create(NodeRegistry.java:100)
	at org.netbeans.api.db.explorer.node.BaseNode.<init>(BaseNode.java:165)
	at org.netbeans.api.db.explorer.node.BaseNode.<init>(BaseNode.java:149)
	at org.netbeans.modules.db.explorer.node.RootNode.<init>(RootNode.java:103)
	at org.netbeans.modules.db.explorer.node.RootNode.instance(RootNode.java:85)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:598)
	at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:626)
[catch] at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:556)
	at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:402)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:911)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:907)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:844)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:772)
	at org.netbeans.core.startup.layers.BinaryFS$FileMap.get(BinaryFS.java:981)
	at org.openide.nodes.LazyNode.switchToOriginal(LazyNode.java:83)
	at org.openide.nodes.LazyNode.getActions(LazyNode.java:74)
	at org.openide.nodes.NodeOp.findActions(NodeOp.java:161)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1073)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1558)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:189)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:184)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6463)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6228)
	at java.awt.Container.processEvent(Container.java:2213)
	at java.awt.Component.dispatchEventImpl(Component.java:4819)
	at java.awt.Container.dispatchEventImpl(Container.java:2271)
	at java.awt.Component.dispatchEvent(Component.java:4645)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4816)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4476)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4406)
	at java.awt.Container.dispatchEventImpl(Container.java:2257)
	at java.awt.Window.dispatchEventImpl(Window.java:2677)
	at java.awt.Component.dispatchEvent(Component.java:4645)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
	at java.awt.EventQueue.access$000(EventQueue.java:101)
	at java.awt.EventQueue$3.run(EventQueue.java:666)
	at java.awt.EventQueue$3.run(EventQueue.java:664)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:680)
	at java.awt.EventQueue$4.run(EventQueue.java:678)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
SEVERE [org.openide.util.Exceptions]
java.lang.IllegalArgumentException: Original Node from map {position=101, iconResource=org/netbeans/modules/db/resources/database.gif, name=Databases, original=null, displayName=Databases, instanceCreate=org.openide.nodes.LazyNode[name=null][Name=Databases, displayName=Databases]} is null
	at org.openide.nodes.LazyNode.switchToOriginal(LazyNode.java:85)
	at org.openide.nodes.LazyNode.getActions(LazyNode.java:74)
	at org.openide.nodes.NodeOp.findActions(NodeOp.java:161)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1073)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1558)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:189)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:184)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6463)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6228)
	at java.awt.Container.processEvent(Container.java:2213)
	at java.awt.Component.dispatchEventImpl(Component.java:4819)
	at java.awt.Container.dispatchEventImpl(Container.java:2271)
	at java.awt.Component.dispatchEvent(Component.java:4645)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4816)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4476)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4406)
	at java.awt.Container.dispatchEventImpl(Container.java:2257)
	at java.awt.Window.dispatchEventImpl(Window.java:2677)
	at java.awt.Component.dispatchEvent(Component.java:4645)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
	at java.awt.EventQueue.access$000(EventQueue.java:101)
	at java.awt.EventQueue$3.run(EventQueue.java:666)
	at java.awt.EventQueue$3.run(EventQueue.java:664)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:680)
	at java.awt.EventQueue$4.run(EventQueue.java:678)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 1 binary roots took: 16 ms
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method removePropertyChangeListener from org.netbeans.modules.editor.NbEditorDocument@73082422, mimeType='text/x-jsp', kitClass=null, length=7550, version=1, file=null
Comment 1 Jiri Rechtacek 2011-10-19 14:50:41 UTC
core-main/rev/1264cfa5ce3d
Comment 2 Quality Engineering 2011-10-20 14:22:29 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/1264cfa5ce3d
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #197930: CCE: org.netbeans.modules.db.explorer.node.DriverListNode cannot be cast to java.lang.Comparable
Comment 3 patanni 2012-01-04 05:25:36 UTC
Hello!

i am using Netbeans 6.7.1. Can someone please guide me how to solve this problem
Comment 4 Jiri Rechtacek 2012-01-05 08:31:05 UTC
(In reply to comment #3)
> Hello!
> 
> i am using Netbeans 6.7.1. Can someone please guide me how to solve this
> problem

Just wait to NetBeans 7.1 release, it is coming very soon.
Comment 5 patanni 2012-01-06 04:39:06 UTC
I used this feature earlier, just a month ago and it was working. Now I have re-installed and its not working this time :( Will 7.1 have plugin for SOA?

(In reply to comment #4)
> (In reply to comment #3)
> > Hello!
> > 
> > i am using Netbeans 6.7.1. Can someone please guide me how to solve this
> > problem
> 
> Just wait to NetBeans 7.1 release, it is coming very soon.
Comment 6 Jiri Rechtacek 2012-01-06 07:54:06 UTC
(In reply to comment #5)
> I used this feature earlier, just a month ago and it was working. Now I have
> re-installed and its not working this time :( Will 7.1 have plugin for SOA?
More details please, attach your messages.log, what release etc. Did you install NetBeans 7.1?

> 
> (In reply to comment #4)
> > (In reply to comment #3)
> > > Hello!
> > > 
> > > i am using Netbeans 6.7.1. Can someone please guide me how to solve this
> > > problem
> > 
> > Just wait to NetBeans 7.1 release, it is coming very soon.
Comment 7 patanni 2012-01-06 13:18:06 UTC
Hello!

I have installed netbeans 7.1. How can I add SOA plugin?

(In reply to comment #6)
> (In reply to comment #5)
> > I used this feature earlier, just a month ago and it was working. Now I have
> > re-installed and its not working this time :( Will 7.1 have plugin for SOA?
> More details please, attach your messages.log, what release etc. Did you
> install NetBeans 7.1?
> 
> > 
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > Hello!
> > > > 
> > > > i am using Netbeans 6.7.1. Can someone please guide me how to solve this
> > > > problem
> > > 
> > > Just wait to NetBeans 7.1 release, it is coming very soon.
Comment 8 patanni 2012-01-07 01:50:28 UTC
Yes I have installed netbeans 7.1
Please tell me how can I add SOA Plugin in it?

(In reply to comment #6)
> (In reply to comment #5)
> > I used this feature earlier, just a month ago and it was working. Now I have
> > re-installed and its not working this time :( Will 7.1 have plugin for SOA?
> More details please, attach your messages.log, what release etc. Did you
> install NetBeans 7.1?
> 
> > 
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > Hello!
> > > > 
> > > > i am using Netbeans 6.7.1. Can someone please guide me how to solve this
> > > > problem
> > > 
> > > Just wait to NetBeans 7.1 release, it is coming very soon.
Comment 9 Jiri Rechtacek 2012-04-16 14:42:38 UTC
*** Bug 211228 has been marked as a duplicate of this bug. ***