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

Scheduler job state is not updated caused by LPS-32542

    Details

      Description

      LPS-32542 upgraded quartz from 2.1.0 to 2.1.6, and it caused exceptions thrown when pausing a scheduler job.

      How to reproduce it:
      You need a jsp script to invoke "SchedulerEngineHelperUtil.pause", and you will see exceptions below before the fix.

      Updated memory job is triggered at 2014-10-13 14:38:46.084000
      14:38:46,086 WARN [liferay/scheduler_engine-2][ProxyMessageListener:81] com.liferay.portal.kernel.scheduler.SchedulerException: Unable to pause jobs in group memory
      com.liferay.portal.kernel.scheduler.SchedulerException: Unable to pause jobs in group memory
      at com.liferay.portal.scheduler.quartz.QuartzSchedulerEngine.pause(QuartzSchedulerEngine.java:274)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
      at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: org.quartz.SchedulerException: Jobs added with no trigger must be durable.
      at org.quartz.core.QuartzScheduler.addJob(QuartzScheduler.java:916)
      at org.quartz.impl.StdScheduler.addJob(StdScheduler.java:269)
      at com.liferay.portal.scheduler.quartz.QuartzSchedulerEngine.updateJobState(QuartzSchedulerEngine.java:1161)
      at com.liferay.portal.scheduler.quartz.QuartzSchedulerEngine.pause(QuartzSchedulerEngine.java:268)
      ... 11 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                tina.tian Tina Tian
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 18 weeks ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M3