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

IllegalStateException is seen after redeploying portal-workflow-metrics-service when a SLA is running

    Details

      Description

      Preconditions

      1. Go to Applications > Workflow > Metrics
      2. Select "Single Approver" > Add a SLA
      3. Go to Applications > Workflow > Process Builder > Configuration
      4. Assign "Single Approver" To Web Content Article

      Steps to Reproduce

      1. Add a Web Content Article
      2. Wait for a while until the SLA starts
      3. Go to portal-workflow-metrics-service
      4. Run 'gw clean' and 'gw deploy'

      Actual Result

      • Log throws the following error:
      2020-07-29 20:01:45.212 ERROR [liferay/background_task-6][BackgroundTaskMessageListener:182] Unable to execute background task
      java.lang.IllegalStateException: Unknown background task executor com.liferay.portal.workflow.metrics.internal.background.task.WorkflowMetricsSLAProcessBackgroundTaskExecutor
      	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.getBackgroundTaskExecutor(BackgroundTaskMessageListener.java:237)
      	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.wrapBackgroundTaskExecutor(BackgroundTaskMessageListener.java:288)
      	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:109)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Expected Result

      • No error should be thrown

      Reproduced In

      • master: 634e7e2d21ddab181aa5e64a62bb088f27dc0a5d

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rodrigo.cunha Rodrigo Cunha
                Reporter:
                rodrigo.cunha Rodrigo Cunha
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 weeks, 4 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP8
                  7.2.10.2 DXP SP3
                  7.2.X
                  Master