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 159852 - org.openide.filesystems.FileAlreadyLockedException: E:\workspace\NetbeansApp\jmanagment\src\java\hibernate.cfg.xml
Summary: org.openide.filesystems.FileAlreadyLockedException: E:\workspace\NetbeansApp\...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Petrov
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-07 16:33 UTC by matusz84
Modified: 2014-07-16 14:52 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 110903


Attachments
stacktrace (3.41 KB, text/plain)
2009-03-07 16:33 UTC, matusz84
Details
stacktrace (3.42 KB, text/plain)
2009-03-22 16:20 UTC, matusz84
Details
stacktrace (1.65 KB, text/plain)
2009-04-07 17:12 UTC, rdblaha1
Details
stacktrace (5.02 KB, text/plain)
2010-12-09 02:21 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matusz84 2009-03-07 16:33:33 UTC
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)
Comment 1 matusz84 2009-03-07 16:33:43 UTC
Created attachment 77862 [details]
stacktrace
Comment 2 Jiri Skrivanek 2009-03-09 09:51:54 UTC
Look at stact trace below who is holding the lock.
http://statistics.netbeans.org/analytics/exception.do?id=123990
Comment 3 matusz84 2009-03-22 16:20:29 UTC
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)
Comment 4 matusz84 2009-03-22 16:20:41 UTC
Created attachment 78596 [details]
stacktrace
Comment 5 rdblaha1 2009-04-07 17:12:18 UTC
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)
Comment 6 rdblaha1 2009-04-07 17:12:28 UTC
Created attachment 79667 [details]
stacktrace
Comment 7 Exceptions Reporter 2009-08-05 18:59:58 UTC
This issue already has 14 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=110903
Comment 8 Chiana 2010-12-09 02:21:49 UTC
Created attachment 103781 [details]
stacktrace

Created a new persistent unit.
Comment 9 Sergey Petrov 2010-12-10 09:44:37 UTC
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.
Comment 10 Sergey Petrov 2014-07-16 14:52:50 UTC
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.