javax.transaction.RollbackException: один или несколько ресурсов отказались принять - Atomikos + Springboot - PullRequest
0 голосов
/ 23 марта 2020

Миграция приложения Spring, развернутого на Websphere, в Springboot. Этот использует DB2 и IBM MQ (XA). Я добавил все основные конфигурации atomikos, но столкнулся с проблемой:

Caused by: javax.transaction.RollbackException: One or more resources refused to commit (possibly because of a timeout in the resource - see the log for details). This transaction has been rolled back instead.
    at com.atomikos.icatch.jta.TransactionImp.rethrowAsJtaRollbackException(TransactionImp.java:48)
    at com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:188)
    at com.atomikos.icatch.jta.TransactionManagerImp.commit(TransactionManagerImp.java:414)
    at com.atomikos.icatch.jta.UserTransactionImp.commit(UserTransactionImp.java:86)
    at org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1034)
    ... 90 common frames omitted
...