0 Replies Latest reply on Oct 23, 2015 1:16 AM by John Bush

    No task persistence context available

    John Bush Newbie

      Hi,

      Created a sample maven jbpm Application in eclipse.When I run it I am getting the No task persistence context available error.

      I have placed the Error Message below.

       

      Exception in thread "main" java.lang.IllegalStateException: No task persistence context available

          at org.jbpm.services.task.commands.TaskContext.getPersistenceContext(TaskContext.java:114)

          at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:32)

          at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:18)

          at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)

          at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)

          at org.jbpm.services.task.impl.TaskDeadlinesServiceImpl.initialize(TaskDeadlinesServiceImpl.java:367)

          at org.jbpm.services.task.HumanTaskConfigurator.getTaskService(HumanTaskConfigurator.java:153)

          at org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory.newTaskService(LocalTaskServiceFactory.java:65)

          at org.jbpm.runtime.manager.impl.SingletonRuntimeManager.init(SingletonRuntimeManager.java:82)

          at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newSingletonRuntimeManager(RuntimeManagerFactoryImpl.java:71)

          at com.sample.ProcessMain.createRuntimeManager(ProcessMain.java:60)

          at com.sample.ProcessMain.main(ProcessMain.java:27)

       

       

      Please guide me why I am getting such error?

       

       

       

      Thanks,

      John