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 32163 - ContextIDExistsException when refreshing children of Look
Summary: ContextIDExistsException when refreshing children of Look
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks: 34320
  Show dependency tree
 
Reported: 2003-03-20 14:39 UTC by Ondrej Rypacek
Modified: 2004-04-19 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace of the exception (12.84 KB, text/plain)
2003-03-20 14:40 UTC, Ondrej Rypacek
Details
attaching the layer file with EP registration (25.24 KB, text/plain)
2003-06-16 13:31 UTC, Ondrej Rypacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Rypacek 2003-03-20 14:39:04 UTC
My Look returns a List of fileobjects for the
contents of the jar (from method getChildObjects).
When the jar is rebuilt refreshChildren is called
and from it getChildObjects. If the later returns
a list with different fileObjects
ContextIDExistsException is thrown from projects
(see attachement). 

FileObjects are taken from a JarFileSystem created
around the new jar. The previously returned
FileObjects are taken from a different instance of
JarFileSystem. 

Note, that it works for one FileObject (root) that
changes.
It fails if there is one FO at first, then I add
one more and want to refresh to the two, or there
are two FOs and one is removed. In both these
cases, old-children and new-children overlap
(might be important). (By overlapping, I mean that
they have the same pathname, the filesystems they
come from are different in any case )
Comment 1 Ondrej Rypacek 2003-03-20 14:40:46 UTC
Created attachment 9470 [details]
stack trace of the exception
Comment 2 Ondrej Rypacek 2003-06-16 13:31:10 UTC
Created attachment 10691 [details]
attaching the layer file with EP registration
Comment 3 Ondrej Rypacek 2003-06-16 13:33:31 UTC
sorry, the last attachment was meant for a different bug ;-) ignore it
please
Comment 4 Vitezslav Stejskal 2003-06-16 14:05:03 UTC
I think I understand the problem, but don't know the solution yet :-(.
It would probably need some better defined cooperation with
JarFileSystem/JarPackager. Definitely it is not the problem of looks.
Comment 5 Ondrej Rypacek 2003-06-16 14:10:43 UTC
I'm ready to cooperate :-) 
Comment 6 Vitezslav Stejskal 2003-11-24 14:00:18 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 7 Jan Becicka 2003-11-25 13:46:52 UTC
Marking issue as VERIFIED --->
Comment 8 Jan Becicka 2003-11-25 13:51:25 UTC
---> CLOSED