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 167339 - org.openide.filesystems.FileAlreadyLockedException: /home/mbains/workspace/general_c_runs/radcode/nbproject/private/private.xml
Summary: org.openide.filesystems.FileAlreadyLockedException: /home/mbains/workspace/ge...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 179034
  Show dependency tree
 
Reported: 2009-06-18 22:54 UTC by gentoo_daemon
Modified: 2010-02-01 04:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 129619


Attachments
stacktrace (2.27 KB, text/plain)
2009-06-18 22:54 UTC, gentoo_daemon
Details
stacktrace (5.05 KB, text/plain)
2009-09-01 16:25 UTC, Exceptions Reporter
Details
Exception (2.37 KB, text/plain)
2009-12-24 04:55 UTC, Alexander Simon
Details
Thread dump on exception (25.77 KB, text/plain)
2009-12-25 07:56 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo_daemon 2009-06-18 22:54:09 UTC
Build: NetBeans IDE 6.7 RC2 (Build 200906042131)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-14-generic, i386

User Comments:
gentoo_daemon: Was trying to turn on code assistance in C++. Could not get it to work.

klauern: Modified the project properties using the dialog and clicked OK.



Stacktrace: 
org.openide.filesystems.FileAlreadyLockedException: /home/mbains/workspace/general_c_runs/radcode/nbproject/private/private.xml
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:112)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:101)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:296)
        at org.netbeans.spi.project.support.ant.AntProjectHelper$2.run(AntProjectHelper.java:337)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:509)
Comment 1 gentoo_daemon 2009-06-18 22:54:15 UTC
Created attachment 83781 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-06-18 22:54:20 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=129619
Comment 3 Jiri Skrivanek 2009-06-19 07:45:10 UTC
There is a bunch of similar exceptions in messages.log. Please, evaluate.
Comment 4 Exceptions Reporter 2009-09-01 16:25:42 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
org.openide.filesystems.FileAlreadyLockedException: C:\Documents and Settings\bnicely\My Documents\NetBeansProjects\StaffListStrutsHibernate\nbproject\project.xml
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:112)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:101)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:296)
        at org.netbeans.spi.project.support.ant.AntProjectHelper$2.run(AntProjectHelper.java:337)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:509)
Comment 5 Exceptions Reporter 2009-09-01 16:25:48 UTC
Created attachment 86925 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-09-01 16:25:53 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=129619
Comment 7 Leonid Lenyashin 2009-10-23 09:33:45 UTC
I do not see any cnd trace here...
Comment 8 Vladimir Voskresensky 2009-10-23 10:14:48 UTC
Platform team, please, evaluate. There are different entry points (Java, C++) but it was not reported against 6.8 trunk
versions => probably invalid
Comment 9 Jiri Skrivanek 2009-10-23 10:25:13 UTC
Probably fixed in 6.8.
Comment 10 Alexander Simon 2009-12-24 04:53:49 UTC
reproduced in NB6.8
Comment 11 Alexander Simon 2009-12-24 04:55:56 UTC
Created attachment 92902 [details]
Exception
Comment 12 Alexander Simon 2009-12-25 07:56:29 UTC
Created attachment 92921 [details]
Thread dump on exception
Comment 13 Alexander Simon 2009-12-25 12:39:32 UTC
P2 because block P2 issue.
68patch-candidate because block 68patch-candidate issue.
Please, evaluate issue before 68patch-candidate nominate date because CND team should have enough to fix-up own issue
Comment 14 Alexander Simon 2009-12-25 12:41:02 UTC
sorry, enough *time*
Comment 15 Jiri Skrivanek 2010-01-04 06:31:52 UTC
Please, run it with enabled assertions. It should be printed in stack trace who is holding the lock.
Comment 16 Alexander Simon 2010-01-04 07:53:07 UTC
Does thread dump contain needed information?
Comment 17 Jiri Skrivanek 2010-01-04 08:19:39 UTC
I don't see it. Exception in thread dump is little bit different. Parsing & Indexing Loop thread opens FileInputStream but FileObj.getOutputStream() should wait 2 seconds at most if input stream is open for the same file. I don't know why opening input stream should take too much time, if I expect your project.xml is not too big and it is not on remote drive.
Comment 18 Jaroslav Tulach 2010-02-01 04:59:20 UTC
I do not understand what kind of fix you expect from platform/filesystems? The library is behaving perfectly OK by throwing this exception (someone else is using the library incorrectly). I have no idea who is that, but follow the last Jirka's advice to run the system with assertions turned on to get more debugging info. Unless that is provided, I don't see anything I can do.