Error with metrics running Spring ms with Zeebe client

Hi guys,
I created a simple ms working with a Self Hosted version of Camunda 8.
When the ms starts I’m getting this error:

[ERROR] 2023-11-14 11:52:45.564 [main] SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘camundaIntegrationDeterminator’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘processEngineFactoryBean’: FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException: Cannot invoke “org.camunda.bpm.spring.boot.starter.property.MetricsProperty.isEnabled()” because “this.metrics” is null

Have you ever experienced with this error?

Thanks in advance

Stefano

Hi @Nassiesse,

you are mixing libraries from Camunda 7 with Camunda 8. The namespace org.camunda.bpm. is used in Camunda 7 components.

For Camunda 8 the namespace starts with io.camunda.

Hope this helps, Ingo

Dam it! You are right :slight_smile:

Thank you @Ingo_Richtsmeier for your help.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.