@Autowired ZeebeClient not working

Hi,
I have migrated SpringBoot from 2.7.4 to 3.1.2 and JDK -17. Also, added the @EnableZeebeClient at mainClass and hence I am getting below error while running the apps.

rror starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
e[2m2023-07-21T16:16:22.047+05:30e[0;39m e[31mERRORe[0;39m e[35m21060e[0;39m e[2m---e[0;39m e[2m[           main]e[0;39m e[36mo.s.b.d.LoggingFailureAnalysisReporter  e[0;39m e[2m:e[0;39m 

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method zeebeClientObjectFactory in io.camunda.zeebe.spring.client.ZeebeClientSpringConfiguration required a bean of type 'io.camunda.zeebe.client.ZeebeClientBuilder' that could not be found.

The injection point has the following annotations:
	- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

**Consider defining a bean of type 'io.camunda.zeebe.client.ZeebeClientBuilder' in your configuration.**

TIA

Hello @yadav1990 ,

which version of the spring-zeebe-starter are you using?

Jonathan

Hi @jonathan.lukas ,
I am using spring-zeebe-starter:8.1.13 .
TIA

Hi @yadav1990
Would you please let me know where you are running your camunda i.e. SaaS or self-managed (If so mention version)

The artifact of spring-zeebe-starter was moved to spring-boot-starter-camunda so It is recommended to use the latest version

There is no need to give @EnableZeebeClient because the type EnableZeebeClient is deprecated in the latest version

Please upgrade to the latest version and configure Zeebe Connection

Hope this helps

Please let me know If you face the same error

Regards
Praveen

1 Like