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 90928 - localhistory: FileAlreadyLockedException while Rollbaking changes.
Summary: localhistory: FileAlreadyLockedException while Rollbaking changes.
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: diff-issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-12 10:00 UTC by Peter Pis
Modified: 2007-01-09 08:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
FileAlreadyLockedException (955 bytes, text/plain)
2006-12-12 10:01 UTC, Peter Pis
Details
IllegalArgumentException (1.32 KB, text/plain)
2006-12-19 13:52 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2006-12-12 10:00:30 UTC
NetBeans IDE Dev (Build 061212)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Linux version 2.6.9-1.667 running on i386
en_US (nb); UTF-8

Steps:
1. Open file, modify and save it.
2. Modify the same file but don't save it for now.
3. Select it and invoke "Local History | Show Local History" action on it.
4. Expand "Today" node and select some revision and invoke "Rollback from
History" action.

Exception is thrown.

org.openide.filesystems.FileAlreadyLockedException:
home.local/pvcs/test/lh/JavaAppLocalHistory/src/javaapplocalhistory/NewClass2.java
        at org.netbeans.modules.masterfs.Delegate.lock(Delegate.java:175)
        at
org.netbeans.modules.masterfs.MasterFileObject.lock(MasterFileObject.java:165)
        at
org.openide.filesystems.FileObject.getOutputStream(FileObject.java:495)
        at
org.netbeans.modules.localhistory.ui.actions.RollbackAction.getOutputStream(RollbackAction.java:84)
Comment 1 Peter Pis 2006-12-12 10:01:13 UTC
Created attachment 36608 [details]
FileAlreadyLockedException
Comment 2 Tomas Stupka 2006-12-13 16:01:42 UTC
fixed

Checking in RollbackAction.java;
/cvs/versioncontrol/localhistory/src/org/netbeans/modules/localhistory/ui/actions/Attic/RollbackAction.java,v
 <--  RollbackAction.java
new revision: 1.1.2.5; previous revision: 1.1.2.4
done
Comment 3 Peter Pis 2006-12-19 13:50:52 UTC
Same scenario fails with IllegalArgumentException.
Comment 4 Peter Pis 2006-12-19 13:52:01 UTC
Created attachment 36801 [details]
IllegalArgumentException
Comment 5 Tomas Stupka 2006-12-21 11:55:22 UTC
1. the attached exception is a filenotfoundexception

2. could not reproduce on linux and windows

please try an actual build and feel free to reopen


Comment 6 Peter Pis 2007-01-05 09:02:57 UTC
Verified.
Comment 7 Peter Pis 2007-01-09 08:30:44 UTC
Reassigning localhistory issues to appropriate component.