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 8727 - PropertyVetoException on unmount FileSystem
Summary: PropertyVetoException on unmount FileSystem
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other All
: P3 normal (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-01 20:00 UTC by pzajac
Modified: 2008-12-22 19:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception stacktrace (3.35 KB, text/plain)
2000-12-01 20:02 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2000-12-01 20:00:56 UTC
Local filesystem mounted. Some java file of the filesystem opened
in editor. File is changed  in editor but no saved.
You unmount the filesystem now. Qestion dialog is showed :
File is not saved, Save ? >Yes >No >Cancel
If you chose Cancel Exception thrown:

java.lang.reflect.UndeclaredThrowableException: null
java.lang.reflect.UndeclaredThrowableException:
java.lang.reflect.InvocationTargetException: java.beans.PropertyVetoException

Filesystem isn't showed in repository and edited file rest opened in editor.
You can find filesystem in Projects Settings->File System Settings folder.
But it is not possible unmount filesystem from this place.
Comment 1 pzajac 2000-12-01 20:02:59 UTC
Created attachment 362 [details]
Exception stacktrace
Comment 2 Jesse Glick 2000-12-04 12:10:59 UTC
What build? (Please set the Version field too, unless this is really in 3.0.)
Comment 3 Marek Grummich 2000-12-06 10:25:59 UTC
I've assumed version was reported wrong. Changed to 3.1
Comment 4 Robert Dankanin 2000-12-08 04:51:59 UTC
It's working ok for me (w2k, [stable31-24])
Should we change Platform/OS if it still appears?
Or is it working ok elsewhere now?
Comment 5 Pavel Buzek 2000-12-08 14:41:59 UTC
Exception is not thrown but the behaviour is still not what the user would
expect. When you choose "Cancel" in the dialog that prompts: "File is not
saved, Save ? >Yes >No >Cancel" it cancels closing file but it unmounts the
file system. Then you can still edit the file but the filesystem is not in
repository.
I suggest better fix: before unmounting FS check whether it contains some
modified Data Objects and if so, show dialog similar to the one that appears
when you choose File|Exit (when you have modified files).

It can be fixed in org.netbeans.core.actions.UnmountFSAction, take a look at
org.netbeans.core.NbTopManager.exit(). org.netbeans.core.EditDialog can be
reused, needs to be slightly extended to accept FS as a parameter and diaply
only modified files on that FS.
Comment 6 akemr 2000-12-11 10:41:59 UTC
Fixed in main trunk and 3.1

Before unmounting filesystem(s) appears similar Save dialog
to the one that appears when you choose File|Exit,
which will display modified Data Objects - You can choose
Save, Save All, Discard All and Cancel.
If you choose Cancel on this dialog, filesystem won't be unmounted.
Comment 7 Robert Dankanin 2000-12-14 13:03:59 UTC
[NetBeans 3.1 build #28]
[Main trunk build #89]
verified

NOTE: Bug still appears in version : FFJ20
Comment 8 Quality Engineering 2003-07-01 16:08:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.