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 187074 - FileAlreadyLockedException on DefaultDataObject
Summary: FileAlreadyLockedException on DefaultDataObject
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 08:35 UTC by imomoi
Modified: 2010-06-17 03:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167058


Attachments
stacktrace (4.01 KB, text/plain)
2010-06-02 08:35 UTC, imomoi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description imomoi 2010-06-02 08:35:31 UTC
Build: NetBeans IDE 6.9 RC1 (Build 201005242201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP

User Comments:
jdstroy: Renaming files




Stacktrace: 
org.openide.filesystems.FileAlreadyLockedException: C:\develop\guvdr-2031\incoming-documents\vendor\plugins\documents_index\app\views\documents\index\_application_selector.haml
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:114)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:103)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:331)
   at org.openide.loaders.DefaultDataObject.handleRename(DefaultDataObject.java:125)
   at org.openide.loaders.DataObject$1Op.run(DataObject.java:671)
   at org.openide.loaders.DataObject$1WrapRun.run(DataObject.java:868)
Comment 1 imomoi 2010-06-02 08:35:35 UTC
Created attachment 99745 [details]
stacktrace
Comment 2 imomoi 2010-06-03 05:44:37 UTC
I tried to rename locally modified and unsaved file
Comment 3 Jaroslav Tulach 2010-06-15 21:47:08 UTC
core-main#9784b2c431d6
Comment 4 Quality Engineering 2010-06-17 03:18:48 UTC
Integrated into 'main-golden', will be available in build *201006170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9784b2c431d6
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #187074: Use primaryEntry.takeLock