[jboss-jira] [JBoss JIRA] Created: (JBAS-4191) ProxyFactory leaks classloader if SFSB is used

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Sat Mar 10 22:42:48 EST 2007


ProxyFactory leaks classloader if SFSB is used
----------------------------------------------

                 Key: JBAS-4191
                 URL: http://jira.jboss.com/jira/browse/JBAS-4191
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: EJB2
    Affects Versions: JBossAS-4.2.0.CR1, JBossAS-5.0.0.Beta1
            Reporter: Brian Stansberry
         Assigned To: Brian Stansberry
             Fix For: JBossAS-5.0.0.Beta2, JBossAS-4.2.0.GA


org.jboss.ejb.ProxyFactory holds a ref to the constructor used to instantiate SFSBs after it is destroyed.  This leaks the the application's classloader to the Container instance's proxyFactoryTL ThreadLocal.

Immediate solution is to clear the constructor ref in ProxyFactory.destroy().  Later we need to see why ProxyFactoryFinderInterceptor isn't making the call that clears the ThreadLocal on the request out-path and add that call if there's no good reason not to.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list