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 91628 - Bizarre "Cannot delete file .nbattrs in ." message repeating
Summary: Bizarre "Cannot delete file .nbattrs in ." message repeating
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
: 99187 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-29 04:23 UTC by _ tboudreau
Modified: 2008-12-22 10:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-12-29 04:23:13 UTC
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 .
Comment 1 rmatous 2007-07-26 10:54:34 UTC
*** Issue 99187 has been marked as a duplicate of this issue. ***
Comment 2 _ tboudreau 2007-07-26 19:02:56 UTC
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.
Comment 3 rmatous 2007-10-30 15:45:22 UTC
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