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.
Build: NetBeans IDE Dev (Build 200902011401) VM: Java HotSpot(TM) Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: saeed_Z_F: When i navigate in project palette in the netbeans module project occur this exception Stacktrace: java.lang.ClassCastException: org.netbeans.modules.settings.convertors.SerialDataNode cannot be cast to org.openide.nodes.Node$Cookie at org.openide.loaders.XMLDataObject.getCookie(XMLDataObject.java:332) at org.netbeans.modules.xml.XMLDataObject.getCookie(XMLDataObject.java:191) at org.openide.loaders.DataNode.getCookie(DataNode.java:433) at org.openide.nodes.NodeLookup.addCookie(NodeLookup.java:98) at org.openide.nodes.NodeLookup.updateLookupAsCookiesAreChanged(NodeLookup.java:182) at org.openide.nodes.NodeLookup.beforeLookup(NodeLookup.java:153)
Created attachment 76436 [details] stacktrace
Build: NetBeans IDE Dev (Build 200904141401) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Linux, 2.6.27-11-generic, i386 User Comments: Selecting <this layer in context>/Toolbars/Debugging in a module project Stacktrace: java.lang.ClassCastException: org.netbeans.modules.settings.convertors.SerialDataNode cannot be cast to org.openide.nodes.Node$Cookie at org.openide.loaders.XMLDataObject.getCookie(XMLDataObject.java:332) at org.netbeans.modules.xml.XMLDataObject.getCookie(XMLDataObject.java:191) at org.openide.loaders.DataNode.getCookie(DataNode.java:428) at org.openide.nodes.NodeLookup.addCookie(NodeLookup.java:97) at org.openide.nodes.NodeLookup.updateLookupAsCookiesAreChanged(NodeLookup.java:189) at org.openide.nodes.NodeLookup.beforeLookup(NodeLookup.java:160)
Created attachment 80125 [details] stacktrace
Build: NetBeans IDE 6.7 Beta (Build 200904242137) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP, 5.1, x86 User Comments: I deleted the "Debugging" entry under "Toolbars" in the "this layer in context" tree of my branding module of my RCP app. Hey man this RCP rocks! Stacktrace: java.lang.ClassCastException: org.netbeans.modules.settings.convertors.SerialDataNode cannot be cast to org.openide.nodes.Node$Cookie at org.openide.loaders.XMLDataObject.getCookie(XMLDataObject.java:332) at org.netbeans.modules.xml.XMLDataObject.getCookie(XMLDataObject.java:191) at org.openide.loaders.DataNode.getCookie(DataNode.java:428) at org.openide.nodes.NodeLookup.addCookie(NodeLookup.java:97) at org.openide.nodes.NodeLookup.updateLookupAsCookiesAreChanged(NodeLookup.java:189) at org.openide.nodes.NodeLookup.beforeLookup(NodeLookup.java:160)
Created attachment 81528 [details] stacktrace
This issue already has 8 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145776
This issue already has 9 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145776
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145776
Created attachment 93946 [details] stacktrace Right clicked the file "Toolbars/Standard" in This Layer In Context in a module project
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145776
Nikita, please take a look.
I believe the issue relates to some other area but not XML. I'm going to change Product/Component to those which relates to the module where the SerialDataNode class is declared. I suppose it's better to understand where that class appears from. I also have a suspicion that the problem can be caused by fix for issue #154028
BTW, The SerialDataNode class locates in "Settins API" module and it is used only there. I reviewed the changes made with that module (with mercurial) and found the mentioned issue (#154028) is most close by subject and date of the first appearing of the exception from this issue.
core-main 3f33e754df20
Integrated into 'main-golden', will be available in build *201004170515* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3f33e754df20 User: S. Aubrecht <saubrecht@netbeans.org> Log: #157746 - CCE