[jBPM] - JTA in jBPM5.4 on jBoss7.1.1 is inconsistent - Urgent help please
by Arif Mohammed
Arif Mohammed [https://community.jboss.org/people/arif.mohammed] created the discussion
"JTA in jBPM5.4 on jBoss7.1.1 is inconsistent - Urgent help please"
To view the discussion, visit: https://community.jboss.org/message/800174#800174
--------------------------------------------------------------
Hi All,
Iam doing a prototype to evaluate jBPM5 for using it in a web application. I have defined a simple process StartUseCase -> CheckDuplicateOperator -> PersistOperator -> EndUseCase.
In StartUseCase and EndUseCase activities Iam calling LocalTaskService to start and complete the user task respectively. I can't use HumanTask here due to some other reason. Following are the technology stack Iam using.
JBoss7.1.1 Application server
Spring MVC 3.0.5
Hibernate4
jBPM5.4.0.Final
*Problem:* When I create a persistable session I get the exception "*java.lang.IllegalStateException: BaseTransaction.rolback - ARJUNA01604: no transaction!*" When I inspect the stack trace further I see "*java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (JBPM.SYS_C0010966) violated*"
The above integrity constraint violation which is related to primary key in SESSIONINFO table is strange to me, as Iam not having any control over there and it is jBPM's responsibility to insert and update the session information. I also noticed the first line of exception some times during the end of my process, while it is updating the information in DB about the process and this behaviour is sporadic.
It is even strange to me that if I restart the jBoss Application server it works fine with out any exception huff... Am I doing any thing wrong here ? I have attached all of my handlers along with persistence.xml and spring configuration, your quick help is appreciated.
To look at the code you can start at OperatorController.saveOperator which is the trigger point for the process.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800174#800174]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - Getting errors while completing the human task.
by snowstorm tech
snowstorm tech [https://community.jboss.org/people/snowstormuser] created the discussion
"Getting errors while completing the human task."
To view the discussion, visit: https://community.jboss.org/message/798347#798347
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/798347#798347]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[JNDI and Naming] - JBoss JMS JNDI lookup NameNotFoundException
by John Wasmat
John Wasmat [https://community.jboss.org/people/johnwasmat] created the discussion
"JBoss JMS JNDI lookup NameNotFoundException"
To view the discussion, visit: https://community.jboss.org/message/744682#744682
--------------------------------------------------------------
Hello,
Following is my JMS client code. I`m getting a NameNotFoundException. I`m struggling for almost 2 weeks now and would appreciate any help
Clinet code:
private static final String DEFAULT_MESSAGE = "Hello, World!";
private static final String DEFAULT_CONNECTION_FACTORY = "jms/RemoteConnectionFactory";
private static final String DEFAULT_DESTINATION = "jms/queue/test";
private static final String DEFAULT_MESSAGE_COUNT = "1";
private static final String DEFAULT_USERNAME = "admin";
private static final String DEFAULT_PASSWORD = "admin";
private static final String INITIAL_CONTEXT_FACTORY = "org.jboss.naming.remote.client.InitialContextFactory";
private static final String PROVIDER_URL = "remote://127.0.0.1:4447";
final Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
env.put(Context.PROVIDER_URL, System.getProperty(Context.PROVIDER_URL, PROVIDER_URL));
env.put(Context.SECURITY_PRINCIPAL, System.getProperty("username", DEFAULT_USERNAME));
env.put(Context.SECURITY_CREDENTIALS, System.getProperty("password", DEFAULT_PASSWORD));
context = new InitialContext(env);
// Perform the JNDI lookups
String connectionFactoryString = System.getProperty("connection.factory", DEFAULT_CONNECTION_FACTORY);
log.info("Attempting to acquire connection factory \"" + connectionFactoryString + "\"");
connectionFactory = (ConnectionFactory) context.lookup(connectionFactoryString);
log.info("Found connection factory \"" + connectionFactoryString + "\" in JNDI");
"admin" "admin" is added as an ApplicationRealm user. following is the exception i`m getting
SEVERE: Error in setupPubSub jboss/exported/jms/topic/ServerNotification -- service jboss.naming.context.java.jboss.exported.jboss.exported.jms.topic.ServerNotification
javax.naming.NameNotFoundException: jboss/exported/jms/topic/ServerNotification -- service jboss.naming.context.java.jboss.exported.jboss.exported.jms.topic.ServerNotification
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:127)
at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744682#744682]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - OSGi: Caused by: java.lang.ClassNotFoundException: org.drools.persistence.jpa.KnowledgeStoreServiceImpl
by Mariusz Cwikla
Mariusz Cwikla [https://community.jboss.org/people/mariuszcwikla] created the discussion
"OSGi: Caused by: java.lang.ClassNotFoundException: org.drools.persistence.jpa.KnowledgeStoreServiceImpl"
To view the discussion, visit: https://community.jboss.org/message/780506#780506
--------------------------------------------------------------
Hello,
I'm trying to run JBPM 5.4 inside an OSGi container. I've encountered a problem when using JPAKnowledgeService.newStatefulKnowledgeSession.
I get following error:
java.lang.RuntimeException: Provider org.drools.persistence.jpa.KnowledgeStoreServiceImpl could not be set.
at org.drools.persistence.jpa.JPAKnowledgeService.loadProvider(JPAKnowledgeService.java:155)
at org.drools.persistence.jpa.JPAKnowledgeService.getJPAKnowledgeServiceProvider(JPAKnowledgeService.java:143)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
....
Caused by: java.lang.ClassNotFoundException: org.drools.persistence.jpa.KnowledgeStoreServiceImpl
I found out that JPAKnowledgeService uses reflection to instantiate KnowledgeStoreServiceImpl class. Both classes are in org.drools.persistence.jpa package, but one is knowledge-api-5.5.0.Final.jar and second is in drools-persistence-jpa-5.5.0.Final.jar.
I'm not an OSGi expert, but I think that both classes should be in one .jar file (currently it's "split packages" problem).
Currently I have a workaround to use KnowledgetStoreServiceImpl directly and not use JPAKnowledgeService.
Or is there another workaround?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780506#780506]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - Human task escalation understanding
by javajbpmuser
javajbpmuser [https://community.jboss.org/people/javajbpmuser] created the discussion
"Human task escalation understanding"
To view the discussion, visit: https://community.jboss.org/message/796361#796361
--------------------------------------------------------------
Hi community,
I have some questions about Human Task node in jbpm v5.4. Actually I am designing a sample process that contains two human tasks ,in the second one I had defined Escalation mechanism ( when task is not-started , set expires at to 60s and set user Id).
When process reaches the second node of my process I see that after 60s , that Task status ( in jbpm database table Task) changed from "Reserved" to "Ready", but no user is assigned on that task (actualOwner_id had been changed to NULL) . I was wondering what could be the cause of that ?
I tried to see the java API but I did not find how I can catch the escalation event for Human Task , May I have any idea or help about how I can do that ? because actually what I am trying to do is when "Human Task" had been reassigned to another user , I should call a Java method to update some data on my application.
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796361#796361]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months