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 227866

Summary: AssertionError: childName: C:\Users\OwnerH\Documents\NetBeansProjects\SMS\nbproject folderName: C:\Users\OwnerH\Documents\NetBeansProjects\sms
Product: platform Reporter: imad_aqra
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED INVALID    
Severity: normal CC: diesil, mpapamichael
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 169836
Attachments: stacktrace

Description imad_aqra 2013-03-24 16:06:56 UTC
This bug was originally marked as duplicate of bug 161960, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
diesil: renaming project




Stacktrace: 
java.lang.AssertionError: childName: C:\Users\OwnerH\Documents\NetBeansProjects\SMS\nbproject folderName: C:\Users\OwnerH\Documents\NetBeansProjects\sms
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:135)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChild(ChildrenSupport.java:193)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.getChild(ChildrenSupport.java:108)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.getChild(FolderObj.java:682)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createFolderImpl(FolderObj.java:259)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$2.call(FolderObj.java:319)
Comment 1 imad_aqra 2013-03-24 16:06:58 UTC
Created attachment 132994 [details]
stacktrace
Comment 2 Jaroslav Tulach 2013-07-23 10:29:45 UTC
Seems like a clash between
org.netbeans.modules.autosave.command.AutoSaveController(:123)
and regular save action:
org.openide.actions.SaveAction.performAction

Filesystem API properly throws an exception in case two threads try to obtain output stream for the same file object. From the point of view of filesystem API, this is not a bug - marking invalid.