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 186952 - Cannot get exclusive access to project.properties
Summary: Cannot get exclusive access to project.properties
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: GWT (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal with 3 votes (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-30 09:24 UTC by Tim Lebedkov
Modified: 2016-07-07 08:55 UTC (History)
1 user (show)

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 Tim Lebedkov 2010-05-30 09:24:21 UTC
I have an action in GWT4NB that changes libraries in a project and I get this exception very often:

SEVERE [org.openide.util.Exceptions]
msg
Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to C:\Users\t\Documents\NetBeansProjects\WebApplication4\nbproject\project.properties (probably opened for reading).
        at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:115)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusionSupport.addResource(MutualExclusionSupport.java:99)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:104)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:87)
        at org.netbeans.spi.project.support.ant.ProjectProperties$PP$1.run(ProjectProperties.java:261)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:122)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:539)
        at org.netbeans.spi.project.support.ant.ProjectProperties$PP.runSaveAA(ProjectProperties.java:229)
        at org.netbeans.spi.project.support.ant.ProjectProperties$PP.write(ProjectProperties.java:247)
        at org.netbeans.spi.project.support.ant.ProjectProperties.write(ProjectProperties.java:138)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.save(AntProjectHelper.java:619)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.access$100(AntProjectHelper.java:106)
        at org.netbeans.spi.project.support.ant.AntProjectHelper$1.save(AntProjectHelper.java:144)
        at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.saveProject(AntBasedProjectFactorySingleton.java:439)
        at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:644)
        at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:633)
        at org.openide.util.Mutex.writeAccess(Mutex.java:433)
        at org.netbeans.api.project.ProjectManager.saveProject(ProjectManager.java:633)
        at org.netbeans.modules.java.api.common.classpath.ClassPathModifierSupport$3.run(ClassPathModifierSupport.java:282)
        at org.netbeans.modules.java.api.common.classpath.ClassPathModifierSupport$3.run(ClassPathModifierSupport.java:258)
        at org.openide.util.Mutex.writeAccess(Mutex.java:433)
        at org.netbeans.modules.java.api.common.classpath.ClassPathModifierSupport.handleLibraryClassPathItems(ClassPathModifierSupport.java:257)
        at org.netbeans.modules.java.api.common.classpath.ClassPathModifierSupport.handleLibraries(ClassPathModifierSupport.java:225)
        at org.netbeans.modules.web.project.classpath.WebProjectLibrariesModifierImpl.handleCompileLibraries(WebProjectLibrariesModifierImpl.java:112)
        at org.netbeans.modules.web.project.classpath.WebProjectLibrariesModifierImpl.removeCompileLibraries(WebProjectLibrariesModifierImpl.java:107)
        at org.netbeans.modules.gwt4nb.GWTWebModuleExtender.upgradeGWT(GWTWebModuleExtender.java:859)
        at org.netbeans.modules.gwt4nb.GWTWebModuleExtender.upgradeGWTVersion(GWTWebModuleExtender.java:788)
        at org.netbeans.modules.gwt4nb.ChangeGWTSDKAction$MyWorker.construct(ChangeGWTSDKAction.java:100)
        at org.netbeans.modules.gwt4nb.GWT4NBSwingWorker$2.run(GWT4NBSwingWorker.java:116)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 1 Peter Pis 2010-05-31 08:46:35 UTC
Please evaluate.
Comment 2 Tim Lebedkov 2010-08-21 12:10:24 UTC
any news here?
Comment 3 Martin Balin 2016-07-07 08:55:38 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss