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 93070 - Startup hangs with UnsupportedOperationException
Summary: Startup hangs with UnsupportedOperationException
Status: RESOLVED DUPLICATE of bug 71744
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 5.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 20:54 UTC by cschneider4711
Modified: 2008-12-22 11:33 UTC (History)
0 users

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 cschneider4711 2007-01-23 20:54:13 UTC
After using (on a somewhat young and freshly installed NB with Ent.Pack / 
Vis.Pack and Prof./Pack) update center and including the beta updates on the 
next startup I received error messages regarding CVS support. On the next few 
startups of NB I receive the following exception and the startup procedure 
hangs completely (unable to start NB).

java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(AbstractList.java:151)
        at java.util.AbstractList.add(AbstractList.java:89)
        at 
java.util.Collections$SynchronizedCollection.add(Collections.java:1581)
        at 
org.openide.util.lookup.InheritanceTree$Node.assignItem(InheritanceTree.java:1150)
        at 
org.openide.util.lookup.InheritanceTree.add(InheritanceTree.java:173)
        at 
org.openide.util.lookup.DelegatingStorage.add(DelegatingStorage.java:82)
        at 
org.openide.util.lookup.AbstractLookup.setPairsAndCollectListeners(AbstractLookup.java:273)
        at 
org.openide.util.lookup.AbstractLookup.setPairs(AbstractLookup.java:230)
        at 
org.openide.util.lookup.AbstractLookup$Content.setPairs(AbstractLookup.java:1121)
        at 
org.openide.loaders.FolderLookup$ProxyLkp.update(FolderLookup.java:342)
        at 
org.openide.loaders.FolderLookup.createInstance(FolderLookup.java:176)
        at 
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:742)
        at org.openide.loaders.FolderInstance.access$000
(FolderInstance.java:74)
        at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:628)
        at 
org.openide.loaders.FolderLookup.postCreationTask(FolderLookup.java:240)
        at 
org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:626)
        at 
org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:909)
        at org.openide.loaders.FolderList.createObjects(FolderList.java:653)
        at org.openide.loaders.FolderList.getObjects(FolderList.java:521)
        at org.openide.loaders.FolderList.access$200(FolderList.java:56)
        at org.openide.loaders.FolderList$ListTask.run(FolderList.java:886)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 cschneider4711 2007-01-23 21:02:44 UTC
I was able to make NB start again after disabling the following modules 
manually in their XML files:

~/.netbeans/5.5/config/Modules/org-netbeans-modules-vcs-advanced.xml
~/.netbeans/5.5/config/Modules/org-netbeans-modules-vcs-profiles-clearcase.xml
~/.netbeans/5.5/config/Modules/org-netbeans-modules-vcs-profiles-cvsprofiles.xml
~/.netbeans/5.5/config/Modules/org-netbeans-modules-vcs-profiles-pvcs.xml
~/.netbeans/5.5/config/Modules/org-netbeans-modules-vcs-profiles-teamware.xml
~/.netbeans/5.5/config/Modules/org-netbeans-modules-vcs-profiles-vss.xml

So it seems to be some incompatibility with the above modules. Maybe the 
module loading system could be enhanced to allow to continue the startup 
process by asking the user if the offending module(s) that caused the 
exception should be disabled for the next startup.

Keep up the good work,
Chris
Comment 2 Petr Nejedly 2007-01-24 13:54:38 UTC
Lookup problem?
Comment 3 Jaroslav Tulach 2007-01-30 13:02:26 UTC

*** This issue has been marked as a duplicate of 71744 ***