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.
Summary: | AssertionFailedError: project cannot be garbage collected | ||
---|---|---|---|
Product: | serverplugins | Reporter: | Tomas Mysik <tmysik> |
Component: | Sun Appserver 9 | Assignee: | Vince Kraemer <vkraemer> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | TEST |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Tomas Mysik
2007-07-02 13:20:44 UTC
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 |