Closed Citrullin closed 4 years ago
@Citrullin did you figure out what caused this? The most common NPE i have found is from the yaml file being inaccessible: either from a bad path or Filesystem permissions.
Just to confirm, if you use the docker example in the repo code, does it work on your machine?
@StephenOTT I checked this already before and changed it to the user camunda and group camunda. I start the Camunda Engine via the user camunda. So, shouldn't be the issue. Tried it again and changed the yaml file to 777. Still, same NPE. Since the NPE is coming from the JobExecutor I don't think it's an issue with the access rights.
at io.digitalstate.camunda.prometheus.collectors.camunda.JobExecutor.collectJobSuccessful(JobExecutor.java:48)
at io.digitalstate.camunda.prometheus.collectors.camunda.JobExecutor.collectAll(JobExecutor.java:209)
at io.digitalstate.camunda.prometheus.collectors.camunda.JobExecutor$1.run(JobExecutor.java:24)
Probably has something to do with the different environment I am running it.
Given the older version of Camunda you are running, likely something changed.
You are stuck with cam 9.0.x?
@StephenOTT It is Tomcat version 9.0.5, not Camunda. We are running Camunda in version 7.9. Since 7.10 is the newest Camunda version, this shouldn't be an issue.
Opps ! sorry yes missed that. I will test against 7.10 and see where we get!
@Citrullin can you provide some more details about this issue? I am not able to reproduce.
7.10 appears to be functional as per unit tests. Are you able to make this project's unit tests fail ?
@StephenOTT I have a different workplace now. Not working with Camunda anymore. But I will email my ex-colleagues. :)
Closing. Please reopen if you develop repeatable steps
Env: Camunda 7.9 in Tomcat 9.0.5
Steps to reproduce.: I created the jar package and moved it into the tomcat library folder. Added the configuration to the bpm-platform.xml
Added the basic prometheus metrics to the prometheus.yml
Restarted the server. Fails with the following log message: