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 125402 - FileAlreadyLockedException after refactoring
Summary: FileAlreadyLockedException after refactoring
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 129373 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-16 15:56 UTC by Mikhail Matveev
Modified: 2016-07-07 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception log (2.15 KB, text/plain)
2008-01-16 15:57 UTC, Mikhail Matveev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Matveev 2008-01-16 15:56:00 UTC
After several Refactoring, Apply Design Pattern and Undo operations in Design View for newLoanApplication schema, I got
FileAlreadyLockedException. See log for details.
Comment 1 Mikhail Matveev 2008-01-16 15:57:17 UTC
Created attachment 55153 [details]
Exception log
Comment 2 Mikhail Matveev 2008-01-16 15:58:08 UTC
Will try to find exact scenario to reproduce
Comment 3 Mikhail Matveev 2008-01-16 16:38:09 UTC
Scenario:

1. Create newLoanApplication schema.
2. Switch to Design View.
3. Rename some field inline (select field, press F2, enter new name, press Enter).
4. Refactor -> Undo.
5. Apply Garden of Eden design pattern.
5. Refactor -> Redo.
Comment 4 Sonali Kochar 2008-01-18 19:37:53 UTC
I use the BackupFacility provided by core Refactoring API to do undo/redo. The stack trace shows the exception is from
BackupFacility -it is unable to restore the file. Transferring to the refactoring team so that they can evaluate.
Comment 5 Jan Becicka 2008-01-21 09:46:15 UTC
You cannot call restore on locked files.
Comment 6 Sonali Kochar 2008-03-06 14:22:40 UTC
*** Issue 129373 has been marked as a duplicate of this issue. ***
Comment 7 Martin Balin 2016-07-07 09:56:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss