My Oracle Support Banner

java.sql.SQLException: Transaction was deadlocked (Doc ID 373137.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle(R) BPEL Process Manager - Version: to - Release: AS10gR2 to
Information in this document applies to any platform.
***Checked for relevance on 15-Sep-2010**


When running multiple processes in parallel the following exception occurs:


Cannot select delivery subscription.
The process domain was unable to select the delivery data for conversation "bpel://localhost/ahayes/SyncMultipleCallback~1.0/33462-BpInv0-BpSeq0.3-5" from the datastore. The exception reported is: Transaction (Process ID 62) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
sql statement: SELECT conv_id, conv_type, cikey, domain_ref, process_id, revision_tag, process_guid, operation_name, subscriber_id, service_name, subscription_date, state, properties FROM dlv_subscription WHERE conv_id = ? AND state = 0 AND domain_ref = ?

at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.getSubscriptionsByConvId(
at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.getSubscriptionsByConvId(
at com.collaxa.cube.engine.ext.wmp.BPELOnMessageWMP.perform(
at com.collaxa.cube.engine.CubeEngine.performActivity(
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.handleWorkItem(
at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.handleWorkItem(
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handle(
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(
at com.evermind.server.ejb.MessageDrivenHome.onMessage(
at com.evermind.util.ReleasableResourcePooledExecutor$
Caused by: java.sql.SQLException: Transaction (Process ID 62) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(
at net.sourceforge.jtds.jdbc.TdsCore.isDataInResultSet(
at net.sourceforge.jtds.jdbc.JtdsResultSet.<init>(
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(
at com.evermind.sql.FilterPreparedStatement.executeQuery(
at com.evermind.sql.FilterPreparedStatement.executeQuery(
at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.getSubscriptionsByConvId(
... 18 more


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

Platforms: 1-914CU;

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.