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 188595 - [69cat] org.openide.filesystems.FSException: Cannot rename file attributes.xml~ in C:\Users\athompson\.netbeans\dev\var to attributes.xml.
Summary: [69cat] org.openide.filesystems.FSException: Cannot rename file attributes.xm...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 14:00 UTC by athompson
Modified: 2012-07-30 20:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165724


Attachments
stacktrace (3.38 KB, text/plain)
2010-07-12 14:00 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2010-07-12 14:00:05 UTC
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)
Comment 1 athompson 2010-07-12 14:00:09 UTC
Created attachment 100775 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-07-16 13:09:43 UTC
Can you reproduce the problem?
Comment 3 athompson 2010-07-17 10:08:03 UTC
Yup.  Reproduced on 6.9 as well.
Comment 4 Jaroslav Tulach 2010-07-21 08:04:10 UTC
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.?
Comment 5 athompson 2010-09-07 21:21:06 UTC
I can recreate the bug by deleting the "var" folder and starting the IDE.
Comment 6 Jaroslav Tulach 2010-09-08 05:52:16 UTC
OK, I'll try that too.
Comment 7 Jaroslav Tulach 2010-09-08 08:46:36 UTC
I have simulated similar exception in a unit test and made the code more robust: 
core-main#25ddcfb5dce9
Comment 8 Quality Engineering 2010-09-09 03:06:58 UTC
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