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 157746 - [65cat] ClassCastException: org.netbeans.modules.settings.convertors.SerialDataNode cannot be cast to org.openide.nodes.Node$Cookie
Summary: [65cat] ClassCastException: org.netbeans.modules.settings.convertors.SerialDa...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 06:35 UTC by saeed_z_f
Modified: 2010-04-17 08:11 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 145776


Attachments
stacktrace (2.05 KB, text/plain)
2009-02-02 06:35 UTC, saeed_z_f
Details
stacktrace (2.05 KB, text/plain)
2009-04-15 10:32 UTC, aldobrucale
Details
stacktrace (3.89 KB, text/plain)
2009-05-05 11:22 UTC, Exceptions Reporter
Details
stacktrace (3.67 KB, text/plain)
2010-02-07 21:14 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description saeed_z_f 2009-02-02 06:35:35 UTC
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)
Comment 1 saeed_z_f 2009-02-02 06:35:39 UTC
Created attachment 76436 [details]
stacktrace
Comment 2 aldobrucale 2009-04-15 10:32:36 UTC
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)
Comment 3 aldobrucale 2009-04-15 10:32:40 UTC
Created attachment 80125 [details]
stacktrace
Comment 4 Exceptions Reporter 2009-05-05 11:21:56 UTC
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)
Comment 5 Exceptions Reporter 2009-05-05 11:22:05 UTC
Created attachment 81528 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-08-05 19:11:59 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145776
Comment 7 Exceptions Reporter 2009-08-27 15:14:03 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145776
Comment 8 Exceptions Reporter 2009-09-24 21:10:05 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145776
Comment 9 _ tboudreau 2010-02-07 21:14:14 UTC
Created attachment 93946 [details]
stacktrace

Right clicked the file "Toolbars/Standard" in This Layer In Context in a module project
Comment 10 Exceptions Reporter 2010-04-02 04:52:34 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145776
Comment 11 Sergey Lunegov 2010-04-05 12:20:41 UTC
Nikita, please take a look.
Comment 12 Nikita Krjukov 2010-04-13 19:12:25 UTC
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
Comment 13 Nikita Krjukov 2010-04-13 19:18:27 UTC
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.
Comment 14 Stanislav Aubrecht 2010-04-14 10:41:20 UTC
core-main 3f33e754df20
Comment 15 Quality Engineering 2010-04-17 08:11:21 UTC
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