[jBPM] - Concurrency problems with JBPM 5.4
by Jon Kranes
Jon Kranes [https://community.jboss.org/people/jkranes] created the discussion
"Concurrency problems with JBPM 5.4"
To view the discussion, visit: https://community.jboss.org/message/828867#828867
--------------------------------------------------------------
I am working on a JBPM 5.4 / jBoss 7.1.1 application and have been unable to get it to run reliably using multiple threads.
The basic approach I am taking is as follows:
* Process instances are triggered by an incoming message (AMQP/ RabbitMQ) received by a message listener. For optimal performance I need to be able to use multiple listener threads. (Ultimately there will be multiple application server host instances as well but first things first).
* I am creating a new StatefulKnowlegeSession for each new ProcessInstance.
* I am using a local HumanTaskService (note that I am able to trigger concurrency problems mentioned below even while using a workflow that has no user tasks in it).
* I am disposing of the session and its associated handlers immediately after starting the process. If I need to respond to an asynch signal (e.g. completion of a human task) I create the session by ID from the database (this is part of the scaling strategy - need to be able to continue the process at a future time on an entirely different machine).
* Mainly using Oracle (11g XE) but have also tested with MySQL and see the exact same issues.
I am using Spring with declarative transactions. I am using JTA transactions through the jBoss platform JTA transaction manager.
Here's what I am experiencing:
* Everything works fine as long as as I run a single thread only (i.e. have only one instance of my message listener class). I can run this way for hours without a single exception being thrown.
* With two or more message listeners, I get exceptions (not necessarily right away, but if I run enough iterations it happens pretty quickly).
* I see a variety of different exceptions each time I run the program. The exceptions vary but all are related to inability to commit, invalid sessions, inability to find a certain piece of data (the session or process instance), deadlocks, concurrent modification exceptions, etc. All the kinds of things you would expect in non threadsafe code.
* Once an exception is thrown on a given thread, it seems that the thread will just keep throwing the 'Entity Manager is Closed' exception. I am guessing there is something happenging here with a ThreadLocal tied to the thread that never gets cleared up once problems occur on that thread. If I run long enough, all threads end up with this problem and the system basically becomes useless and needs a full restart.
So without trying to debug each and every exception one at a time, I'm wondering if there is anything obvious I am doing in my code that would lead to a non threadsafe condition. I have read several threads on issues surrounding the StatefulKnowledgeSession so I have deliberately chosen to NOT share sessions between threads for that reason (and others).
A few main questions also:
* Wrapping the Spring JTA PlatformTransactionManager in the DroolsSpringTransactionManager: i have seen this in several examples but have not seen any good explanation of whether/when it is necessary.
* Use of the DroolsSpringJPAManager: again, have seen this in examples but no real documentation explaining it.
* Should the StatefulKnowledgeSession be created inside a transaction? Must it be the same transaction that it is used in? I know that it has to be disposed outside of the transaction boundaries.
Thanks for any help or suggestions. I'm happy to provide more code as needed; I wanted to keep this limited to what seems relevant rather than zip up an entire complex application and force people to wade through all of it.
-- Jon Kranes
Relevant code:
I have a wrapper class to hold a reference to the StatefulKnowledgeSession and its associated handlers, to make it easier to manage disposal:
public class SessionWrapper {
private static Logger log = Logger.getLogger(SessionWrapper.class);
private StatefulKnowledgeSession session;
private GenericHTWorkItemHandler htHandler;
private JPAWorkingMemoryDbLogger dbLogger;
private LocalTaskService localTaskService;
public void dispose() {
try {
log.info("disposing local task service");
localTaskService.dispose();
}
catch (Exception e) {
log.error(e);
}
try {
// log.info("disposing db logger");
// this does not do anything.
// dbLogger.dispose();
}
catch (Exception e) {
log.error(e);
}
try {
log.info("disposing ht handler");
htHandler.dispose();
}
catch (Exception e) {
log.error(e);
}
try {
log.info("Disposing session ID " + session.getId());
session.dispose();
}
catch (Exception e) {
log.error(e);
}
}
public StatefulKnowledgeSession getSession() {
return session;
}
public void setSession(StatefulKnowledgeSession session) {
this.session = session;
}
public GenericHTWorkItemHandler getHtHandler() {
return htHandler;
}
public void setHtHandler(GenericHTWorkItemHandler htHandler) {
this.htHandler = htHandler;
}
public JPAWorkingMemoryDbLogger getDbLogger() {
return dbLogger;
}
public void setDbLogger(JPAWorkingMemoryDbLogger dbLogger) {
this.dbLogger = dbLogger;
}
public LocalTaskService getLocalTaskService() {
return localTaskService;
}
public void setLocalTaskService(LocalTaskService localTaskService) {
this.localTaskService = localTaskService;
}
}
The SessionWrapper instance is created here
public class KnowledgeSessionFactory {
@Autowired
KnowledgeBase kbase;
@Autowired
org.jbpm.task.service.TaskService taskService;
@Autowired
EntityManagerFactory emf;
@Autowired
EventDrivenTaskHandler handler;
@Autowired
DroolsSpringTransactionManager txManager;
@Autowired
AuditService auditService;
@Autowired
AuditTaskHandler auditHandler;
private static final Logger log = Logger.getLogger(KnowledgeSessionFactory.class);
public SessionWrapper createKnowledgeSession() {
log.info("Creating new StatefulKnowledgeSession");
StatefulKnowledgeSession ksession = null;
try {
ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, getEnvironment() );
}
catch (Exception e) {
log.error("Unable to create sesssion!");
log.error(e);
throw new RuntimeException(e);
}
log.info("Session ID: " + ksession.getId());
return createSessionWrapper(ksession);
}
public SessionWrapper createKnowledgeSession(int sessionId) {
log.info("Loading StatefulKnowledgeSession for ID: " + sessionId);
StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, null, getEnvironment());
return createSessionWrapper(ksession);
}
private SessionWrapper createSessionWrapper(StatefulKnowledgeSession ksession) {
LocalTaskService taskClient = new LocalTaskService(taskService);
GenericHTWorkItemHandler htHandler = new LocalHTWorkItemHandler(taskClient, ksession);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", htHandler);
ksession.getWorkItemManager().registerWorkItemHandler("Task", handler);
ksession.getWorkItemManager().registerWorkItemHandler("Audit", auditHandler);
ksession.addEventListener(new DroolsListener());
// This allows access of the global in script tasks
ksession.setGlobal("auditService", auditService);
JPAWorkingMemoryDbLogger dbLogger = new JPAWorkingMemoryDbLogger(ksession);
SessionWrapper wrapper = new SessionWrapper();
wrapper.setSession(ksession);
wrapper.setHtHandler(htHandler);
wrapper.setDbLogger(dbLogger);
wrapper.setLocalTaskService(taskClient);
return wrapper;
}
private Environment getEnvironment() {
log.info("creating environment");
env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
env.set(EnvironmentName.TRANSACTION_MANAGER, txManager);
PersistenceContextManager persistenceContextManager = new DroolsSpringJpaManager(env);
env.set(EnvironmentName.PERSISTENCE_CONTEXT_MANAGER, persistenceContextManager);
log.info("environment created");
return env;
}
}
Here is the message driven bean that initiates starting new process instances:
public class StartProcessListener implements MessageListener {
private static Logger log = Logger.getLogger(StartProcessListener.class);
@Autowired
EventService service;
@Autowired
KnowledgeSessionFactory factory;
@Autowired
SerializerMessageConverter converter;
public void onMessage(Message message) {
SessionWrapper wrapper = null;
try {
Map<String, Object> map = (Map<String, Object>)converter.fromMessage(message);
Map<String, Object> params = new HashMap<String, Object>();
params.put("returnStatus", "VALID");
params.put("return", map.get("return"));
String processId = (String)map.get("processId");
try {
wrapper = service.createSessionWrapper();
service.startProcess(wrapper, processId, params);
}
catch (Exception e) {
log.error(e);
}
}
catch (Exception e) {
log.error(e);
}
finally {
if (wrapper != null) {
wrapper.dispose();
}
}
}
And finally the service class that uses declarative transactions:
public class EventServiceImpl implements EventService {
private static Logger log = Logger.getLogger(EventServiceImpl.class);
@Autowired
KnowledgeSessionFactory factory;
@Autowired
TaskService taskService;
@Override
@Transactional
public SessionWrapper createSessionWrapper() {
return factory.createKnowledgeSession();
}
@Transactional
@Override
public void startProcess(SessionWrapper wrapper, String processId, Map<String, Object> params) {
// SessionWrapper wrapper = factory.createKnowledgeSession();
StatefulKnowledgeSession ksession = wrapper.getSession();
// initializes the human task handler for the session
// org.jbpm.task.TaskService lts = LocalHumanTaskService.getTaskService(ksession);
// this allows us to insert the processInstance into the session before starting it.
ProcessInstance processInstance = ksession.createProcessInstance(processId, params);
// for drools
ksession.insert(processInstance);
log.info("Starting process instance");
ksession.startProcessInstance(processInstance.getId());
//return wrapper;
}
@Transactional
@Override
public SessionWrapper completeWorkItem(int sessionId, long workItemId, Map<String, Object> results) {
SessionWrapper wrapper = factory.createKnowledgeSession(sessionId);
StatefulKnowledgeSession ksession = wrapper.getSession();
completeWorkItem(ksession, workItemId, results);
return wrapper;
}
@Override
@Transactional
public SessionWrapper completeTask(int sessionId, Long taskId, Map<String, Object> results) {
log.info("Completing task: " + taskId);
for (String key : results.keySet()) {
log.info(key + "=" + results.get(key));
}
// LocalTaskService lts = new LocalTaskService(taskService);
// StatefulKnowledgeSession ksession = factory.getKnowledgeSession(sessionId);
SessionWrapper wrapper = factory.createKnowledgeSession(sessionId);
StatefulKnowledgeSession ksession = wrapper.getSession();
// org.jbpm.task.TaskService lts = LocalHumanTaskService.getTaskService(ksession);
org.jbpm.task.TaskService lts = wrapper.getLocalTaskService();
Task task = lts.getTask(taskId);
// int sessionId = task.getTaskData().getProcessSessionId();
// completeWorkItem(sessionId, task.getTaskData().getWorkItemId(), results);
try {
lts.start(taskId, "USER");
}
catch (Exception e) {
log.error(e);
}
try {
ContentData contentData = ContentMarshallerHelper.marshal(results, null);
lts.complete(taskId, "USER", contentData);
lts.disconnect(); // does this do anything useful?
}
catch (Exception e) {
log.error(e);
}
// for drools
ProcessInstance pi = ksession.getProcessInstance(task.getTaskData().getProcessInstanceId());
ksession.insert(pi);
completeWorkItem(ksession, task.getTaskData().getWorkItemId(), results);
return wrapper;
}
private void completeWorkItem(StatefulKnowledgeSession ksession, Long workItemId, Map<String, Object> results) {
log.info("Completing work item: " + workItemId);
ksession.getWorkItemManager().completeWorkItem(workItemId, results);
}
}
Spring configuration:
<?xml version="1.0" encoding="UTF-8"?>
<beans ... >
<context:annotation-config />
<!-- Loads all classes annotated with @Component or @Service -->
<context:component-scan base-package="org.mitre.irs.eda.bpm"/>
<context:property-placeholder location="classpath:eda.properties" order="2"/>
<jee:jndi-lookup id="emf" jndi-name="persistence/emf"/>
<!-- Spring JtaTransactionManager -->
<bean id="jtaTxManager" class="org.springframework.transaction.jta.JtaTransactionManager" />
<bean id="txManager" class="org.drools.container.spring.beans.persistence.DroolsSpringTransactionManager"
c:ptm-ref="jtaTxManager" />
<tx:annotation-driven transaction-manager="jtaTxManager" />
<jpa:repositories base-package="org.mitre.irs.eda.common.repo" entity-manager-factory-ref="emf" transaction-manager-ref="jtaTxManager" />
<bean id="jpaDialect" class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" />
<!-- JBPM -->
<bean id="sel" class="org.drools.SystemEventListenerFactory"
factory-method="getSystemEventListener" />
<bean id="jbpmTaskService" class="org.jbpm.task.service.TaskService"
c:emf-ref="emf" c:systemEventListener-ref="sel" />
<bean id="kbaseFactory" class="org.mitre.irs.eda.bpm.jbpm.KnowledgeBaseFactory" />
<bean id="kbase" factory-bean="kbaseFactory" factory-method="newKnowledgeBase" />
<!-- Rabbit MQ -->
<rabbit:connection-factory id="connectionFactory" channel-cache-size="20"
username="${amqp.username}" password="${amqp.password}" host="${amqp.host}" port="${amqp.port}" />
<rabbit:admin id="admin" connection-factory="connectionFactory" />
<bean id="serializerConverter" class="org.springframework.amqp.support.converter.SerializerMessageConverter" />
<rabbit:template id="amqpTemplate" connection-factory="connectionFactory" message-converter="serializerConverter"/>
<rabbit:queue id="start" name="process.start" />
<rabbit:queue id="task.start" name="process.task.start" />
<rabbit:queue id="task.complete" name="process.task.complete" />
<bean id="startListener" class="org.mitre.irs.eda.bpm.listener.StartProcessListener" />
<bean id="taskCompleteListener" class="org.mitre.irs.eda.bpm.listener.TaskCompleteListener" />
<rabbit:listener-container connection-factory="connectionFactory" concurrency="4">
<rabbit:listener queues="start" ref="startListener" />
<rabbit:listener queues="task.complete" ref="taskCompleteListener" />
</rabbit:listener-container>
</beans>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/828867#828867]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - jBPM clone, compile and deploy
by George de la Torre
George de la Torre [https://community.jboss.org/people/nutower] created the discussion
"jBPM clone, compile and deploy"
To view the discussion, visit: https://community.jboss.org/message/829620#829620
--------------------------------------------------------------
Dev Envorinment: Mac OSX 10.8.4, NetBeans 7.3 (native maven support), GitHub Dancing Diffs (156), git version 1.8.3.1, JBoss 7.1.1.1 final...
Did a git clone from NetBeans, project "Drools and jBPM build bootstrap", performed a build, consequently, all dependencies downloaded, then build sucess.
Then opened "UberFire Showcase WebApp" maven project, tried to deploy to JBoss 7.1.1.1 that launches from NetBeans, run failed with this error:
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.resources.ErraiService (missing) dependents: [service jboss.naming.context.java.module.uberfire-webapp.uberfire-webapp.env.ErraiService]
19:12:22,711 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.uberfire-webapp.uberfire-webapp.env.ErraiServicejboss.naming.context.java.jboss.resources.ErraiServiceMissing[jboss.naming.context.java.module.uberfire-webapp.uberfire-webapp.env.ErraiServicejboss.naming.context.java.jboss.resources.ErraiService]"]}}}
Not familiar with JBoss AS, so is there some more that has to be configured here?
Understand Eclipse is magnificant and all should be using it, but I will not, so please can us "others" participate with jBPM?
Thnak you!!!!
:)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/829620#829620]
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