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

Scheduler related modules are unable to be restarted after being stopped manually

    Details

      Description

      Modules failed to be restarted:
      Liferay Portal Scheduler
      Liferay Portal Scheduler Multiple
      Liferay Portal Scheduler Single

      Steps to reproduce:
      1) Start portal
      2) Go to Apache Felix Gogo by "telnet localhost 11311"
      3) Find the bundle id of "Liferay Portal Scheduler"
      4) Stop the bundle, and you will see "[BundleStartStopLogger:38] STOPPED com.liferay.portal.scheduler" in console
      5) Start the same bundle, before fix, you will see "com.liferay.portal.kernel.scheduler.SchedulerException: Unable to schedule job", after fix, you will see "[BundleStartStopLogger:35] STARTED com.liferay.portal.scheduler".

      Please see attachment error.catalina.out for more details about the error

      The root reason of this issue is that once a quartz scheduler is shutdown, it can not be restarted. The solution is to use standby() method provided by quartz scheduler when the client wants to stop the scheduler and let the bundle to handle the real shutdown process.

        Attachments

        1. error.catalina.out
          134 kB
        2. fix3.png
          fix3.png
          4 kB
        3. reproduce3.png
          reproduce3.png
          63 kB

          Activity

            People

            Assignee:
            ian.song Ian Song (Inactive)
            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:
              4 years, 23 weeks, 3 days ago

                Packages

                Version Package
                7.0.1 CE GA2