-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
spring-boot 3.0.0-alpha1
-
None
Given:
- I have an application using Spring Boot Starter 3.0.0-alpha1
When
- I try to call "fetch and lock" from REST API
Then:
- NPE is thrown:
java.lang.NullPointerException: null at org.camunda.bpm.engine.rest.impl.FetchAndLockRestServiceImpl.fetchAndLock(FetchAndLockRestServiceImpl.java:34) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564)
Reported on forum: https://forum.camunda.org/t/externaltasks-fetchandlock-nullpointerexception/7473/8
One more thing I've noticed. The problem exists when we use gradle, when we use maven instead there is no problem at all. In case of gradle FetchAndLockRestService is chosen to handle the http method in case of maven ExternalTaskRestService is chosen. Hopes this helps you a bit.
Here is a pom.xml
definition to work with the Github project