I used successfuly the activiti-spring-boot-starter 7.1.0.M5 and upgraded whole project to spring-boot 2.7.4. The activity DB was recreated manually using the provided scripts. However, I cannot overcome this error, when I start the project(REST API), nor find its source:
{"logtimestamp":"2022-11-01 12:07:21.488","thread":"main","level":"WARN","logref":"-","area":"org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext","service":"default","msg":"Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'copyDataService': Unsatisfied dependency expressed through field 'myService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myServiceImpl': Unsatisfied dependency expressed through field 'runtimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'runtimeServiceBean' defined in class path resource [org/activiti/spring/boot/ProcessEngineAutoConfiguration.class]: Unsatisfied dependency expressed through method 'runtimeServiceBean' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'processEngine' defined in class path resource [org/activiti/spring/boot/ProcessEngineAutoConfiguration.class]: Unsatisfied dependency expressed through method 'processEngine' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springProcessEngineConfiguration' defined in class path resource [org/activiti/spring/boot/ProcessEngineAutoConfiguration.class]: Unsatisfied dependency expressed through method 'springProcessEngineConfiguration' parameter 6; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationUpgradeContextService' defined in class path resource [org/activiti/core/common/spring/project/conf/ApplicationUpgradeContextAutoConfiguration.class]: Unsatisfied dependency expressed through method 'applicationUpgradeContextService' parameter 1; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: \"1.0.0\""}
I checked the common and less common dependencies just in case I missed anything, but couldn't find anything. When I remove Activiti from project, it starts as expected.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.