Sukumaran Raghavan [
https://community.jboss.org/people/suku_1983] created the discussion
"ORA 00060 - Deadlock while using Oracle + JBPM 5.2"
To view the discussion, visit:
https://community.jboss.org/message/729707#729707
--------------------------------------------------------------
Hi,
I am using JBPM 5.2 for an application. I am facing issues when multiple threads complete
work items parallely. These lead the process to completion and while completing,
processInstanceInfo and a few other tables have DML statements executed. I use Oracle DB
for the backend !
Exception trace below.
Hoping someone can help. Do let me know what options i have. Things i gave tried
- Increased INITRANS for the tables to 25 (default is 1) - This usually helps in
ORA-0060 errors. However not this time :(
====================
16:17:54,389 INFO [stdout] (EJB default - 3) Hibernate: update SessionInfo set
lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?
16:17:54,396 INFO [stdout] (EJB default - 4) Hibernate: insert into NodeInstanceLog
(log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id)
values (?, ?, ?, ?, ?, ?, ?, ?)
16:17:54,462 INFO [stdout] (EJB default - 3) Hibernate: insert into NodeInstanceLog
(log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id)
values (?, ?, ?, ?, ?, ?, ?, ?)
16:17:54,469 INFO [stdout] (EJB default - 4) Hibernate: insert into NodeInstanceLog
(log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id)
values (?, ?, ?, ?, ?, ?, ?, ?)
16:17:54,535 INFO [stdout] (EJB default - 3) Hibernate: insert into NodeInstanceLog
(log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id)
values (?, ?, ?, ?, ?, ?, ?, ?)
16:17:54,541 INFO [stdout] (EJB default - 4) Hibernate: insert into NodeInstanceLog
(log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id)
values (?, ?, ?, ?, ?, ?, ?, ?)
16:17:54,612 INFO [stdout] (EJB default - 3) Hibernate: insert into NodeInstanceLog
(log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id)
values (?, ?, ?, ?, ?, ?, ?, ?)
16:17:54,620 INFO [stdout] (EJB default - 4) Hibernate: update ProcessInstanceLog set
end_date=?, processId=?, processInstanceId=?, start_date=? where id=?
16:17:54,684 INFO [stdout] (EJB default - 3) Hibernate: update ProcessInstanceLog set
end_date=?, processId=?, processInstanceId=?, start_date=? where id=?
16:17:54,693 INFO [stdout] (EJB default - 4) Hibernate: delete from EventTypes where
InstanceId=?
16:17:54,755 INFO [stdout] (EJB default - 3) Hibernate: delete from EventTypes where
InstanceId=?
16:17:54,765 INFO [stdout] (EJB default - 4) Hibernate: delete from ProcessInstanceInfo
where InstanceId=? and OPTLOCK=?
16:17:54,827 INFO [stdout] (EJB default - 3) Hibernate: delete from ProcessInstanceInfo
where InstanceId=? and OPTLOCK=?
16:17:58,429 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EJB default - 4)
SQL Error: 60, SQLState: 61000
16:17:58,429 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EJB default - 4)
ORA-00060: deadlock detected while waiting for resource
16:17:58,431 WARN [com.arjuna.ats.arjuna] (EJB default - 4) ARJUNA012125:
TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple<
0:ffff11d11224:-5d726fdb:4f861b4f:1fd,
org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@7c07a0c
>: javax.persistence.PersistenceException:
org.hibernate.exception.LockAcquisitionException: ORA-00060: deadlock detected while
waiting for resource
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.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295)
[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481)
[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at
org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53)
[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)
at
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:232)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
[jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
[jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
[jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at
org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
[jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at
org.jboss.as.ejb3.component.interceptors.AsyncVoidInterceptorFactory$Task.run(AsyncVoidInterceptorFactory.java:75)
[jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[classes.jar:1.6.0_26]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[classes.jar:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_26]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.hibernate.exception.LockAcquisitionException: ORA-00060: deadlock detected
while waiting for resource
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/729707#729707]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]