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 66846 - [50cat] FileAlreadyLockedException when saving Module Properties
Summary: [50cat] FileAlreadyLockedException when saving Module Properties
Status: VERIFIED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 19:39 UTC by rrochat
Modified: 2006-01-10 09:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file with complete stack trace (56.18 KB, text/plain)
2005-10-14 19:40 UTC, rrochat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rrochat 2005-10-14 19:39:10 UTC
[ BUILD # : 200510131600 ]
[ JDK VERSION : 1.5.0_05 ]

1. Open a module's manifest and make some change (add a comment line).  Do not save.
2. Open the module properties dialog, make some change (i.e. change the module type), and save.
This results in a FileAlreadyLockedException:

org.openide.filesystems.FileAlreadyLockedException: D:/chimera/dev3/ChimeraSuite/chimera-experimental/manifest.mf
	at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:169)
	at org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:155)
	at org.netbeans.modules.apisupport.project.Util.storeManifest(Util.java:411)
	at org.netbeans.modules.apisupport.project.ui.customizer.SingleModuleProperties.storeManifestChanges(SingleModuleProperties.java:600)
	at org.netbeans.modules.apisupport.project.ui.customizer.SingleModuleProperties.storeProperties(SingleModuleProperties.java:511)
	at org.netbeans.modules.apisupport.project.ui.customizer.CustomizerProviderImpl.storeProperties(CustomizerProviderImpl.java:60)
	at org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer$1.run(BasicCustomizer.java:168)
	at org.openide.util.Mutex.writeAccess(Mutex.java:324)
	at org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer.save(BasicCustomizer.java:166)
Comment 1 rrochat 2005-10-14 19:40:02 UTC
Created attachment 25965 [details]
log file with complete stack trace
Comment 2 Jesse Glick 2005-10-14 19:44:03 UTC
Don't do that then. Similar to issue #50992 but much more specific.
Comment 3 Marian Mirilovic 2006-01-10 09:41:51 UTC
verified