My Oracle Support Banner

WebLogic Server:使用XA Datasource发生 - 获取“XAER_NOTA:XID无效”异常 (Doc ID 2357599.1)

Last updated on FEBRUARY 06, 2018

适用于:

Oracle WebLogic Server - 版本 9.0 和更高版本
本文档所含信息适用于所有平台
***Checked for relevance on Dec 5, 2016***

症状

在使用XA数据源的WebLogic Server 9.0及更高版本中,报告了以下异常,导致数据库事务和查询失败:

An error occurred accessing the database. ErrorCode: 0, Message: 'Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_NOTA start() failed on resource 'testdatasource': XAER_NOTA : The XID is not valid

oracle.jdbc.xa.OracleXAException

at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:938)

at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:244)

at weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:51)

at weblogic.jdbc.jta.DataSource.start(DataSource.java:710)

at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1182)

at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1115)

at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:289)

at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:497)

at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:429)

at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1420)

更改

 

原因

To view full details, 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 a vibrant support community of peers and Oracle experts.