Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5498

ServiceDeployer.undeploy() fails to remove the entry from deploymentFileDataMap

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: deployment
    • Labels:
      None

      Description

      In AbstractDeployer.deploy(), the DeploymentFileData instance is added to the Map using the absolute path of the service file (.aar). However ServiceDeployer.undeploy() passes the service name instead of the absolute path to super.undeploy() which means nothing is removed from the Map.

      The result is a leaked reference to the service's classloader, which cannot be garbage-collected (unless the service is redeployed, in which case the Map entry is replaced and the original classloader becomes eligible for collection).

        Attachments

        1. AXIS2-5498.patch
          2 kB
          Simon Smith

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simon.smith Simon Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: