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 26391 - Wrong annotation for attempt to mount not existing file
Summary: Wrong annotation for attempt to mount not existing file
Status: CLOSED DUPLICATE of bug 26072
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
: 26777 26838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-08 16:42 UTC by Marian Mirilovic
Modified: 2008-12-22 22:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Wrong annotated exception (5.82 KB, text/plain)
2002-08-08 16:49 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2002-08-08 16:42:47 UTC
[nb_release34_rc1](200207252340), [jdk1.4.0](01)

Steps to reproduce:
- run IDE
- mount xx.jar
- exit IDE
- remove xx.jar
- run IDE

-> Exception arises with annotation "Cannot read
class: org.netbeans.core.ExJarFileSystem", but
annotation should be "File
/home/mm119185/core25953.jar does not exist."
Comment 1 Marian Mirilovic 2002-08-08 16:49:34 UTC
Created attachment 7059 [details]
Wrong annotated exception
Comment 2 pzajac 2002-08-26 14:46:55 UTC
*** Issue 26777 has been marked as a duplicate of this issue. ***
Comment 3 _ gtzabari 2002-08-26 15:01:05 UTC
I think also more to the point, this exception keeps on poping up (see
issue #26777) forever and won't go away. If you must throw it, do it
once and then remove the FS-dependency on behalf of the user. Or,
somehow, allow him to unmount it.
Comment 4 pzajac 2002-08-26 15:43:55 UTC
I think that JarFilesystem.readObject() has incorect behaviour. It is
not necesssary to throw "File xxx does not exists" exception.
FileSystem has method 
bool isValid() ;

If jar file doesn't exist it can be marked as invalid. For example if  
root directory in  LocalFileSystem doesn't exist filesystem doesn't
throw any exception on deserialization. 
 
Comment 5 pzajac 2002-08-28 13:25:34 UTC
*** Issue 26838 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2002-08-28 13:52:32 UTC
1. Using isValid() might be difficult since (at least at one time)
this was overloaded to also indicate duplicate mounts. I agree
isValid() sounds right here.

2. Looks like the annotation is being attached somewhere but not
displayed correctly. NbErrorManager problem, perhaps? Or problem in
how annotations are propagated?

3. IMHO *all* *.settings which throw an exception while being read
(InstanceCookie.instanceCreate) should be deleted from the userdir, if
this is possible - not just mounts. Contrast to settings from a
disabled module, which should just have no InstanceCookie at all
(because the <module/> tag says not to).

This bug is very frequently reported on nbusers; IMHO it should be
given a high priority.
Comment 7 pzajac 2002-09-19 14:36:33 UTC

*** This issue has been marked as a duplicate of 26072 ***
Comment 8 Marian Mirilovic 2002-10-11 18:26:25 UTC
Agreed.