Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5805

Eventing: NPE in JobSchedulerImpl when shutting down instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Event 4.0.2
    • Event 4.1.0
    • Extensions
    • None

    Description

      when shutting down a sling instance (part of a cluster) with ~30.000 scheduled jobs, i get thousands of error logs like this in the logs:

      22.06.2016 17:25:07.174 *ERROR* [sling-default-593-org.apache.sling.event.jobs.Job:03eb3d10-952e-4b1b-83c8-e7e092495c09-0] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of org.apache.sling.event.impl.jobs.scheduling.JobSchedulerImpl@407bb6e7 : null
      java.lang.NullPointerException: null
      	at org.apache.sling.event.impl.jobs.JobManagerImpl.addJobInteral(JobManagerImpl.java:537)
      	at org.apache.sling.event.impl.jobs.JobManagerImpl.addJob(JobManagerImpl.java:704)
      	at org.apache.sling.event.impl.jobs.JobManagerImpl.addJob(JobManagerImpl.java:267)
      	at org.apache.sling.event.impl.jobs.scheduling.JobSchedulerImpl.execute(JobSchedulerImpl.java:280)
      	at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:116)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: