Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting javax.transaction.RollbackException: Prepare: NO vote with Atomikos JTA

I am using Hibernate and Atomikos for JTA for one of my proof of concepts. I am getting a JTA transaction unexpectedly rollback exception, maybe due to a timeout. The exception is:

javax.transaction.RollbackException: Prepare: NO vote

like image 230
user3926825 Avatar asked Aug 10 '14 11:08

user3926825


1 Answers

This error occurs if a transaction is requested to commit but has already been rolled back due to a timeout. So your assumption is totally right. The solution is to increase the transaction timeout.

like image 84
jeha Avatar answered Oct 14 '22 12:10

jeha