Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#154 ClassCastException org.netbeans.modules.xml.XMLDataObject

closed-fixed
Ernie Rael
NetBeans (62)
9
2012-05-24
2011-11-21
Michael N
No

Latest updates to netbeans-trunk-nightly causes an exception with nbvi 1.4.3 (also w/ 1.4.2). This just might be a netbeans issue, but it happens after a clean install of netbeans followed by *only* installing the jvi plugin.

Exception is:

java.lang.ClassCastException: org.netbeans.modules.xml.XMLDataObject cannot be cast to org.openide.loaders.InstanceDataObject
at org.openide.loaders.InstanceDataObject.storeSettings(InstanceDataObject.java:376)
at org.openide.loaders.InstanceDataObject.access$900(InstanceDataObject.java:91)
at org.openide.loaders.InstanceDataObject$Creator.run(InstanceDataObject.java:1540)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:566)
at org.openide.loaders.DataObjectPool.runAtomicActionSimple(DataObjectPool.java:229)
at org.openide.loaders.InstanceDataObject$Creator.createInstanceDataObject(InstanceDataObject.java:1554)
at org.openide.loaders.InstanceDataObject.create(InstanceDataObject.java:342)
at org.openide.loaders.InstanceDataObject.create(InstanceDataObject.java:318)
at org.netbeans.modules.jvi.KeyActionsFS.injectKeyActionsLayer(KeyActionsFS.java:67)
at org.netbeans.modules.jvi.Module.restored(Module.java:284)
at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:426)
[catch] at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:366)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1080)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:339)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:275)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:294)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
at org.netbeans.core.startup.Main.start(Main.java:308)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:662)

See also:
http://statistics.netbeans.org/analytics/exception.do?id=544383
https://netbeans.org/bugzilla/show_bug.cgi?id=205336

Discussion

  • Ernie Rael
    Ernie Rael
    2011-11-21

    Oh crap ;-)

    Thanks Michael, I'll download latest and see what I can see.

     
  • Ernie Rael
    Ernie Rael
    2011-11-30

    jVi workaround works; posting soon. NB team still discussing issues, see NB bug.

     
  • Ernie Rael
    Ernie Rael
    2011-12-03

    Fix now available in nbvi-1.4.5.rc2

     
  • Ernie Rael
    Ernie Rael
    2011-12-03

    • priority: 5 --> 9
    • assigned_to: nobody --> err
    • status: open --> open-fixed
     
  • Ernie Rael
    Ernie Rael
    2012-05-24

    • status: open-fixed --> closed-fixed