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.
junit.framework.AssertionFailedError: project cannot be garbage collected: public static org.netbeans.modules.project.ant.FileChangeSupport org.netbeans.modules.project.ant.FileChangeSupport.DEFAULT-> org.netbeans.modules.project.ant.FileChangeSupport@9386c7-holders-> java.util.WeakHashMap@1e4be2c-table-> [Ljava.util.WeakHashMap$Entry;@1f4ebfe-[17]-> java.util.WeakHashMap$Entry@cbbd03-value-> java.util.HashMap@bf251c-table-> [Ljava.util.HashMap$Entry;@1d2da07-[10]-> java.util.HashMap$Entry@ad4bb0-value-> org.netbeans.modules.project.ant.FileChangeSupport$Holder@14a7ff6-current-> org.netbeans.modules.masterfs.MasterFileObject@46f82b-listeners-> javax.swing.event.EventListenerList@1f42ace-listenerList-> [Ljava.lang.Object;@1241a2d-[3]-> org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl$1@1184c8b-this$0-> org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl@1207ef7-p-> org.netbeans.modules.j2ee.earproject.EarProject@c787d7
EarProjectTest - testEarProjectIsGCed - testThatMissingDDIsNotRegeneratedDuringOpeningJavaEE
Seems to be problem of FileChangeListener in org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl - so reassigning. log: public static org.netbeans.modules.project.ant.FileChangeSupport org.netbeans.modules.project.ant.FileChangeSupport.DEFAULT-> org.netbeans.modules.project.ant.FileChangeSupport@470a37-holders-> java.util.WeakHashMap@117ae94-table-> [Ljava.util.WeakHashMap$Entry;@1173175-[10]-> java.util.WeakHashMap$Entry@1020871-value-> java.util.HashMap@1225841-table-> [Ljava.util.HashMap$Entry;@2c92f2-[5]-> java.util.HashMap$Entry@133de8-value-> org.netbeans.modules.project.ant.FileChangeSupport$Holder@1c7efb5-current-> org.netbeans.modules.masterfs.MasterFileObject@121984a-listeners-> javax.swing.event.EventListenerList@13e8ffa-listenerList-> [Ljava.lang.Object;@edf070-[3]-> org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl$1@491585-this$0-> org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl@9dd21f-p-> org.netbeans.modules.j2ee.earproject.EarProject@ae97c4)
This is in reference to the file change listener added in revision 1.8 of org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl.java in module appsrv81 at or around lines 123-195. Vince, if you need to add a listener for here, it probably needs to be a weaklistener. If it can't be, we have to discuss alternatives. Raising to P2 - memory leaks are bad, project leaks doubly so.
How was this output generated? It seems like I will need to know that to verify my changes...
Just run the EarProjectTest - output is taken from Output window (it can be found in JUnit Test Results as well).
fix identified and am testing
http://deadlock.netbeans.org/fisheye/changelog/netbeans/serverplugins/sun?cs=MAIN:vkraemer:20070716182335