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 11113

Summary: Getting exception on startup in Java module and then IDE hangs
Product: java Reporter: Joseph Cortopassi <jcortopassi>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description Joseph Cortopassi 2001-04-05 19:33:23 UTC
From this mornings build I'm getting the following exception and then the IDE
hangs:
Exception in thread "main" java.lang.IllegalArgumentException
        at org.openide.filesystems.Repository.reorder(Repository.java:206)
        at org.netbeans.modules.java.environment.LibraryFolder.moveToEnd(Library
Folder.java:156)
        at org.netbeans.modules.java.environment.LibraryFolder.remount(LibraryFo
lder.java:129)
        at org.netbeans.modules.java.JavaModule.propertyChange(JavaModule.java:2
76)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:152)
        at org.netbeans.core.NbTopManager.firePropertyChange(NbTopManager.java:8
24)
        at org.netbeans.core.NbProjectOperation.setProject(NbProjectOperation.ja
va:151)
        at org.netbeans.core.NbProjectOperation.openOrCreateProject(NbProjectOpe
ration.java:184)
        at org.netbeans.core.NonGui.run(NonGui.java:490)
        at org.openide.TopManager.initializeTopManager(TopManager.java:120)
        at org.openide.TopManager.getDefault(TopManager.java:81)
        at org.netbeans.commandline.FjscriptMain.main(FjscriptMain.java:416)

LibraryFolder.moveToEnd was added by sdedic in version 1.1.2.3.

Someone else here in Oakland that built this morning is also seeing this.
Note I don't see this during firststart, only when I try to run the built
IDE.
Comment 1 Svata Dedic 2001-04-06 07:31:28 UTC
It seems that there's a race condition in two modules accessing the Repository 
- I suspect Javadoc mounting its doc filesystem and maybe other modules that 
adjust the repository at startup.
I will try to sync this without introducing a deadlock and/or communicate with 
other module owners some sync scheme.
Comment 2 Svata Dedic 2001-04-06 10:26:10 UTC
There was yet another bug in elimination of duplicate libraries, which should 
be fixed now. At least f4jEE starts smoothly :-)
Comment 3 Jan Becicka 2001-04-09 15:48:48 UTC
[Release32-23] Verified.
Comment 4 Jan Chalupa 2001-05-05 23:24:18 UTC
Target milestone -> 3.2
Comment 5 Quality Engineering 2003-07-01 13:21:30 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.