Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-49297

Hooking a new HotDeployListener raises ConcurrentModificationException

    Details

      Description

      Deploying a hook that registers a new HotDeployListener causes the portal to log a ConcurrentModificationException and automatically undeploy the hook.

      Steps to reproduce:

      1. Create a hook with a class extending BaseHotDeployListener (stubbing the required methods: invokeDeploy and invokeUndeploy)
      2. Add hot.deploy.listeners=<package.ClassName> to the hook's portal.properties
      3. Deploy this hook

      Expected result:
      The hook is deployed and a confirmation message is logged.

      Actual result:
      The hook is deployed, but the portal raises a ConcurrentModificationException and this causes the hook to be undeployed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              pablo.carvalho Pablo Carvalho (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 27 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M3