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 108629 - AssertionFailedError: project cannot be garbage collected
Summary: AssertionFailedError: project cannot be garbage collected
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2007-07-02 13:20 UTC by Tomas Mysik
Modified: 2007-07-16 19:26 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 Tomas Mysik 2007-07-02 13:20:44 UTC
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
Comment 1 Tomas Mysik 2007-07-02 13:28:10 UTC
EarProjectTest
 - testEarProjectIsGCed
 - testThatMissingDDIsNotRegeneratedDuringOpeningJavaEE
Comment 2 Tomas Mysik 2007-07-09 13:54:50 UTC
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)
Comment 3 _ pcw 2007-07-10 22:45:53 UTC
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.
Comment 4 Vince Kraemer 2007-07-13 15:37:15 UTC
How was this output generated? It seems like I will need to know that to verify my changes...
Comment 5 Tomas Mysik 2007-07-13 16:17:20 UTC
Just run the EarProjectTest - output is taken from Output window (it can be found in JUnit Test Results as well).
Comment 6 Vince Kraemer 2007-07-13 22:01:13 UTC
fix identified and am testing