Bugs item #757856, was opened at 2003-06-20 12:34
Message generated for change (Comment added) made by rodburgett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=757856&group_id=22866
Category: JBossServer
Group: v3.2
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Rod Burgett (rodburgett)
Assigned to: Scott M Stark (starksm)
Summary: neglected housekeeping in DeploymentInfo
Initial Comment:
The cleanup() method of DeploymentInfo is incomplete.
This patch extends the clean up to include nulling
several fields and clearing the classpath container. Also,
prior to calling destroyLoaderRepository on the
repositoryConfig field, an 'is null?' check is performed on
the field.
JBoss classes exhibit a lot of reference coupling; a
singleton object whose reference is held by every
instance of some other class, circular references, and so
on. This type of coupling can thwart garbage collection,
so it's important to help the gc whenever possible.
This patch makes an exception in nulling the internal
field references, for the deployer field. This field
appears to be used by the org.jboss.management
package after the destruction of the deployment info
instance.
----------------------------------------------------------------------
>Comment By: Rod Burgett (rodburgett)
Date: 2003-06-20 19:47
Message:
Logged In: YES
user_id=681969
If you change DeploymentInfo.cleanup() to null out the
deployer field and then undeploy any ejb, there's a good
chance you will get an NPE out of
o.j.management.j2ee.factory.DefaultManagedObjectFactory.ge
tFactory(). If the notification user data is a DeploymentInfo,
then this method tries to get service ObjectName from the
deployer.
The basic execution path goes something like this
MainDeployer.undeploy()
calls MD.destroy()
calls deployer.destroy() - EJBDeployer?, SAR?, EAR?, ...
calls super.destroy() - SubDeployerSupport.destroy()
sends notification of destruction
calls di.cleanup()
di.deployer = null
Even though the deployer isn't nulled until after the
notification is sent, it might be null before the notification is
processed.
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2003-06-20 19:17
Message:
Logged In: YES
user_id=175228
Applied to 3.2. What is an example of a trace that is using
the deployer after the DeploymentInfo has been cleared?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=757856&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development