Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11989

Null pointer exception in JobExecutorHealthIndicator

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • None
    • 7.13.0
    • spring-boot
    • None

      Hi,

      I've encountered the issue described here: https://forum.camunda.org/t/jobexecutorhealthindicator-health-check-failed-java-lang-nullpointerexception-null/16312

      java.lang.NullPointerException: null
      	at java.base/java.util.HashSet.<init>(HashSet.java:119) ~[na:na]
      	at org.camunda.bpm.spring.boot.starter.actuator.JobExecutorHealthIndicator$Details.<init>(JobExecutorHealthIndicator.java:65) ~[camunda-bpm-spring-boot-starter-7.13.0.jar:7.13.0]
      

       

      The cause seems to be that SpringJobExecutor gets injected into:

      https://github.com/camunda/camunda-bpm-spring-boot-starter/blob/master/starter/src/main/java/org/camunda/bpm/spring/boot/starter/CamundaBpmActuatorConfiguration.java#L41

      however we are using the DefaultJobExecutor in our process engine.

      Reproducer code: https://github.com/andrejs-j/camunda-bpm-examples/pull/1/files

       

        This is the controller panel for Smart Panels app

            [CAM-11989] Null pointer exception in JobExecutorHealthIndicator

            Andrejs created issue -
            Andrejs made changes -
            Description Original: Hi,

            I've encountered the issue described here: [https://forum.camunda.org/t/jobexecutorhealthindicator-health-check-failed-java-lang-nullpointerexception-null/16312]

            The cause seems to be that SpringJobExecutor gets injected into:

            [https://github.com/camunda/camunda-bpm-spring-boot-starter/blob/master/starter/src/main/java/org/camunda/bpm/spring/boot/starter/CamundaBpmActuatorConfiguration.java#L41]

            however we are using the DefaultJobExecutor in our process engine.

             
            New: Hi,

            I've encountered the issue described here: [https://forum.camunda.org/t/jobexecutorhealthindicator-health-check-failed-java-lang-nullpointerexception-null/16312]
            {code:java}
            java.lang.NullPointerException: null
            at java.base/java.util.HashSet.<init>(HashSet.java:119) ~[na:na]
            at org.camunda.bpm.spring.boot.starter.actuator.JobExecutorHealthIndicator$Details.<init>(JobExecutorHealthIndicator.java:65) ~[camunda-bpm-spring-boot-starter-7.13.0.jar:7.13.0]
            {code}
             

            The cause seems to be that SpringJobExecutor gets injected into:

            [https://github.com/camunda/camunda-bpm-spring-boot-starter/blob/master/starter/src/main/java/org/camunda/bpm/spring/boot/starter/CamundaBpmActuatorConfiguration.java#L41]

            however we are using the DefaultJobExecutor in our process engine.

            Reproducer code: [https://github.com/andrejs-j/camunda-bpm-examples/pull/1/files]

             
            Andrejs made changes -
            Mentioned Roles
            Andrejs made changes -
            Mentioned Groups
            Martin Stamm made changes -
            Assignee New: Thorben Lindhauer [ thorben.lindhauer ]
            Miklas Boskamp made changes -
            Assignee Original: Thorben Lindhauer [ thorben.lindhauer ] New: Miklas Boskamp [ miklas.boskamp ]
            Miklas Boskamp made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Miklas Boskamp made changes -
            Mentioned Roles
            Miklas Boskamp made changes -
            Mentioned Groups

            andrejs,

            Thanks for raising this bug report. I was able to reproduce the bug via this test. I will investigate further.

            Cheers,
            Miklas

            Miklas Boskamp added a comment - andrejs , Thanks for raising this bug report. I was able to reproduce the bug via this test . I will investigate further. Cheers, Miklas
            Miklas Boskamp made changes -
            Mentioned Roles
            Miklas Boskamp made changes -
            Mentioned Groups

              miklas.boskamp Miklas Boskamp
              andrejs Andrejs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: