I'm using Spring-data-neo4j 4.2.0.RC1 and I have problems with the new Neo4jTransactionManager class.
I have problems with transaction rollbacks. Exceptions are thrown from Neo4jTransactionManager class that are overriding application exceptions on rollbacks.
I have seen 2 different problems (Neo4jTransactionManager.doRollback() around line 275):
- NullPointerException (tx is null)
- Another exception thrown on tx.rollback() that is overriding application exception
I have patched the method:
- with a if(tx != null)...
- and a catch around tx.rollback() to hide all exceptions
and now my transactions are rollbacking correctly.
I don't know if there are bugs around this class or if I configured my application incorrectly.