Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-618

NullPointerException when trying to schedule job manually

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • 1.0.0
    • Scheduler
    • None
    • Wildfly

    Description

      When job is scheduled manually using unwrapped quartz scheduler and it's not annotated with @Scheduled exception is thrown

      11:37:02,124 ERROR [org.quartz.core.ErrorLogger] (DefaultQuartzScheduler_Worker-1) Unable to notify JobListener(s) of Job to be executed: (Job will NOT be executed!). trigger= DEFAULT.6da64b5bd2ee-16bd1e20-c314-4631-b819-bf93f9498f0d job= DEFAULT.testJob: org.quartz.SchedulerException: JobListener 'org.apache.deltaspike.scheduler.impl.QuartzScheduler$InjectionAwareJobListener' threw exception: null [See nested exception: java.lang.NullPointerException]
      	at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1947) [quartz-2.2.1.jar:]
      	at org.quartz.core.JobRunShell.notifyListenersBeginning(JobRunShell.java:324) [quartz-2.2.1.jar:]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:173) [quartz-2.2.1.jar:]
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.1.jar:]
      Caused by: java.lang.NullPointerException
      	at org.apache.deltaspike.scheduler.impl.QuartzScheduler$InjectionAwareJobListener.jobToBeExecuted(QuartzScheduler.java:298) [deltaspike-scheduler-module-impl-0.7.jar:0.7]
      	at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1945) [quartz-2.2.1.jar:]
      	... 3 more
      

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            p.dudkiewicz Piotr Dudkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: