Camunda engine update7.17.0 issue

Hi

After upgrading camunda 7.17.0 in my spring boot application , gradle build is failing…
Test case is failng with below error.

StartProcessAbstractTest > testStartProcess() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

WorkflowEngineTest > initializeTest() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

Could you please suggest why it is so ?

i have update th below dependency:
api(‘org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:7.17.0’)

api('org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-test:7.17.0'){
    exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}

Hi @Shashi_Bhushan,

Can you please attach your project (ideally reduced to the essentials) so that I can reproduce it on my end? If not, could you please attach the full stacktrace of the failed tests?

Best,
Tassilo

Task :test

CustomDataConfigurationTest > initializeBean() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getUrl() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getPassword() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getAutoMigrationEnabled() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getDeploymentTenantId() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getMigrationPlan() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getMigrationStrategy() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getDriverClassName() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

CustomConfigurationPropertiesTest > getUsername() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

WorkflowAutoConfigurationTest > initializeBean() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

MigratorServiceTest > autoInstanceMigration() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testStartProcessWithNoExistingInstance() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testStartProcessWithExistingInstanceThenExpectedException() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testNoMatchCorrelateMessageThenExpectedException() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testCorrelateMessage() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > givenisUniqueInstanceFalseThenCanCreateMultiInstance() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testVerifyInstance() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testStartProcessWithoutBusinessKey() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

StartProcessAbstractTest > testStartProcess() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

WorkflowEngineTest > initializeTest() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
Caused by: org.springframework.boot.context.config.ConfigDataLocationNotFoundException at StandardConfigDataLocationResolver.java:286

23 tests completed, 20 failed

As i can not attach project so plase find the attached stack

seems like it needs some more dependency to support Test Cases, but not sure what?

Hi @Shashi_Bhushan,

Might be related to this bug https://jira.camunda.com/browse/CAM-14511.

Can you try adding the following dependency to your project?

    <dependency>
        <groupId>org.junit.vintage</groupId>
        <artifactId>junit-vintage-engine</artifactId>
        <version>${version.junit5}</version>
        <scope>test</scope>
    </dependency>

Best,
Tassilo

1 Like

Which spring-boot version is supporting in Camunda 7.17 ? when we are upgrading spring-boot version 2.6.7 its not working.

Hi @Shashi_Bhushan,

7.17.0 should work with Spring Boot 2.6.7.

You can find this information in our Spring Boot Version Compatibility documentation.

Best,
Tassilo

Hi,
But when we are trying getting below error in PCF:
org.camunda.bpm.engine.rest.history.HistoricVariableInstanceRestService.getHistoricVariableInstancesCount(javax.ws.rs.core.UriInfo) at matching regular expression /count. These two methods produces and consumes exactly the same mime-types and therefore their invocation as a resource methods will always fail.; source=‘org.glassfish.jersey.server.model.RuntimeResource@39c0efdb’, [FATAL] A resource model has ambiguous (sub-)resource method for HTTP method GET and input mime-types as defined by"@Consumes" and “@Produces” annotations at Java methods public java.util.List org.camunda.bpm.engine.rest.impl.NamedProcessEngineRestServiceImpl.getProcessEngineNames() and public java.util.List org.camunda.bpm.engine.rest.impl.NamedProcessEngineRestServiceImpl.getProcessEngineNames() at matching regular expression /engine. These two methods produces and consumes exactly the same mime-types and therefore their invocation as a resource methods will always fail.; source=‘org.glassfish.jersey.server.model.RuntimeResource@67652bd6’]

2022-05-18T17:02:33.716+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:375)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:297)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.internal.Errors.process(Errors.java:292)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.internal.Errors.process(Errors.java:274)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:296)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:261)

2022-05-18T17:02:33.717+05:30 [APP/PROC/WEB/0] [OUT] at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)

2022-05-18T

org.camunda.bpm.engine.rest.sub.VariableResource cannot be instantiated and will be ignored.

2022-05-18T17:03:58.696+05:30 [APP/PROC/WEB/0] [OUT] [CONTAINER] org.glassfish.jersey.internal.Errors SEVERE Following issues have been detected:

2022-05-18T17:03:58.696+05:30 [APP/PROC/WEB/0] [OUT] WARNING: Both resources, resource Builder{names=[[unnamed], [unnamed]], path=’/case-instance’, methodBuilders=[], ch