Hi Camunda Team,
For local development i used to download the 8.2 release file and started the jar for elasticsearch and zeebe directly and provide the zeebe gateway address in properties file and it used to work fine…but now we are trying to upgrade to camunda 8.5…so I am trying same method but with camunda 8.5 and it is not working that way…i also thried creating other zeebeClient instaeed of directly autowire it …still getting error
this is my java bean
@Bean
@Primary
public ZeebeClient configureZeebeClient(){
return ZeebeClient.newClientBuilder().usePlaintext()
.gatewayAddress(zeebeGrpc)
.build();
}
getting this errror
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.camunda.zeebe.client.ZeebeClient]: Illegal arguments to factory method ‘configureZeebeClient’; args: ; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)