Hi,
I migrate from camunda 7.2 to 7.8 and execute a test in arquillian.
Test in 7.2 versión executes correctly, but with 7.8 gets a null pointer exception.
here is the stacktrace:
11:54:00,500 ERROR [org.camunda.bpm.engine.context] (http-/0.0.0.0:8080-1) ENGINE-16004 Exception while closing command context: null: java.lang.NullPointerException
at org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity.addResource(DeploymentEntity.java:62) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.deploy.cache.CacheDeployer.initDeployment(CacheDeployer.java:78) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.deploy.cache.CacheDeployer.deployOnlyGivenResourcesOfDeployment(CacheDeployer.java:58) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.deploy.cache.ResourceDefinitionCache.resolveDefinition(ResourceDefinitionCache.java:103) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.deploy.cache.ResourceDefinitionCache.findDeployedDefinitionById(ResourceDefinitionCache.java:52) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.deploy.cache.DeploymentCache.findDeployedProcessDefinitionById(DeploymentCache.java:73) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.ensureProcessDefinitionInitialized(ExecutionEntity.java:759) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.getProcessDefinition(ExecutionEntity.java:741) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.cfg.auth.AuthorizationCommandChecker.checkReadTask(AuthorizationCommandChecker.java:305) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.cmd.GetTaskVariableCmd.checkGetTaskVariable(GetTaskVariableCmd.java:69) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.cmd.GetTaskVariableCmd.execute(GetTaskVariableCmd.java:54) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:104) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:58) [camunda-engine-7.8.0.jar:7.8.0]
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:66) [camunda-engine-7.8.0.jar:7.8.0]
We runs the arquillian under jBoss and creating war file adding used libraries like this:
WebArchive myArchive = ShrinkWrap.create(WebArchive.class, “test-epsilon-api-impl.war”)
// Libraries api-impl
.addAsLibraries(Maven.resolver()
.loadPomFromFile(“pom.xml”)
.resolve(“net.sf.dozer:dozer”,
“org.slf4j:slf4j-api”,
“org.jadira.usertype:usertype.core”,
“com.fasterxml.jackson.core:jackson-databind”,
…
“org.camunda.bpm:camunda-engine”,
“org.camunda.bpm:camunda-engine-cdi”,
“org.camunda.bpm.javaee:camunda-ejb-client”,
…
.withTransitivity()
.asFile())
.addPackages(true,
…
Is need to add or remove new package o dependencies with 7.8 version?
Kind regards.
Marcel.