AnsweredAssumed Answered

Failed to execute CommandLineRunner

Question asked by krishan.deo on Feb 29, 2016
Latest reply on Mar 25, 2016 by jbarrez
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

Outcomes