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.
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 Stacktrace: org.openide.filesystems.FileAlreadyLockedException: E:\workspace\NetbeansApp\jmanagment\src\java\hibernate.cfg.xml at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:107) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:96) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:277) at org.openide.loaders.MultiDataObject$Entry.takeLock(MultiDataObject.java:1189) at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$XmlEnv.takeLock(XmlMultiViewEditorSupport.java:528) at org.openide.text.DataEditorSupport$Env.outputStream(DataEditorSupport.java:695)
Created attachment 77862 [details] stacktrace
Look at stact trace below who is holding the lock. http://statistics.netbeans.org/analytics/exception.do?id=123990
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: org.openide.filesystems.FileAlreadyLockedException: E:\workspace\AgataMalkowska\WebApp\e-wedding\src\java\hibernate.cfg.xml at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:107) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:96) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:277) at org.openide.loaders.MultiDataObject$Entry.takeLock(MultiDataObject.java:1189) at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$XmlEnv.takeLock(XmlMultiViewEditorSupport.java:528) at org.openide.text.DataEditorSupport$Env.outputStream(DataEditorSupport.java:695)
Created attachment 78596 [details] stacktrace
Build: NetBeans IDE 6.5.1 (Build 200903060201) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP, 5.1, x86 User Comments: I had just started a Java Web project with ICEFaces framework. In the source packages I realized that I needed to change the package for the Java files. I changed the package name. Then I clicked on the icon for correcting the package name by moving the java program to that package and the error occurred. Stacktrace: org.openide.filesystems.FileAlreadyLockedException: C:\source\Rel51\Production\Web\MTRWeb\src\java\mtrweb\Page1.java at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:107) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:96) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:277) at org.openide.loaders.MultiDataObject$Entry.takeLock(MultiDataObject.java:1189) at org.openide.loaders.FileEntry.move(FileEntry.java:110) at org.openide.loaders.MultiDataObject.handleMove(MultiDataObject.java:622)
Created attachment 79667 [details] stacktrace
This issue already has 14 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=110903
Created attachment 103781 [details] stacktrace Created a new persistent unit.
There are quite a lot of unrelated @filelreadylocked@ - for hibernate, for persistence, for plain java files (but may be visual web related). I was able to reproduce the issue with hibernate config with 174044 issue, but can't reproduce for persisnce.xml, please provide some steps.
I don't see any reports after 7.2.1, if anybody can reproduce, please file an issue. Also this issue is very overloaded by locks from different areas jsp locks, java file locks etc.