-1

在 GUI 中打开任何消息时,我在云环境中面临以下问题。但在我的本地环境中同样适用。

数据库:Azure SQL 服务器 应用服务器:Wildfly 11

错误:“ STATUS_MARKED_ROLLBACK - 无法准备语句

[com.arjuna.ats.arjuna] (default task-16) ARJUNA012140: **Adding multiple last resources is disallowed. Trying to add LastResourceRecord**(XAOnePhaseResource(LocalXAResourceImpl@4ef4285a[connectionListener=5737baa
6 connectionManager=71d95908 warned=false currentXid=< formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffff0af40057:-6bf97584:610804c2:652, node_name=1, branch_uid=0:ffff0af40057:-6bf97584:610804c2:669, subordinatenodename=nu
ll, eis_name=java:/jdbc/xxx/xxx/xxx/datasourceUncommitted > productName=Microsoft SQL Server productVersion=12.00.2195 jndiName=java:/jdbc/xxx/xxx/xxx/datasourceUncommitted])), but already have LastResourceRecord(XAOnePhaseResour
ce(LocalXAResourceImpl@9b90875[connectionListener=669bdd38 connectionManager=7991953a warned=false currentXid=< formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffff0af40057:-6bf97584:610804c2:652, node_name=1, branch_uid=0:ff
ff0af40057:-6bf97584:610804c2:666, subordinatenodename=null, eis_name=java:/jdbc/xxx/xxx/xxx/datasource > productName=Microsoft SQL Server productVersion=12.00.2195 jndiName=java:/jdbc/xxx/xxx/xxx/datasource]))

请帮我解决这个问题。

4

1 回答 1

0

您需要将 allowMultipleLastResources属性设置true为如下所示:

<bean name="CoreEnvironmentBean" class="com.arjuna.ats.arjuna.common.CoreEnvironmentBean">
...
   <property name="allowMultipleLastResources">true</property>
...
</bean>

其他尝试以下代码:

<system-properties>
<property name = "com.arjuna.ats.arjuna.allowMultipleLastResources" value = "true" />
</system-properties>

参考链接 - https://developer.jboss.org/thread/160950

于 2021-08-11T09:37:56.760 回答