Red Hat Bugzilla – Bug 1285103
Error using org.jbpm.kie.services.impl.KModuleDeploymentService to deploy
Last modified: 2016-01-04 14:41:54 EST
Created attachment 1098414 [details]
Full error log
Description of problem:
When using the org.jbpm.kie.services.impl.KModuleDeploymentService to deploy a deployment unit, I get the following error:
Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
The full log is attached.
The test works fine with jBPM version 6.2.0.Final-redhat-9.
Version-Release number of selected component (if applicable):
BPM Suite version 6.2.0.ER-redhat-5
jBPM version 6.3.0.Final-redhat-4
Steps to Reproduce:
1. Down load the services example here: https://github.com/mswiderski/spring-jbpm-app
2. Change the drools and jbpm version from 6.2.0-SNAPSHOT to 6.3.0.Final-redhat-4. Make sure you have the correct maven repository set up to include the early release maven libs.
3. Run mvn install and the test will fail.
Related to https://issues.jboss.org/browse/JBPM-4798
I have tested the spring-jbpm-example app and I can confirm that the problem is there.
However, it can be avoided if you use the product BOM, please try adding the following at the beginning of <dependencyManagement> section:
and declare the product version property as follows:
This will effectively use guava 13.0.1-redhat-2, which is the correct one.
Using the product BOM will make your application use the same versions of dependencies that BxMS product had been built with.
Nevertheless, after correcting guava version, the test fails with NPE in KModuleDeploymentService.processResources as described in . It seems to fail handling .ftl and .form resources.
The NPE was fixed by injecting FormManagerService instance into KModuleDeploymentService in jbpm-context.xml, please see .
The test then passes and the spring-jbpm-example deploys successfully (I was able to log in and deploy a kjar).
To sum it up, using product platform BOM and fixing jbpm-context.xml made spring-jbpm-example work with BxMS 6.2.0.
I would vote for closing this issue, do you think there is something I missed?
Thank you for the fix. I've tested this using:
Then adding the formManagerService property into deploymentService.
All tests are now working as expected.
Please close this issue.