12 Replies Latest reply on Aug 30, 2013 7:44 PM by Priyadarshini Amarjeeth

    Getting errors  while completing the human task.

    snowstorm tech Newbie

      Hi,

       

      I have executed  the  "Evalution" sample Process and fill the"krisv" in "user name" field  as a intial data for the process form.The process starts correctlly and new humantask is assign to "krisv" user and can be viewed correctlly but at the time of completing the task following errors are occours.

       

      17:57:28,403 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (Thread-72) Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

      17:57:28,423 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-72) Unable to commit transaction: javax.persistence.RollbackException: Error while committing the transaction

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:90) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.commit(TaskLocalTransactionManager.java:55) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:107) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.persistInTransaction(TaskServiceSession.java:1090) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.addGroupFromCallbackOperation(TaskServiceSession.java:1594) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doCallbackGroupsOperation(TaskServiceSession.java:1571) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doUserGroupCallbackOperation(TaskServiceSession.java:1213) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:411) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:78) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 12 more

      Caused by: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at $Proxy33.executeUpdate(Unknown Source)          at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 12 more

      Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

                at org.h2.message.DbException.get(DbException.java:169)

                at org.h2.message.DbException.get(DbException.java:146)

                at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:81)

                at org.h2.index.PageBtree.find(PageBtree.java:121)

                at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:146)

                at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:100)

                at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:105)

                at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:96)

                at org.h2.table.RegularTable.addRow(RegularTable.java:121)

                at org.h2.command.dml.Insert.insertRows(Insert.java:124)

                at org.h2.command.dml.Insert.update(Insert.java:84)

                at org.h2.command.CommandContainer.update(CommandContainer.java:73)

                at org.h2.command.Command.executeUpdate(Command.java:219)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:143)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:129)

                at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)

                at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source) [:1.6.0_24]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                ... 28 more

       

       

      17:57:28,896 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager] (Thread-72) Unable to commit, rolling back transaction.: java.lang.RuntimeException: Unable to commit transaction

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.commit(TaskLocalTransactionManager.java:59) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:107) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.persistInTransaction(TaskServiceSession.java:1090) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.addGroupFromCallbackOperation(TaskServiceSession.java:1594) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doCallbackGroupsOperation(TaskServiceSession.java:1571) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doUserGroupCallbackOperation(TaskServiceSession.java:1213) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:411) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: javax.persistence.RollbackException: Error while committing the transaction

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:90) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.commit(TaskLocalTransactionManager.java:55) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                ... 11 more

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:78) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 12 more

      Caused by: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at $Proxy33.executeUpdate(Unknown Source)          at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 12 more

      Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

                at org.h2.message.DbException.get(DbException.java:169)

                at org.h2.message.DbException.get(DbException.java:146)

                at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:81)

                at org.h2.index.PageBtree.find(PageBtree.java:121)

                at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:146)

                at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:100)

                at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:105)

                at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:96)

                at org.h2.table.RegularTable.addRow(RegularTable.java:121)

                at org.h2.command.dml.Insert.insertRows(Insert.java:124)

                at org.h2.command.dml.Insert.update(Insert.java:84)

                at org.h2.command.CommandContainer.update(CommandContainer.java:73)

                at org.h2.command.Command.executeUpdate(Command.java:219)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:143)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:129)

                at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)

                at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source) [:1.6.0_24]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                ... 28 more

       

       

      17:57:29,323 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-72) Unable to rollback transaction: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:110) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.persistInTransaction(TaskServiceSession.java:1090) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.addGroupFromCallbackOperation(TaskServiceSession.java:1594) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doCallbackGroupsOperation(TaskServiceSession.java:1571) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doUserGroupCallbackOperation(TaskServiceSession.java:1213) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:411) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

       

      17:57:29,432 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-72) Unable to rollback transaction: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.rollBackTransaction(TaskPersistenceManager.java:118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1120) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.persistInTransaction(TaskServiceSession.java:1090) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.addGroupFromCallbackOperation(TaskServiceSession.java:1594) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doCallbackGroupsOperation(TaskServiceSession.java:1571) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doUserGroupCallbackOperation(TaskServiceSession.java:1213) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:411) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

       

      17:57:29,530 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager] (Thread-72) Unable to rollback transaction (or to mark as 'to rollback')!: java.lang.RuntimeException: Unable to rollback transaction

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:77) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.rollBackTransaction(TaskPersistenceManager.java:118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1120) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.persistInTransaction(TaskServiceSession.java:1090) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.addGroupFromCallbackOperation(TaskServiceSession.java:1594) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doCallbackGroupsOperation(TaskServiceSession.java:1571) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doUserGroupCallbackOperation(TaskServiceSession.java:1213) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:411) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                ... 11 more

       

       

      17:57:29,647 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (Thread-72) SQL Error: 23505, SQLState: 23505

      17:57:29,654 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (Thread-72) Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

      17:57:29,656 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-34) Creating RulesRepository with default username.

      17:57:29,669 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-72) Unable to commit transaction: javax.persistence.RollbackException: Error while committing the transaction

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:90) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.commit(TaskLocalTransactionManager.java:55) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:107) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:78) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 10 more

      Caused by: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at $Proxy33.executeUpdate(Unknown Source)          at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 10 more

      Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

                at org.h2.message.DbException.get(DbException.java:169)

                at org.h2.message.DbException.get(DbException.java:146)

                at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:81)

                at org.h2.index.PageBtree.find(PageBtree.java:121)

                at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:146)

                at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:100)

                at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:105)

                at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:96)

                at org.h2.table.RegularTable.addRow(RegularTable.java:121)

                at org.h2.command.dml.Insert.insertRows(Insert.java:124)

                at org.h2.command.dml.Insert.update(Insert.java:84)

                at org.h2.command.CommandContainer.update(CommandContainer.java:73)

                at org.h2.command.Command.executeUpdate(Command.java:219)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:143)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:129)

                at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)

                at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source) [:1.6.0_24]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                ... 26 more

       

       

      17:57:29,677 INFO  [stdout] (http-localhost-127.0.0.1-8080-34) =============== session-guest-2518

       

       

      17:57:30,025 INFO  [stdout] (http-localhost-127.0.0.1-8080-34) =============== session-guest-2518

       

       

      17:57:30,023 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager] (Thread-72) Unable to commit, rolling back transaction.: java.lang.RuntimeException: Unable to commit transaction

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.commit(TaskLocalTransactionManager.java:59) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:107) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: javax.persistence.RollbackException: Error while committing the transaction

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:90) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.commit(TaskLocalTransactionManager.java:55) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                ... 9 more

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:78) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 10 more

      Caused by: org.hibernate.exception.ConstraintViolationException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:128) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at $Proxy33.executeUpdate(Unknown Source)          at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                ... 10 more

      Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)"; SQL statement:

      insert into OrganizationalEntity (DTYPE, id) values ('Group', ?) [23505-161]

                at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

                at org.h2.message.DbException.get(DbException.java:169)

                at org.h2.message.DbException.get(DbException.java:146)

                at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:81)

                at org.h2.index.PageBtree.find(PageBtree.java:121)

                at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:146)

                at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:100)

                at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:105)

                at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:96)

                at org.h2.table.RegularTable.addRow(RegularTable.java:121)

                at org.h2.command.dml.Insert.insertRows(Insert.java:124)

                at org.h2.command.dml.Insert.update(Insert.java:84)

                at org.h2.command.CommandContainer.update(CommandContainer.java:73)

                at org.h2.command.Command.executeUpdate(Command.java:219)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:143)

                at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:129)

                at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)

                at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source) [:1.6.0_24]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_24]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_24]

                at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                ... 26 more

       

       

      17:57:30,035 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-34) Creating RulesRepository with default username.

      17:57:30,390 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-72) Unable to rollback transaction: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:110) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

       

      17:57:30,392 INFO  [stdout] (http-localhost-127.0.0.1-8080-34) =============== session-guest-2519

       

       

      17:57:30,489 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-72) Unable to rollback transaction: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.rollBackTransaction(TaskPersistenceManager.java:118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1120) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

       

       

      17:57:30,491 INFO  [stdout] (http-localhost-127.0.0.1-8080-34) =============== session-guest-2519

       

       

      17:57:30,571 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager] (Thread-72) Unable to rollback transaction (or to mark as 'to rollback')!: java.lang.RuntimeException: Unable to rollback transaction

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:77) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.rollBackTransaction(TaskPersistenceManager.java:118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1120) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                ... 9 more

       

       

      17:57:30,662 ERROR [stderr] (Thread-72) java.lang.RuntimeException: Could not commit transaction

       

       

      17:57:30,667 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1130)

       

       

      17:57:30,675 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069)

       

       

      17:57:30,681 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605)

       

       

      17:57:30,687 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417)

       

       

      17:57:30,694 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90)

       

       

      17:57:30,700 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43)

       

       

      17:57:30,707 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104)

       

       

      17:57:30,714 ERROR [stderr] (Thread-72)           at java.lang.Thread.run(Thread.java:662)

       

       

      17:57:30,719 ERROR [stderr] (Thread-72) Caused by: java.lang.RuntimeException: Unable to rollback transaction

       

       

      17:57:30,724 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:77)

       

       

      17:57:30,732 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:110)

       

       

      17:57:30,739 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118)

       

       

      17:57:30,746 ERROR [stderr] (Thread-72)           ... 7 more

       

       

      17:57:30,750 ERROR [stderr] (Thread-72) Caused by: java.lang.IllegalStateException: Transaction not active

       

       

      17:57:30,756 ERROR [stderr] (Thread-72)           at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101)

       

       

      17:57:30,762 ERROR [stderr] (Thread-72)           at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70)

       

       

      17:57:30,770 ERROR [stderr] (Thread-72)           ... 9 more

       

       

      17:57:30,772 ERROR [org.jbpm.task.service.TaskServerHandler] (Thread-72) Could not commit transaction: java.lang.RuntimeException: Could not commit transaction

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1130) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getEntity(TaskServiceSession.java:1069) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.getTask(TaskServiceSession.java:605) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:417) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:90) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.RuntimeException: Unable to rollback transaction

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:77) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:110) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:1118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                ... 7 more

      Caused by: java.lang.IllegalStateException: Transaction not active

                at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:101) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                ... 9 more

       

       

      17:57:30,873 INFO  [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl] (Thread-72) HHH000010: On release of batch it still contained JDBC statements

      17:57:30,943 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http-localhost-127.0.0.1-8080-29) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Command OperationRequest faild due to Could not commit transaction. Please contact task server administrator.

                at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]

                at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]

      Caused by: java.lang.RuntimeException: Command OperationRequest faild due to Could not commit transaction. Please contact task server administrator.

                at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:729) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]

                ... 1 more

       

      Thanks in advance

        • 1. Re: Getting errors  while completing the human task.
          Maciej Swiderski Master

          seems like you have duplicated entires in origanizationalentity table which usually is caused by the same id for group and user. Make sure that you have unique names for both users and groups within task service.

           

          HTH

          • 2. Re: Getting errors  while completing the human task.
            snowstorm tech Newbie

            Thanks Maciej Swiderski for reply,

             

            I am using the  JBPM5.4 installer with default settings.

            User properties files contains below entries

             

            users.properties

            admin=admin

            krisv=krisv

            john=john

            mary=mary

            sales-rep=sales-rep

             

             

            Role properties file contains below entrries.

             

            roles.properties

             

            admin=admin,manager,user,webdesigner,functionalanalyst

            krisv=admin,manager,user

            john=admin,manager,user,PM

            mary=admin,manager,user,HR

            sales-rep=admin,manager,user,sales

             

             

            I do not see any duplicates.Where should i have to check for "task service".

            • 3. Re: Getting errors  while completing the human task.
              Maciej Swiderski Master

              what process do you run and what users/groups are used to assign actors for human task of that process? Could you upload/pastebin your process definition?

              • 4. Re: Getting errors  while completing the human task.
                snowstorm tech Newbie

                Following is the process definition which is provied in the "jbpm installer 5.4" and this process defination that I am using

                <?xml version="1.0" encoding="UTF-8"?>

                <definitions id="Definition"

                             typeLanguage="http://www.java.com/javaTypes"

                             targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL"

                             expressionLanguage="http://www.mvel.org/2.0"

                             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"

                             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                             xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"

                             xmlns:g="http://www.jboss.org/drools/flow/gpd"

                             xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"

                             xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"

                             xmlns:di="http://www.omg.org/spec/DD/20100524/DI"

                             xmlns:tns="http://www.jboss.org/drools">

                 

                 

                  <itemDefinition id="_employeeItem" />

                  <itemDefinition id="_reasonItem" />

                  <itemDefinition id="_performanceItem" />

                  <itemDefinition id="_contentItem" />

                 

                 

                  <itemDefinition id="_2-employeeItem" />

                  <itemDefinition id="_2-reasonItem" />

                  <itemDefinition id="_2-performanceItem" />

                  <itemDefinition id="_2-contentItem" />

                 

                 

                  <itemDefinition id="_3-employeeItem" />

                  <itemDefinition id="_3-reasonItem" />

                  <itemDefinition id="_3-performanceItem" />

                  <itemDefinition id="_3-contentItem" />

                 

                 

                  <itemDefinition id="_4-employeeItem" />

                  <itemDefinition id="_4-reasonItem" />

                  <itemDefinition id="_4-performanceItem" />

                  <itemDefinition id="_4-contentItem" />

                 

                 

                  <process processType="Private" isExecutable="true" id="com.sample.evaluation" name="Evaluation" tns:packageName="defaultPackage" >

                 

                 

                    <!-- process variables -->

                    <property id="employee" itemSubjectRef="_employeeItem"/>

                    <property id="reason" itemSubjectRef="_reasonItem"/>

                    <property id="performance" itemSubjectRef="_performanceItem"/>

                    <property id="content" itemSubjectRef="_contentItem"/>

                 

                 

                    <!-- nodes -->

                    <startEvent id="_1" name="Start" />

                    <userTask id="_2" name="Self Evaluation" >

                      <extensionElements>

                        <tns:onEntry-script scriptFormat="http://www.java.com/java">

                          <tns:script>java.util.Map contentParam = new java.util.HashMap();

                contentParam.put("reason", reason);

                kcontext.setVariable("content", contentParam);</tns:script>

                        </tns:onEntry-script>

                      </extensionElements>

                      <ioSpecification>

                        <dataInput id="_2_ContentInput" name="Content" />

                        <dataInput id="_2_CommentInput" name="Comment" />

                        <dataInput id="_2_SkippableInput" name="Skippable" />

                        <dataInput id="_2_TaskNameInput" name="TaskName" />

                        <dataOutput id="_2_performanceOutput" name="performance" />

                        <inputSet>

                          <dataInputRefs>_2_ContentInput</dataInputRefs>

                          <dataInputRefs>_2_CommentInput</dataInputRefs>

                          <dataInputRefs>_2_SkippableInput</dataInputRefs>

                          <dataInputRefs>_2_TaskNameInput</dataInputRefs>

                        </inputSet>

                        <outputSet>

                          <dataOutputRefs>_2_performanceOutput</dataOutputRefs>

                        </outputSet>

                      </ioSpecification>

                      <dataInputAssociation>

                        <sourceRef>content</sourceRef>

                        <targetRef>_2_ContentInput</targetRef>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_2_CommentInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">Please perform a self-evalutation.</from>

                          <to xsi:type="tFormalExpression">_2_CommentInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_2_SkippableInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">false</from>

                          <to xsi:type="tFormalExpression">_2_SkippableInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_2_TaskNameInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">Performance Evaluation</from>

                          <to xsi:type="tFormalExpression">_2_TaskNameInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataOutputAssociation>

                        <sourceRef>_2_performanceOutput</sourceRef>

                        <targetRef>performance</targetRef>

                      </dataOutputAssociation>

                      <potentialOwner>

                        <resourceAssignmentExpression>

                          <formalExpression>#{employee}</formalExpression>

                        </resourceAssignmentExpression>

                      </potentialOwner>

                    </userTask>

                    <userTask id="_3" name="PM Evaluation" >

                      <extensionElements>

                        <tns:onEntry-script>

                          <tns:script>java.util.Map contentParam = new java.util.HashMap();

                contentParam.put("reason", reason);

                contentParam.put("performance", performance);

                kcontext.setVariable("content", contentParam);</tns:script>

                        </tns:onEntry-script>

                      </extensionElements>

                      <ioSpecification>

                        <dataInput id="_3_ContentInput" name="Content" />

                        <dataInput id="_3_CommentInput" name="Comment" />

                        <dataInput id="_3_SkippableInput" name="Skippable" />

                        <dataInput id="_3_TaskNameInput" name="TaskName" />

                        <dataInput id="_3_GroupIdInput" name="GroupId" />

                        <inputSet>

                          <dataInputRefs>_3_ContentInput</dataInputRefs>

                          <dataInputRefs>_3_CommentInput</dataInputRefs>

                          <dataInputRefs>_3_SkippableInput</dataInputRefs>

                          <dataInputRefs>_3_TaskNameInput</dataInputRefs>

                          <dataInputRefs>_3_GroupIdInput</dataInputRefs>

                        </inputSet>

                        <outputSet>

                        </outputSet>

                      </ioSpecification>

                      <dataInputAssociation>

                        <sourceRef>content</sourceRef>

                        <targetRef>_3_ContentInput</targetRef>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_3_CommentInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>

                          <to xsi:type="tFormalExpression">_3_CommentInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_3_SkippableInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">false</from>

                          <to xsi:type="tFormalExpression">_3_SkippableInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_3_TaskNameInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">Performance Evaluation</from>

                          <to xsi:type="tFormalExpression">_3_TaskNameInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_3_GroupIdInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">PM</from>

                          <to xsi:type="tFormalExpression">_3_GroupIdInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <potentialOwner>

                        <resourceAssignmentExpression>

                          <formalExpression></formalExpression>

                        </resourceAssignmentExpression>

                      </potentialOwner>

                    </userTask>

                    <userTask id="_4" name="HR Evaluation" >

                      <extensionElements>

                        <tns:onEntry-script scriptFormat="http://www.java.com/java">

                          <tns:script>java.util.Map contentParam = new java.util.HashMap();

                contentParam.put("reason", reason);

                contentParam.put("performance", performance);

                kcontext.setVariable("content", contentParam);</tns:script>

                        </tns:onEntry-script>

                      </extensionElements>

                      <ioSpecification>

                        <dataInput id="_4_ContentInput" name="Content" />

                        <dataInput id="_4_CommentInput" name="Comment" />

                        <dataInput id="_4_SkippableInput" name="Skippable" />

                        <dataInput id="_4_TaskNameInput" name="TaskName" />

                        <dataInput id="_4_GroupIdInput" name="GroupId" />

                        <inputSet>

                          <dataInputRefs>_4_ContentInput</dataInputRefs>

                          <dataInputRefs>_4_CommentInput</dataInputRefs>

                          <dataInputRefs>_4_SkippableInput</dataInputRefs>

                          <dataInputRefs>_4_TaskNameInput</dataInputRefs>

                          <dataInputRefs>_4_GroupIdInput</dataInputRefs>

                        </inputSet>

                        <outputSet>

                        </outputSet>

                      </ioSpecification>

                      <dataInputAssociation>

                        <sourceRef>content</sourceRef>

                        <targetRef>_4_ContentInput</targetRef>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_4_CommentInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>

                          <to xsi:type="tFormalExpression">_4_CommentInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_4_SkippableInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">false</from>

                          <to xsi:type="tFormalExpression">_4_SkippableInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_4_TaskNameInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">Performance Evaluation</from>

                          <to xsi:type="tFormalExpression">_4_TaskNameInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <dataInputAssociation>

                        <targetRef>_4_GroupIdInput</targetRef>

                        <assignment>

                          <from xsi:type="tFormalExpression">HR</from>

                          <to xsi:type="tFormalExpression">_4_GroupIdInput</to>

                        </assignment>

                      </dataInputAssociation>

                      <potentialOwner>

                        <resourceAssignmentExpression>

                          <formalExpression></formalExpression>

                        </resourceAssignmentExpression>

                      </potentialOwner>

                    </userTask>

                    <parallelGateway id="_5" name="Gateway" gatewayDirection="Diverging" />

                    <parallelGateway id="_6" name="Gateway" gatewayDirection="Converging" />

                    <endEvent id="_7" name="End" >

                        <terminateEventDefinition />

                    </endEvent>

                 

                 

                    <!-- connections -->

                    <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />

                    <sequenceFlow id="_5-_3" sourceRef="_5" targetRef="_3" />

                    <sequenceFlow id="_5-_4" sourceRef="_5" targetRef="_4" />

                    <sequenceFlow id="_2-_5" sourceRef="_2" targetRef="_5" />

                    <sequenceFlow id="_4-_6" sourceRef="_4" targetRef="_6" />

                    <sequenceFlow id="_3-_6" sourceRef="_3" targetRef="_6" />

                    <sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />

                 

                 

                  </process>

                 

                 

                  <bpmndi:BPMNDiagram>

                    <bpmndi:BPMNPlane bpmnElement="com.sample.evaluation" >

                      <bpmndi:BPMNShape bpmnElement="_1" >

                        <dc:Bounds x="16" y="56" width="48" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape bpmnElement="_2" >

                        <dc:Bounds x="96" y="56" width="135" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape bpmnElement="_3" >

                        <dc:Bounds x="344" y="96" width="136" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape bpmnElement="_4" >

                        <dc:Bounds x="344" y="16" width="136" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape bpmnElement="_5" >

                        <dc:Bounds x="263" y="56" width="48" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape bpmnElement="_6" >

                        <dc:Bounds x="512" y="56" width="48" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape bpmnElement="_7" >

                        <dc:Bounds x="593" y="56" width="48" height="48" />

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNEdge bpmnElement="_1-_2" >

                        <di:waypoint x="40" y="80" />

                        <di:waypoint x="163" y="80" />

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge bpmnElement="_5-_3" >

                        <di:waypoint x="287" y="80" />

                        <di:waypoint x="287" y="120" />

                        <di:waypoint x="412" y="120" />

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge bpmnElement="_5-_4" >

                        <di:waypoint x="287" y="80" />

                        <di:waypoint x="287" y="40" />

                        <di:waypoint x="412" y="40" />

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge bpmnElement="_2-_5" >

                        <di:waypoint x="163" y="80" />

                        <di:waypoint x="287" y="80" />

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge bpmnElement="_4-_6" >

                        <di:waypoint x="412" y="40" />

                        <di:waypoint x="536" y="40" />

                        <di:waypoint x="536" y="80" />

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge bpmnElement="_3-_6" >

                        <di:waypoint x="412" y="120" />

                        <di:waypoint x="537" y="120" />

                        <di:waypoint x="536" y="80" />

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge bpmnElement="_6-_7" >

                        <di:waypoint x="536" y="80" />

                        <di:waypoint x="617" y="80" />

                      </bpmndi:BPMNEdge>

                    </bpmndi:BPMNPlane>

                  </bpmndi:BPMNDiagram>

                 

                 

                </definitions>

                 

                • 5. Re: Getting errors  while completing the human task.
                  irs Newbie

                  Thanks Maciej

                   

                           It solved the issue, there were two entries for the admin as Group and as a User. So removed the User entry and the process worked fine

                   

                    

                  Regards

                  Irshad.

                  • 6. Re: Getting errors  while completing the human task.
                    Pavan Kumar Mantha Newbie

                    Hello all

                     

                    I Started with jBPM and installed the Demo setup and running the simple evolution human task. i get the same error as described above. please advice me what and where to check.

                    also can any one post me simple HumanTask example(Hello World kind) so that i can expand my own logic.

                     

                    Please do the needful

                    • 7. Re: Getting errors  while completing the human task.
                      irs Newbie

                      Hello Pavan,

                       

                      The error which you are facing, occurs because of duplicated entires in origanizationalentity table. If you have configured any databass with your jbpm engine, then you will have to check out the "origanizationalentity" table, in that table you may be having duplicate entries for User and Group,so you can remove one of the entries from the table.As i have mentioned that I had two entries for admin as a User and Group..

                       

                      Regards

                      Irshad

                      • 8. Re: Getting errors  while completing the human task.
                        Pavan Kumar Mantha Newbie

                        Hello Irshad

                         

                        Thansk for your response.

                         

                        Step 1: I am running the default setup using "ant start.demo"

                        Step 2: after that i opened the h2 db and saw no database available

                         

                        can you please suggeste me how to configure my demo jbpm engine with Mysql.

                        so that i can start practicing HumanTasks.

                         

                        Thanks.

                        • 9. Re: Getting errors  while completing the human task.
                          irs Newbie

                          Hello Pavan,

                           

                          To configure jbpm engine with mysql databse you can follow the bellow link.

                          http://www.attuneinfocom.com/blog/guideline-for-configuring-jbpm-database.html

                           

                          Hope you find the link helpful

                           

                          Regards,

                          • 10. Re: Re: Getting errors  while completing the human task.
                            Priyadarshini Amarjeeth Newbie

                            Hi Maciej,

                             

                            I land into this error ' Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ORGANIZATIONALENTITY(ID)";' and the specific scneario where am landing into this error is

                             

                            1. There is a initiator screen and am logging in with the user admin.This screen captures the basic information of the customer

                            2. the last human task is followed by the script task and actor for this user is sales-rep belonging to sales group

                            3. There is a script task after the user task

                            4. The error appears when I click compete on the Human Task screen.

                             

                            But if I run the same by taking off the script task it works without any issue

                             

                            Also it would be great if you could let me know how to access these DB tables seamlessly using H2 console.because most of the times i get error saying db lcoked when i try to login into the jBPM schema through H2 console.

                             

                            Regards,

                            PRiya

                            • 11. Re: Re: Getting errors  while completing the human task.
                              Maciej Swiderski Master

                              this error indicates there is a duplicate user/group being added to organizational entity table. THis might have something to do with admin as it might be assigned to group admin too. And having user and group with same id won't work. Please double check how they are managed to avoid inserting duplicated entries.

                               

                              When it comes to H2, it runs by default in file mode so only single process can connect to it at the same time. So either you have to stop the application server to be able to connect to db. Alternatively you can reconfigure data source in AS7 to use h2 in server mode, but that requires to start h2 server before starting application server. More details about H2 server mode can be found on H2 web site.

                               

                              HTH

                              • 12. Re: Re: Getting errors  while completing the human task.
                                Priyadarshini Amarjeeth Newbie

                                Thanks Maciej for the quick reply.

                                 

                                You are right this issue was occuring only when I logged in with the admin user.Now am not using the admin user for any logging in and infact have created my own set of users/user groups.

                                 

                                Regards,

                                Priya