You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception
Caused by: java.lang.RuntimeException: Cannot invoke public abstract io.camunda.zeebe.client.api.worker.JobWorkerBuilderStep1 io.camunda.zeebe.client.ZeebeClient.newWorker() on ZeebeClient, as ZeebeClient is currently not initialized. Maybe you run outside of a testcase?
at io.camunda.zeebe.spring.test.proxy.ZeebeClientProxy.handleInvocation(ZeebeClientProxy.java:28)
at io.camunda.zeebe.spring.test.proxy.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:40)
at jdk.proxy2/jdk.proxy2.$Proxy93.newWorker(Unknown Source)
To Reproduce
Create the worker class in the project like the one above, and create a test like the one above. The project runs fine but the tests don't.
Expected behavior
The project and tests to work.
Or @Jobworker to support non-constant variable as jobType, using SPEL or other technique to feed the jobType during startup.
Environment:
OS: Windows 10
Deployment: Self-Managed
Spring-Zeebe Version: 8.5.9
SpringBoot Version: 3.3.2
The text was updated successfully, but these errors were encountered:
Describe the bug
When registering JobWorkers manually:
@ZeebeSpringTest tests are not able to inject ZeebeClient, considering it as not initalized.
Exception
Caused by: java.lang.RuntimeException: Cannot invoke public abstract io.camunda.zeebe.client.api.worker.JobWorkerBuilderStep1 io.camunda.zeebe.client.ZeebeClient.newWorker() on ZeebeClient, as ZeebeClient is currently not initialized. Maybe you run outside of a testcase?
at io.camunda.zeebe.spring.test.proxy.ZeebeClientProxy.handleInvocation(ZeebeClientProxy.java:28)
at io.camunda.zeebe.spring.test.proxy.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:40)
at jdk.proxy2/jdk.proxy2.$Proxy93.newWorker(Unknown Source)
To Reproduce
Create the worker class in the project like the one above, and create a test like the one above. The project runs fine but the tests don't.
Expected behavior
The project and tests to work.
Or @Jobworker to support non-constant variable as jobType, using SPEL or other technique to feed the jobType during startup.
Environment:
The text was updated successfully, but these errors were encountered: