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


at oracle.jdbc.xa.OracleXAResource.checkError(

at oracle.jdbc.xa.client.OracleXAResource.start(

at weblogic.jdbc.wrapper.VendorXAResource.start(

at weblogic.jdbc.jta.DataSource.start(

at weblogic.transaction.internal.XAServerResourceInfo.start(

at weblogic.transaction.internal.XAServerResourceInfo.xaStart(

at weblogic.transaction.internal.XAServerResourceInfo.enlist(

at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(

at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(

at weblogic.jdbc.jta.DataSource.enlist(




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.