[jboss-jira] [JBoss JIRA] Created: (JBAS-4329) LinkRefPair GUID could change due to garbage collection

Adrian Brock (JIRA) jira-events at lists.jboss.org
Fri Apr 13 06:39:58 EDT 2007


LinkRefPair GUID could change due to garbage collection
-------------------------------------------------------

                 Key: JBAS-4329
                 URL: http://jira.jboss.com/jira/browse/JBAS-4329
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Naming
    Affects Versions: JBossAS-5.0.0.Beta2, JBossAS-4.2.0.CR1, JBossAS-4.0.5.GA
            Reporter: Adrian Brock
         Assigned To: Adrian Brock
             Fix For: JBossAS-4.2.0.GA,  JBossAS-5.0.0.Beta3, JBossAS-4.0.5.SP1 


The GUID stored on the LinkRefPairObjectFactory class could change if this class gets garbage collected.

This could be case when CallByValue=true on the naming service since the LinkRefPairs are serialized
with any hard reference to the classes lost.

Even if this is not the cause of the problem, it is still a good idea to make sure this class
doesn't get garbage collected while there are active LinkRefPairs otherwise the GUID will change
and the local/remote mechanism won't work properly.

To fix this, the LinkRefPairService should hold a static reference to the ObjectFactory class.

-- 
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