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 59365 - o.o.filesystems.FileAlreadyLockedException thrown when project.properties changes not saved, but Properties modified from UI
Summary: o.o.filesystems.FileAlreadyLockedException thrown when project.properties cha...
Status: VERIFIED DUPLICATE of bug 50992
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-28 13:11 UTC by jlaskowski
Modified: 2006-01-10 09:43 UTC (History)
0 users

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 jlaskowski 2005-05-28 13:11:32 UTC
o.o.filesystems.FileAlreadyLockedException thrown when project.properties
changes not saved, but Properties modified from UI

1/ Change project.properties file and don't save it
2/ Go to Project Properties and set "Source Level" to another value
3/ Accept the change, i.e. press OK button

The following exception is thrown:

org.openide.filesystems.FileAlreadyLockedException:
C:/projs/netbeans/serverplugins/geronimo/nbproject/project.properties
	at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:166)
	at org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:155)
	at
org.netbeans.spi.project.support.ant.ProjectProperties$PP$1.run(ProjectProperties.java:216)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:96)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:450)
	at
org.netbeans.spi.project.support.ant.ProjectProperties$PP.write(ProjectProperties.java:203)
	at
org.netbeans.spi.project.support.ant.ProjectProperties.write(ProjectProperties.java:109)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.save(AntProjectHelper.java:525)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper.access$100(AntProjectHelper.java:63)
	at
org.netbeans.spi.project.support.ant.AntProjectHelper$1.save(AntProjectHelper.java:101)
	at
org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.saveProject(AntBasedProjectFactorySingleton.java:146)
	at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:518)
	at org.openide.util.Mutex.writeAccess(Mutex.java:324)
	at org.netbeans.api.project.ProjectManager.saveProject(ProjectManager.java:511)
	at
org.netbeans.modules.apisupport.project.ui.customizer.CustomizerProviderImpl.save(CustomizerProviderImpl.java:338)
	at
org.netbeans.modules.apisupport.project.ui.customizer.CustomizerProviderImpl$OptionListener.actionPerformed(CustomizerProviderImpl.java:268)
	at
org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.actionPerformed(CustomizerDialog.java:111)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1863)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2183)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.Component.processMouseEvent(Component.java:5921)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3256)
	at java.awt.Component.processEvent(Component.java:5686)
	at java.awt.Container.processEvent(Container.java:1967)
	at java.awt.Component.dispatchEventImpl(Component.java:4360)
	at java.awt.Container.dispatchEventImpl(Container.java:2025)
	at java.awt.Component.dispatchEvent(Component.java:4194)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4229)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3893)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3823)
	at java.awt.Container.dispatchEventImpl(Container.java:2011)
	at java.awt.Window.dispatchEventImpl(Window.java:2012)
	at java.awt.Component.dispatchEvent(Component.java:4194)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:592)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:171)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:119)
Comment 1 Martin Krauskopf 2005-05-28 14:11:32 UTC
Reproduced, thanks.
Comment 2 Jesse Glick 2005-05-28 16:38:38 UTC
True of all project types. No immediate plans to fix; for now just don't do
that. See issue #50992 - needs to be handled at a lower infrastructure level.

By the way when reporting a bug it is helpful to

- mention the build number in the description (e.g. 4.2 dev build nnnnnnnnn)

- be more specific about what you are doing (e.g. here you did not even mention
that you are using a NB module project! important info)

- attach stack traces (and/or your messages.log file) rather than pasting into
the description field (avoids line wrapping problems and makes it easier to find
typed comments in the bug report)

*** This issue has been marked as a duplicate of 50992 ***
Comment 3 Marian Mirilovic 2006-01-10 09:43:18 UTC
verified duplicate