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 63522 - Errors during an project operations should be handled gracefully
Summary: Errors during an project operations should be handled gracefully
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 14:28 UTC by zikmund
Modified: 2005-09-19 16:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
org.openide.filesystems.FileAlreadyLockedException: D:\NetBeans at org.netbeans.modules.masterfs.filebasedfs.fileobjects.WriteLock.getInstance(WriteLock.java:107) (2.22 KB, text/plain)
2005-09-01 14:34 UTC, zikmund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-09-01 14:28:50 UTC
Build 200508311800

1) Have a project with opened file (and/or modified)
2) Rename/Move project
3) ERRORs:

E1 - Exception appears - see attachment
E2 - Project is closed
E3 - Original project is not fully deleted
E4 - There's no warning message that some files couldn't be deleted
Comment 1 zikmund 2005-09-01 14:34:37 UTC
Created attachment 24458 [details]
org.openide.filesystems.FileAlreadyLockedException: D:\NetBeans at org.netbeans.modules.masterfs.filebasedfs.fileobjects.WriteLock.getInstance(WriteLock.java:107)
Comment 2 zikmund 2005-09-01 14:37:42 UTC
Probably duplicate of issue 63237?

Although it does not cover E4 - no warning message when some files can't be deleted.
Comment 3 Jan Lahoda 2005-09-01 14:46:59 UTC
First of all, although it may seem that the exception is thrown before the
project is closed, the project is closed before the exception occurs.

So I think E2 is not a bug. E3 is derived from E1 (and may happen for various
reasons). E1 may (or may not) be duplicate of issue #63237.

Main problem IMO is in E4: the exception should be processed, a user friendly
dialog should be shown and (ideally) the moved project should be opened.
Comment 4 Jan Lahoda 2005-09-19 15:16:37 UTC
Changing the summary to cover E4.
Comment 5 Jan Lahoda 2005-09-19 16:06:31 UTC
Fixed in trunk:
Checking in src/org/netbeans/modules/project/uiapi/Bundle.properties;
/cvs/projects/projectuiapi/src/org/netbeans/modules/project/uiapi/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.9; previous revision: 1.8
done
Checking in
src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementation.java;
/cvs/projects/projectuiapi/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementation.java,v
 <--  DefaultProjectOperationsImplementation.java
new revision: 1.13; previous revision: 1.12
done
Checking in
test/unit/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementationTest.java;
/cvs/projects/projectuiapi/test/unit/src/org/netbeans/modules/project/uiapi/DefaultProjectOperationsImplementationTest.java,v
 <--  DefaultProjectOperationsImplementationTest.java
new revision: 1.6; previous revision: 1.5
done