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 99466 - TopComponent persistence broken
Summary: TopComponent persistence broken
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
: 66373 (view as bug list)
Depends on: 103159
Blocks:
  Show dependency tree
 
Reported: 2007-03-29 23:14 UTC by _ tboudreau
Modified: 2009-10-19 12:45 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2007-03-29 23:14:28 UTC
Get an NB 6 daily build.  Download and install the UML category from the dev
update center.  After modules install, the following exception is thrown:

java.io.IOException: Top component designpattern could not be loaded, either
owning module was disabled, has incompatible version or top components settings
file format is broken.
	at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:497)
	at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:583)
	at
org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:392)
	at
org.netbeans.core.windows.PersistenceHandler.topComponentRefConfigAdded(PersistenceHandler.java:768)
[catch] at
org.netbeans.core.windows.persistence.ModuleChangeHandler$3.run(ModuleChangeHandler.java:331)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Yang Su 2007-04-04 01:32:51 UTC
I tested on NB 200703251800 build, the initial installation of all uml nbms
seems to be fine. This exception happens when NB enables a module that defines a
top component through settings file, nothing specific to uml. Try to disable and
then re-enable Versioning modules from Module Manager, you'll get the same
exception. 

Re-assign to windows/persistence for further investigation.
Comment 2 mslama 2007-05-02 17:37:38 UTC
Reason is that InstanceDataObject (used by winsys to instantiate TopComponents)
does not return InstanceCookie for given TC when asked during module activation
ie. creating of TC instance fails. Winsys listens to filesystem events and when
some new data appears on filesystem winsys process them. Probably it is done
before InstanceDataObject is ready to provide InstanceCookie. But I do not know
about any way how to synchronize this ie. how can we know that IDO is ready to
provide InstanceCookie.

Comment 3 mslama 2007-08-06 15:22:30 UTC
*** Issue 66373 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2007-08-06 19:34:40 UTC
Sounds like a possible bug in openide/loaders to me - IDO ought to return a valid instance if the module layer has been
loaded.
Comment 5 mslama 2007-11-14 20:19:35 UTC
The problem is that IDO and winsys uses FS events and there is no warranty that IDO will process (ie. will provide valid
instance) FS event before winsys.

Now I tried to reptroduce this with new plugin manager but it does not happen. If anybody will have any way how to
reproduce it now please let me know. I tried to install some plugins (modules inside) which contain tc ref but it did
not happen. The problem can happen even now it just depends on order in which FS events are delivered to listeners.
Comment 6 Lukas Hasik 2008-04-10 21:23:45 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 7 Stanislav Aubrecht 2009-10-19 12:45:30 UTC
there were some changes in the sfs filesystem (mainly ergonomics related), please reopen if still reproducible in recent
builds, thanks