cancel
Showing results for 
Search instead for 
Did you mean: 

NullpointerException at runtimeService.startProcessInstanceByKey

agiledevpro
Champ in-the-making
Champ in-the-making
Hi,

When I run a JUnit test that tries to start my process instance, I get nullPointerException at the row where I try to startProcessInstanceByKey.
I've tried putting my activiti.cfg.xml file in different places such as "C:\apache-tomcat-7.0.54\webapps\activiti-explorer\WEB-INF\classes",
"C:\apache-tomcat-7.0.54\webapps\activiti-explorer\WEB-INF\lib" and in my project under "src/main/java" and "src/main/resources" but I still get the same exception.


I've attached my JUnit test, activiti.cfg.xml and my bpmn20.xml file.

What am I doing wrong?

Thanks,
1 REPLY 1

agiledevpro
Champ in-the-making
Champ in-the-making
Hi,

It works now added bpmn20.xml och *.cfg.xml to resources.

Regards