1. Error description
Java.lang.noclassdeffounderror:org/activiti/bpmn/model/startevent at Org.activiti.image.impl.defaultprocessdiagramgenerator.<init> (defaultprocessdiagramgenerator.java:90) at Org.activiti.image.impl.defaultprocessdiagramgenerator.<init> (defaultprocessdiagramgenerator.java:83) at Org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initProcessDiagramGenerator ( processengineconfigurationimpl.java:1107) at Org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init ( processengineconfigurationimpl.java:421) at Org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine ( processengineconfigurationimpl.java:412) at Org.activiti.engine.impl.test.TestHelper.getProcessEngine ( testhelper.java:227) at Org.activiti.engine.test.ActivitiRule.initializeProcessEngine (activitirule.java:237) at Org.activiti.engine.test.ActivitiRule.starting (activitirule.java:205) at org.activiti.engine.test.ActivitiRule.startingQuietly (activitirule.java:171) at Org.activiti.engine.test.activitirule.access$000 (activitirule.java:86) at Org.activiti.engine.test.activitirule$1.evaluate (activitirule.java:124) at Org.junit.rules.RunRules.evaluate (RUNRULES.JAVA:20) at Org.junit.runners.ParentRunner.runLeaf (parentrunner.java:325) at Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:78) at Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:57) at Org.junit.runners.parentrunner$3.run (parentrunner.java:290) at Org.junit.runners.parentrunner$1.schedule ( parentrunner.java:71) at Org.junit.runners.ParentRunner.runChildren (parentrunner.java:288) at org.junit.runners.parentrunner.access$000 (parentrunner.java:58) at Org.junit.runners.parentrunner$2.evaluate ( parentrunner.java:268) at Org.junit.runners.ParentRunner.run (parentrunner.java:363) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (JUNIT4TESTREFERENCE.JAVA:50) at Org.eclipse.jdt.internal.junit.runner.TestExecution.run (Testexecution.java:38) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390) at
Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197) Java.lang.NullPointerException at Org.activiti.designer.test.ProcessTestAudition.startProcess ( processtestaudition.java:26) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:62) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:483) at Org.junit.runners.model.frameworkmethod$1.runreflectivecall (
FRAMEWORKMETHOD.JAVA:50) at Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:12) At Org.junit.runners.model. Frameworkmethod.invokeexplosively (frameworkmethod.java:47) at Org.junit.internal.runners.statements.InvokeMethod.evaluate (invokemethod.java:17) at Org.activiti.engine.test.activitirule$1.evaluate (activitirule.java:126) at Org.junit.rules.RunRules.evaluate ( RUNRULES.JAVA:20) at Org.junit.runners.ParentRunner.runLeaf (parentrunner.java:325) at Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:78) at Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:57) at Org.junit.runners.parentrunner$3.run (parentrunner.java:290) at Org.junit.runners.parentrunner$1.schedule ( parentrunner.java:71) at Org.junit.runners.ParentRunner.runChildren (parentrunner.java:288) at org.junit.runners.parentrunner.access$000 (parentrunner.java:58) at Org.junit.runners.parentrunner$2.evaluate ( parentrunner.java:268) at Org.junit.runners.ParentRunner.run (parentrunner.java:363) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (Junit4testrefereNCE.JAVA:50) at Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390) at
Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197) Org.activiti.engine.ActivitiException:Programmatic Error:could not instantiate Org.activiti.designer.test.ProcessTestAudition at Org.activiti.engine.test.ActivitiRule.finished ( activitirule.java:268) at org.activiti.engine.test.ActivitiRule.finishedQuietly (activitirule.java:179) at org.activiti.engine.test.activitirule.access$400 (activitirule.java:86) at org.activiti.engine.test.activitirule$ 1.evaluate (activitirule.java:135) at Org.junit.rules.RunRules.evaluate (RUNRULES.JAVA:20) at Org.junit.runners.ParentRunner.runLeaf(parentrunner.java:325) at Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:78) at Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:57) at Org.junit.runners.parentrunner$3.run (parentrunner.java:290) at Org.junit.runners.parentrunner$1.schedule ( parentrunner.java:71) at Org.junit.runners.ParentRunner.runChildren (parentrunner.java:288) at org.junit.runners.parentrunner.access$000 (parentrunner.java:58) at Org.junit.runners.parentrunner$2.evaluate ( parentrunner.java:268) at Org.junit.runners.ParentRunner.run (parentrunner.java:363) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (JUNIT4TESTREFERENCE.JAVA:50) at Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683) at Org.eclipse.jdt.internal.junit. Runner. Remotetestrunner.run (remotetestrunner.java:390) at Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main ( remotetestrunner.java:197) caused by:java.lang.classnotfoundexception:org/activiti/designer/test/ Processtestaudition at JAVA.LANG.CLASS.FORNAME0 (Native method) at Java.lang.Class.forName (class.java:259) at Org.activiti.engine.test.ActivitiRule.finished (activitirule.java:265) ...
More
2. Error reason
Known by the error hint, is missing Activiti-bpmn-model-related jar
3. Solutions
(1) Copy the Activiti-bpmn-model-5.21.0.jar to the Lib directory
(2) Add in Pom.xml
<!--https://mvnrepository.com/artifact/org.activiti/activiti-engine-->
<dependency>
< groupid>org.activiti</groupid>
<artifactId>activiti-engine</artifactId>
< Version>5.21.0</version>
</dependency>