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 196987 - java.io.FileNotFoundException: C:\DEV_JAVA\NetBeans 7.0 Projects\libs\nblibraries.properties (The process cannot access the file because it is being used by another process)
Summary: java.io.FileNotFoundException: C:\DEV_JAVA\NetBeans 7.0 Projects\libs\nblibra...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-03-22 22:30 UTC by jawwad
Modified: 2011-03-24 09:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177812


Attachments
stacktrace (1.67 KB, text/plain)
2011-03-22 22:30 UTC, jawwad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jawwad 2011-03-22 22:30:22 UTC
This bug was originally marked as duplicate of bug 170370, 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.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows XP

User Comments:
jawwad: Creating a library. After adding the jar and clicking ok. I got the error indicated in the summary above.




Stacktrace: 
java.io.FileNotFoundException: C:\DEV_JAVA\NetBeans 7.0 Projects\libs\nblibraries.properties (The process cannot access the file because it is being used by another process)
   at java.io.FileInputStream.open(FileInputStream.java:0)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at org.netbeans.modules.project.ant.ProjectLibraryProvider.loadProperties(ProjectLibraryProvider.java:463)
   at org.netbeans.modules.project.ant.ProjectLibraryProvider.access$400(ProjectLibraryProvider.java:129)
   at org.netbeans.modules.project.ant.ProjectLibraryProvider$Definitions.properties(ProjectLibraryProvider.java:401)
   at org.netbeans.modules.project.ant.ProjectLibraryProvider$1PP.getProperties(ProjectLibraryProvider.java:921)
Comment 1 jawwad 2011-03-22 22:30:31 UTC
Created attachment 107201 [details]
stacktrace
Comment 2 Jesse Glick 2011-03-22 23:36:08 UTC
Some unspecified other process is writing to libraries.properties, which on Windows prevents it from being read. Could log the exception at a lower level but the results will still be incorrect.
Comment 3 Jesse Glick 2011-03-22 23:37:03 UTC
core-main #3247ce0c4c55
Comment 4 Quality Engineering 2011-03-24 09:52:17 UTC
Integrated into 'main-golden', will be available in build *201103240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3247ce0c4c55
User: Jesse Glick <jglick@netbeans.org>
Log: #196987: java.io.FileNotFoundException: C:\DEV_JAVA\NetBeans 7.0 Projects\libs\nblibraries.properties (The process cannot access the file because it is being used by another process)