weblogic报错

博客分析了Weblogic报错'Cannot obtain XAConnection'的原因,指出问题在于数据库连接数不足。解决方案是在Weblogic控制台中,通过调整数据源的连接池最大容量来增大连接数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

记录一个报错解决


报错信息

<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 'DemoAdapter' failed due to: DBReadInteractionSpec Execute Failed Exception.
Query name: [DemoAdapter], Descriptor name: [Adapter.demo].
Caused by java.sql.SQLException: Cannot obtain XAConnection.
See root exception for the specific 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 obtain XAConnection</detail></part></remoteFault></bpelFault>

Caused by java.sql.SQLException: Cannot obtain XAConnection.

分析:数据库连接数不够用。

解决办法:进入weblogic控制台中–>数据源—>选择对应数据源–>连接池—>最大容量 将最大容量调大一点
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值