Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate JBoss arjuna TransactionReaper don';t在超时时回滚_Hibernate_Jboss_Transactions_Timeout_Locks - Fatal编程技术网

Hibernate JBoss arjuna TransactionReaper don';t在超时时回滚

Hibernate JBoss arjuna TransactionReaper don';t在超时时回滚,hibernate,jboss,transactions,timeout,locks,Hibernate,Jboss,Transactions,Timeout,Locks,我正在使用一个访问oracle数据库的应用程序。有时,该数据库上的对象(行)被应用程序外部的进程锁定 我遇到的问题是,当事务达到事务超时时,阿诸那协调器尝试回滚事务,但没有成功 堆栈跟踪如下所示 09:15:42,494 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsF actory with a ManagedObjectAdvisor, InterceptorRegistry should be used

我正在使用一个访问oracle数据库的应用程序。有时,该数据库上的对象(行)被应用程序外部的进程锁定

我遇到的问题是,当事务达到事务超时时,阿诸那协调器尝试回滚事务,但没有成功

堆栈跟踪如下所示

09:15:42,494 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsF
actory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the b
ean container
09:16:12,287 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.Transactio
nReaper_18] - TransactionReaper::check timeout for TX -7ffd9392:a9b:507ff0a4:97
in state  RUN
09:16:12,292 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicActio
n_58] - Abort of action id -7ffd9392:a9b:507ff0a4:97 invoked while multiple thre
ads active within it.
09:16:12,294 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAct
ion_2] - CheckedAction::check - atomic action -7ffd9392:a9b:507ff0a4:97 aborting
 with 1 threads active!
09:16:12,789 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.Transactio
nReaper_18] - TransactionReaper::check timeout for TX -7ffd9392:a9b:507ff0a4:97
in state  CANCEL
09:16:13,291 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.Transactio
nReaper_18] - TransactionReaper::check timeout for TX -7ffd9392:a9b:507ff0a4:97
in state  CANCEL_INTERRUPTED
09:16:13,293 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.Transactio
nReaper_6] - TransactionReaper::check worker Thread[Thread-11,5,jboss] not respo
nding to interrupt when cancelling TX -7ffd9392:a9b:507ff0a4:97 -- worker marked
 as zombie and TX scheduled for mark-as-rollback
09:16:13,297 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.Transactio
nReaper_11] - TransactionReaper::check failed to mark TX -7ffd9392:a9b:507ff0a4:
97  as rollback only
我正在使用jboss-5.1.0.GA、Hibernate 3.3.1.GA和Oracle 9.2.08

我已经做了几个测试,当行被锁定时,回滚不起作用。事务超时后经过的时间无关紧要。 如果在事务超时后解锁该行,回滚将在该时刻开始

我在网上做了一些研究,但没有发现完全相同的错误

谢谢


Diego。

在这里,我找到了如何在jboss上启用arjuna日志:

我希望这有助于了解更多正在发生的事情

直到今天,我发现保存事务的workerThread没有在cancel()方法上完成。但以我目前的日志级别,我看不到发生了什么

调试后我将发布更多新闻


注意:jboss 5.1中事务的xml配置是jbossts-properties.xml,而不是jbossjta properties.xml。

在这里,我找到了如何在jboss上启用arjuna日志:

我希望这有助于了解更多正在发生的事情

直到今天,我发现保存事务的workerThread没有在cancel()方法上完成。但以我目前的日志级别,我看不到发生了什么

调试后我将发布更多新闻


注意:jboss 5.1中事务的xml配置是jbossts-properties.xml,而不是jbossjta properties.xml。

最后我找到了答案(在stackoverflow上)。它不能解决我的问题(因为正在发生的是预期的行为),但解释了正在发生的事情


我终于找到了答案(这里是stackoverflow)。它不能解决我的问题(因为正在发生的是预期的行为),但解释了正在发生的事情