What are the steps to reproduce your problem?
Execute FailedJobListener with a Job ID which doesn't exist.
What is the problem?
Executing of the ExecuteJobsCmd and deleting a Job in parallel with working on a Job.
If the Job was deleted the job transaction rollback and the FailedJoblistener will be called, in the ExecuteJobsCmd.
Since the job is deleted the jobId references to no existing job. In the current version of the FailedjobListener the jobId is used to get the Job from the database.
What would be the expected behavior:
If the job doesn't exist the FailedJobListener does nothing.
Add not null check to the execution method: