1 Reply Latest reply on Aug 28, 2014 1:52 AM by Maciej Swiderski

    Problem running jbpm maven project in JBPM-6.1.0.Final

    ken_re Newbie

      I downloaded jbpm-6.1.0.Final-installer-full.  I unzip it and did an ant install.demo.  Then I tried to install a jbpm maven project.  That was completed with not problem but when I went to run ProcessMain as a java program I get the following error:  Does anyone know how to fix this problem.  If I use the previous release I works.

       

       

      Exception in thread "main" org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn.hello:2,108 - Task 1:3] -- org.hibernate.exception.DataException: could not execute statement

       

      at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:144)

       

      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:162)

       

      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:354)

       

      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:313)

       

      at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:66)

       

      at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:43)

       

      at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:162)

       

      at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)

       

      at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:226)

       

      at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:363)

       

      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:187)

       

      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:169)

       

      at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:161)

       

      at org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:1850)

       

      at org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:121)

       

      at org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:40)

       

      at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

       

      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

       

      at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:509)

       

      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

       

      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73)

       

      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

       

      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:60)

       

      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:353)

       

      at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:230)

       

      at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:221)

       

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

       

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute statement

       

      at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387)

       

      at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310)

       

      at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1316)

       

      at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:881)

       

      at org.jbpm.services.task.persistence.JPATaskPersistenceContext.persist(JPATaskPersistenceContext.java:439)

       

      at org.jbpm.services.task.audit.JPATaskLifeCycleEventListener.afterTaskAddedEvent(JPATaskLifeCycleEventListener.java:191)

       

      at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskAdded(TaskEventSupport.java:216)

       

      at org.jbpm.services.task.impl.TaskInstanceServiceImpl.addTask(TaskInstanceServiceImpl.java:105)

       

      at org.jbpm.services.task.commands.AddTaskCommand.execute(AddTaskCommand.java:107)

       

      at org.jbpm.services.task.commands.AddTaskCommand.execute(AddTaskCommand.java:54)

       

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

       

      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

       

      at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:54)

       

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

       

      at org.jbpm.services.task.impl.command.CommandBasedTaskService.addTask(CommandBasedTaskService.java:488)

       

      at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.addTask(SynchronizedTaskService.java:450)

       

      at org.jbpm.services.task.wih.LocalHTWorkItemHandler.executeWorkItem(LocalHTWorkItemHandler.java:61)

       

      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:54)

       

      at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:133)