Unexpected transaction errors and rollback when Database Adapter is driving multiple emulated data-sources to make updates to the same schema (Doc ID 1326689.1)

Last updated on JUNE 08, 2011

Applies to:

Oracle SOA Platform - Version: 10.1.3.0.0 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.

Symptoms

You have an installation of Oracle Application Server 10g Release 3 (101.3.x) where you are running BPEL processes that leverage the Database Adapter to read and update data located in a single schema. For this scenario to apply, you have created multiple Emulated XA DataSource definitions, each with a different data-source name and JNDI location, but all accessing the same database location and schema.

At run-time, you intermittently encounter errors similar to the following in the OPMN log file (located under $ORACLE_HOME/opmn/logs) for the OC4J container where the BPEL Process Manager is running:

An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessage";
the exception is: Branch [oracle.oc4j.sql.xa.EmulatedXAResource@30c030c0, Xid( Global Id ad.dd.cd.62.00.00.00.00.c0.f5.4f.bd.2f.01.00.00.dd.00.64.00.00.00.00.00,
Format Id 1330790740, Branch Id f7.a8.a4.f0.00.00.00.00.00.00.00.00.00.00.00.01), oracle.oc4j.sql.xa.EmulatedXAResource@30c030c0, state={PREPARED},
exception error code=] in transaction Global Transaction Xid( Global Id ad.dd.cd.62.00.00.00.00.c0.f5.4f.bd.2f.01.00.00.dd.00.64.00.00.00.00.00,
Format Id 1330790740), type=orabpel, state=COMMITTING, time in completion or recovering=1)
{
[oracle.oc4j.sql.xa.EmulatedXAResource@30c030c0, Xid( Global Id ad.dd.cd.62.00.00.00.00.c0.f5.4f.bd.2f.01.00.00.dd.00.64.00.00.00.00.00,
Format Id 1330790740, Branch Id f7.a8.a4.f0.00.00.00.00.00.00.00.00.00.00.00.01), oracle.oc4j.sql.xa.EmulatedXAResource@30c030c0, state={PREPARED},
exception error code=],
[oracle.oc4j.sql.xa.EmulatedXAResource@12a812a8, Xid( Global Id ad.dd.cd.62.00.00.00.00.c0.f5.4f.bd.2f.01.00.00.dd.00.64.00.00.00.00.00,
Format Id 1330790740, Branch Id f7.a8.a4.f0.00.00.00.00.00.00.00.00.00.00.00.00), oracle.oc4j.sql.xa.EmulatedXAResource@12a812a8, state={PREPARED},
exception error code=]
} returned RB* during commit.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms