Hi all,
I’m running into a startup failure after adding the @Deployment annotation to auto-deploy BPMN/DMN/Form resources.
Repo (minimal sample):
< GitHub - Mkknowledge/order-zeebe-client >
@SpringBootApplication
@Deployment(resources = {"classpath*:*.bpmn", "classpath*:*.dmn", "classpath*:*.form"})
public class OrderZeebeClientApplication {
public static void main(String[] args) {
SpringApplication.run(OrderZeebeClientApplication.class, args);
}
}
Error:
org.springframework.context.ApplicationContextException: Failed to start bean ‘camundaLifecycleEventProducer’
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:423) ~[spring-context-7.0.2.jar:7.0.2]
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:409) ~[spring-context-7.0.2.jar:7.0.2]
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:613) ~[spring-context-7.0.2.jar:7.0.2]
at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na]
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:379) ~[spring-context-7.0.2.jar:7.0.2]
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:306) ~[spring-context-7.0.2.jar:7.0.2]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:1012) ~[spring-context-7.0.2.jar:7.0.2]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:623) ~[spring-context-7.0.2.jar:7.0.2]
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-web-server-4.0.1.jar:4.0.1]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756) ~[spring-boot-4.0.1.jar:4.0.1]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445) ~[spring-boot-4.0.1.jar:4.0.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) ~[spring-boot-4.0.1.jar:4.0.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1365) ~[spring-boot-4.0.1.jar:4.0.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354) ~[spring-boot-4.0.1.jar:4.0.1]
at com.mkknowledge.order.OrderZeebeClientApplication.main(OrderZeebeClientApplication.java:13) ~[classes/:na]
Caused by: io.camunda.client.api.command.MalformedResponseException: Expected to receive a problem body, but got an actual response: class DeploymentResult {
tenantId: null
deploymentKey: null
deployments:
}
Question:
What changes do I need to make in my Spring Boot + Camunda Zeebe application to resolve the MalformedResponseException when using the @Deployment annotation?
Thanks!
Any guidance, best practices, are much appreciated.