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 271420

Summary: ClassCastException: org.openide.loaders.DefaultDataObject cannot be cast to org.openide.loaders.DataFolder
Product: platform Reporter: aldobrucale <aldobrucale>
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: aldobrucale, ripeel, tdnorb
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 170888
Attachments: stacktrace
stacktrace
stacktrace

Description aldobrucale 2017-09-01 10:10:22 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.144-b01, Java(TM) SE Runtime Environment, 1.8.0_144-b01
OS: Linux

User Comments:
tdnorb: Attempting to create a layers.xml in a NBM Suite project

GUEST: Please Help me

aldobrucale: The source tree had been modified externally by git

GUEST: I do not know the way to reproduce, I think it happened while running a Grunt build




Stacktrace: 
java.lang.ClassCastException: org.openide.loaders.DefaultDataObject cannot be cast to org.openide.loaders.DataFolder
   at org.openide.loaders.DataObjectPool.deregister(DataObjectPool.java:860)
   at org.openide.loaders.DataObjectPool.access$900(DataObjectPool.java:60)
   at org.openide.loaders.DataObjectPool$Item.deregister(DataObjectPool.java:1000)
   at org.openide.loaders.DataObject.dispose(DataObject.java:230)
   at org.openide.loaders.DataObject.markInvalid0(DataObject.java:273)
   at org.openide.loaders.MultiDataObject.notifyFileDeleted(MultiDataObject.java:1442)
Comment 1 aldobrucale 2017-09-01 10:10:25 UTC
Created attachment 165070 [details]
stacktrace
Comment 2 aldobrucale 2017-09-01 10:22:06 UTC
Created attachment 165071 [details]
stacktrace

Clean and build a platform app project
Comment 3 Exceptions Reporter 2017-09-11 21:26:20 UTC
Created attachment 165114 [details]
stacktrace

Layer.xml deleted