Skip to Main Content

Integration

Announcement

Testing banner

Error Cannot call Connection.commit in distributed transaction when invoke a DBAdapter from BPM

user13063507Dec 18 2018 — edited Dec 18 2018

This error occured when trying to call a stored procedure from BPM Service Activity using DBAdapter

The Stored procedure doesn't have commit.

Oracle BPM 12.2.1.3 / Weblogic 12.2.1.3

Data Base 11g

Problem Description: Error Connection to the database when the BPM process is triggered, this process has an automatic activity that queries information in database tables.

The error that comes out is the following:

<bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occurred when binding was invoked.

Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'LoadEstadosDB' failed due to: DBWriteInteractionSpec Execute Failed Exception.

unknown failed. Descriptor name: [unknown].

Caused by java.sql.SQLException: Cannot call Connection.commit in distributed transaction.  Transaction Manager will commit the resource manager when the distributed transaction is committed..

Please see the logs for the full DBAdapter logging output prior to this exception.  This exception is considered retriable, likely due to a communication failure.  To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml).  To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff.  All properties are integers.

".

The invoked JCA adapter raised a resource exception.

Please examine the above error message carefully to determine a resolution.

</summary></part><part name="code"><code>0</code></part><part name="detail"><detail>Cannot call Connection.commit in distributed transaction.  Transaction Manager will commit the resource manager when the distributed transaction is committed.</detail></part></remoteFault></bpelFault>

Comments
Post Details
Added on Dec 18 2018
2 comments
2,317 views