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.
I just did a search for the text "ProxyLookup" over the serialversion/ module sources on branch "book". After the search completed, a dialog box popped up multiple times saying "Cannot delete file .nbattrs in ." with an OK button. Generally this sort of thing is alarming - why is it even trying to delete it, where is . and so forth. org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot delete file .nbattrs in . at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:109) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$BridgeForAttributes.delete(BaseFileObj.java:523) at org.openide.filesystems.DefaultAttributes.saveTable(DefaultAttributes.java:554) [catch] at org.openide.filesystems.DefaultAttributes.deleteAttributes(DefaultAttributes.java:491) at org.netbeans.modules.masterfs.providers.Attributes.copyAllToUserDir(Attributes.java:160) at org.netbeans.modules.masterfs.providers.Attributes.attributes(Attributes.java:141) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getAttributes(BaseFileObj.java:210) at org.netbeans.modules.masterfs.MasterFileObject.getAttributes(MasterFileObject.java:132) at org.openide.loaders.FolderOrder.readPartials(FolderOrder.java:178) at org.openide.loaders.FolderOrder.getOrderingConstraints(FolderOrder.java:135) at org.openide.loaders.FolderList.carefullySort(FolderList.java:560) at org.openide.loaders.FolderList.createBoth(FolderList.java:814) at org.openide.loaders.FolderList.getObjects(FolderList.java:515) at org.openide.loaders.FolderList.access$300(FolderList.java:52) at org.openide.loaders.FolderList$ListTask.run(FolderList.java:905) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963) Caused by: ALL [null]: Cannot delete file .nbattrs in . WARNING [org.openide.filesystems.ExternalUtil] org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot delete file .nbattrs in . at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:109) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$BridgeForAttributes.delete(BaseFileObj.java:523) at org.openide.filesystems.DefaultAttributes.saveTable(DefaultAttributes.java:554) [catch] at org.openide.filesystems.DefaultAttributes.deleteAttributes(DefaultAttributes.java:491) at org.netbeans.modules.masterfs.providers.Attributes.copyAllToUserDir(Attributes.java:160) at org.netbeans.modules.masterfs.providers.Attributes.attributes(Attributes.java:141) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getAttributes(BaseFileObj.java:210) at org.netbeans.modules.masterfs.MasterFileObject.getAttributes(MasterFileObject.java:132) at org.openide.loaders.FolderOrder.readPartials(FolderOrder.java:178) at org.openide.loaders.FolderOrder.getOrderingConstraints(FolderOrder.java:135) at org.openide.loaders.FolderList.carefullySort(FolderList.java:560) at org.openide.loaders.FolderList.createBoth(FolderList.java:814) at org.openide.loaders.FolderList.getObjects(FolderList.java:515) at org.openide.loaders.FolderList.access$300(FolderList.java:52) at org.openide.loaders.FolderList$ListTask.run(FolderList.java:905) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963) Caused by: ALL [null]: Cannot delete file .nbattrs in . WARNING [org.openide.filesystems.ExternalUtil] org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot delete file .nbattrs in . at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:109) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$BridgeForAttributes.delete(BaseFileObj.java:523) at org.openide.filesystems.DefaultAttributes.saveTable(DefaultAttributes.java:554) [catch] at org.openide.filesystems.DefaultAttributes.deleteAttributes(DefaultAttributes.java:491) at org.netbeans.modules.masterfs.providers.Attributes.copyAllToUserDir(Attributes.java:160) at org.netbeans.modules.masterfs.providers.Attributes.attributes(Attributes.java:141) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getAttributes(BaseFileObj.java:210) at org.netbeans.modules.masterfs.MasterFileObject.getAttributes(MasterFileObject.java:132) at org.openide.loaders.FolderOrder.readPartials(FolderOrder.java:178) at org.openide.loaders.FolderOrder.getOrderingConstraints(FolderOrder.java:135) at org.openide.loaders.FolderList.carefullySort(FolderList.java:560) at org.openide.loaders.FolderList.createBoth(FolderList.java:814) at org.openide.loaders.FolderList.getObjects(FolderList.java:515) at org.openide.loaders.FolderList.access$300(FolderList.java:52) at org.openide.loaders.FolderList$ListTask.run(FolderList.java:905) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963) Caused by: ALL [null]: Cannot delete file .nbattrs in .
*** Issue 99187 has been marked as a duplicate of this issue. ***
The more important thing is, there should be *no* code in the Filesystems API that pops up a dialog (either by annotating an exception as ErrorManager.USER or something else). The exception should be thrown and handled at the UI layer, which knows whether the user tried to delete something or it was programmatic deletion. Code that pops dialogs in non-ui libraries is evil - you never know how it will be used, so the UI piece should be responsible for handling the exception.
No popup from FS anymore + fixing cause: /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/providers/Attributes.java,v <-- Attributes.java new revision: 1.12; previous revision: 1.11