Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19100

NullPointerException in QuartzSchedulerSPI.recoverInterruptedJobs can prevent startup

    XMLWordPrintable

    Details

    • Story Points:
      2
    • Notability:
      3

      Description

      A NullPointerException can be thrown on nexus startup trying to recover scheduled tasks - this will prevent Nexus from even starting:

      2019-02-11 08:05:56,514+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Failed transition: NEW -> STARTED
      java.lang.NullPointerException: null
         at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.recoverInterruptedJobs(QuartzSchedulerSPI.java:217)
         at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.doStart(QuartzSchedulerSPI.java:207)
         at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:67)
         at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
         at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:193)
         at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
         at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:168)
         at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:100)
         at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:195)
         at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1429)
         at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
         at java.lang.Thread.run(Thread.java:748)
      

      Workaround

      Edit $data-dir/etc/nexus.properties and add a new line like this:

      nexus.quartz.recoverInterruptedJobs=false
      

      Then try to start Nexus.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title