0 Replies Latest reply on Oct 14, 2014 8:15 AM by Ayesha AMPM

    Jbpm console login error

    Ayesha AMPM Newbie

      Following error occured when i am accessing processes via Jbpm console.

       

      17:39:46,067 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-70) 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.addUserFromCallbackOperation(TaskServiceSession.java:1606) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

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

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

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:309) [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:724) [rt.jar:1.7.0_25]

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Duplicate entry 'admin' for key 1

          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]

          ... 11 more

      Caused by: org.hibernate.exception.ConstraintViolationException: Duplicate entry 'admin' for key 1

          at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74) [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 com.sun.proxy.$Proxy81.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]

          ... 11 more

      Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'admin' for key 1

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_25]

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_25]

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_25]

          at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_25]

          at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)

          at com.mysql.jdbc.Util.getInstance(Util.java:386)

          at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)

          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)

          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)

          at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)

          at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)

          at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)

          at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)

          at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)

          at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345)

          at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330)

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

          at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) [:1.7.0_25]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]

          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]

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

          ... 27 more

       

      17:39:46,155 INFO  [stdout] (http-localhost-127.0.0.1-8080-8) =============== session-admin-6

      17:39:46,301 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager] (Thread-70) 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.addUserFromCallbackOperation(TaskServiceSession.java:1606) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

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

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

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:309) [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:724) [rt.jar:1.7.0_25]

      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]

          ... 10 more

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Duplicate entry 'admin' for key 1

          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]

          ... 11 more

      Caused by: org.hibernate.exception.ConstraintViolationException: Duplicate entry 'admin' for key 1

          at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74) [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 com.sun.proxy.$Proxy81.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]

          ... 11 more

      Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'admin' for key 1

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_25]

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_25]

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_25]

          at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_25]

          at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)

          at com.mysql.jdbc.Util.getInstance(Util.java:386)

          at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)

          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)

          at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)

          at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)

          at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)

          at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)

          at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)

          at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)

          at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345)

          at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330)

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

          at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) [:1.7.0_25]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]

          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]

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

          ... 27 more

       

      17:39:46,480 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-70) 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.addUserFromCallbackOperation(TaskServiceSession.java:1606) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

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

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

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:309) [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:724) [rt.jar:1.7.0_25]

       

      17:39:46,527 WARN  [org.jbpm.task.service.persistence.TaskLocalTransactionManager] (Thread-70) 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.addUserFromCallbackOperation(TaskServiceSession.java:1606) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

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

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

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:309) [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:724) [rt.jar:1.7.0_25]

       

      17:39:46,581 ERROR [org.jbpm.task.service.persistence.TaskPersistenceManager] (Thread-70) 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.addUserFromCallbackOperation(TaskServiceSession.java:1606) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

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

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

          at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:309) [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:724) [rt.jar:1.7.0_25]

      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]

          ... 10 more

       

      17:39:46,671 INFO  [stdout] (Thread-70) Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?)

      17:39:46,681 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (Thread-70) SQL Error: 1062, SQLState: 23000

      17:39:46,683 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (Thread-70) Duplicate entry 'admin' for key 1

      17:39:46,691 ERROR [stderr] (Thread-70) java.lang.RuntimeException: Operation failed

      17:39:46,693 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParametersInTransaction(TaskPersistenceManager.java:310)

      17:39:46,695 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParametersInTransaction(TaskPersistenceManager.java:317)

      17:39:46,703 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.persistence.TaskPersistenceManager.queryTasksWithUserIdStatusAndLanguage(TaskPersistenceManager.java:263)

      17:39:46,705 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.TaskServiceSession.getTasksOwned(TaskServiceSession.java:764)

      17:39:46,707 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:309)

      17:39:46,714 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:43)

      17:39:46,716 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:104)

      17:39:46,724 ERROR [stderr] (Thread-70)     at java.lang.Thread.run(Thread.java:724)

      17:39:46,734 ERROR [stderr] (Thread-70) Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Duplicate entry 'admin' for key 1

      17:39:46,736 ERROR [stderr] (Thread-70)     at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)

      17:39:46,747 ERROR [stderr] (Thread-70)     at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)

      17:39:46,749 ERROR [stderr] (Thread-70)     at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261)

      17:39:46,755 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParameters(TaskPersistenceManager.java:352)

      17:39:46,765 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.persistence.TaskPersistenceManager.queryWithParametersInTransaction(TaskPersistenceManager.java:295)

      17:39:46,772 ERROR [stderr] (Thread-70)     ... 7 more

      17:39:46,774 ERROR [stderr] (Thread-70) Caused by: org.hibernate.exception.ConstraintViolationException: Duplicate entry 'admin' for key 1

      17:39:46,776 ERROR [stderr] (Thread-70)     at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:74)

      17:39:46,791 ERROR [stderr] (Thread-70)     at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)

      17:39:46,794 ERROR [stderr] (Thread-70)     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)

      17:39:46,805 ERROR [stderr] (Thread-70)     at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)

      17:39:46,815 ERROR [stderr] (Thread-70)     at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)

      17:39:46,821 ERROR [stderr] (Thread-70)     at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)

      17:39:46,823 ERROR [stderr] (Thread-70)     at com.sun.proxy.$Proxy81.executeUpdate(Unknown Source)

      17:39:46,836 ERROR [stderr] (Thread-70)     at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:56)

      17:39:46,838 ERROR [stderr] (Thread-70)     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2849)

      17:39:46,843 ERROR [stderr] (Thread-70)     at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3290)

      17:39:46,850 ERROR [stderr] (Thread-70)     at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:80)

      17:39:46,852 ERROR [stderr] (Thread-70)     at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)

      17:39:46,859 ERROR [stderr] (Thread-70)     at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)

      17:39:46,861 ERROR [stderr] (Thread-70)     at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)

      17:39:46,862 ERROR [stderr] (Thread-70)     at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)

      17:39:46,871 ERROR [stderr] (Thread-70)     at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:59)

      17:39:46,873 ERROR [stderr] (Thread-70)     at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1053)

      17:39:46,875 ERROR [stderr] (Thread-70)     at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1108)

      17:39:46,877 ERROR [stderr] (Thread-70)     at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)

      17:39:46,884 ERROR [stderr] (Thread-70)     at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:252)

      17:39:46,885 ERROR [stderr] (Thread-70)     ... 9 more

      17:39:46,887 ERROR [stderr] (Thread-70) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'admin' for key 1

      17:39:46,895 ERROR [stderr] (Thread-70)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      17:39:46,896 ERROR [stderr] (Thread-70)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

      17:39:46,898 ERROR [stderr] (Thread-70)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      17:39:46,914 ERROR [stderr] (Thread-70)     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

      17:39:46,915 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)

      17:39:46,917 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.Util.getInstance(Util.java:386)

      17:39:46,926 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)

      17:39:46,927 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)

      17:39:46,929 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)

      17:39:46,939 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)

      17:39:46,940 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)

      17:39:46,942 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)

      17:39:46,947 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)

      17:39:46,954 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)

      17:39:46,964 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345)

      17:39:46,966 ERROR [stderr] (Thread-70)     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330)

      17:39:46,971 ERROR [stderr] (Thread-70)     at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493)

      17:39:46,977 ERROR [stderr] (Thread-70)     at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)

      17:39:46,983 ERROR [stderr] (Thread-70)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      17:39:46,985 ERROR [stderr] (Thread-70)     at java.lang.reflect.Method.invoke(Method.java:606)

      17:39:46,994 ERROR [stderr] (Thread-70)     at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)

      17:39:46,996 ERROR [stderr] (Thread-70)     ... 24 more

       

      Please anyone can answer?