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.
Build: NetBeans IDE Dev (Build 201007090001) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Windows 7 User Comments: athompson: opened Maven webapp project carlos_s9: I was trying to open a proyect Stacktrace: org.openide.filesystems.FSException: Cannot rename file attributes.xml~ in C:\Users\athompson\.netbeans\dev\var to attributes.xml. at org.openide.filesystems.LocalFileSystem.rename(LocalFileSystem.java:297) at org.openide.filesystems.LocalFileSystem$Impl.rename(LocalFileSystem.java:564) at org.openide.filesystems.DefaultAttributes.saveTable(DefaultAttributes.java:618) at org.openide.filesystems.DefaultAttributes.writeAttribute(DefaultAttributes.java:439) at org.netbeans.modules.masterfs.ExLocalFileSystem$OneFileAttributeAttachedToRoot.writeAttribute(ExLocalFileSystem.java:108) at org.netbeans.modules.masterfs.providers.Attributes.writeAttribute(Attributes.java:160)
Created attachment 100775 [details] stacktrace
Can you reproduce the problem?
Yup. Reproduced on 6.9 as well.
So can you list content of C:\Users\athompson\.netbeans\dev\var now and when the problem happens again? Is the attributes.xml there, is it writeable by your processes, etc.?
I can recreate the bug by deleting the "var" folder and starting the IDE.
OK, I'll try that too.
I have simulated similar exception in a unit test and made the code more robust: core-main#25ddcfb5dce9
Integrated into 'main-golden', will be available in build *201009090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/25ddcfb5dce9 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #188595: When serving an output stream, make sure parent directories are created