cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to execute CommandLineRunner

krishan_deo
Champ in-the-making
Champ in-the-making
Hi
I am getting following error when I am executing simple activiti program with spring boot. Please help I am new in activiti..

java.lang.IllegalStateException: Failed to execute CommandLineRunner
   at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:680)
   at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:695)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
   at com.bizruntime.activiti.SpringBootWithActiviti.main(SpringBootWithActiviti.java:25)
Caused by: org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'oneTaskProcess'
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedLatestProcessDefinitionByKey(DeploymentManager.java:81)
   at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:79)
   at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
   at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
   at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
   at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
   at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:69)
   at com.bizruntime.activiti.SpringBootWithActiviti$1.run(SpringBootWithActiviti.java:37)
   at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:677)
   … 5 common frames omitted
11 REPLIES 11

binod1
Champ in-the-making
Champ in-the-making
Hello Sir. I am getting same problem that Failed to execute Command LineRunner. Document says it will automatic deploy but, giving error also like no processes deployed with key 'oneTaskProcess'. Please help me.

Thank you

jbarrez
Star Contributor
Star Contributor
Where did you add your process definitions? Did you add them to /processes in your resources (that's where Spring Boot will pick them up).