2

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.

tigrou83
  • 157
  • 10
  • This is a new feature and a significant change. I'll check with the author regarding expected usage. In the meantime, let's treat it as a bug. Are you able to forward a sample with failing test case, or other reproduction of the problem to jasper@graphaware.com? – Jasper Blues Sep 26 '16 at 06:59
  • 1
    Could you pls also verify that same behavior is exhibited with 4.2.0-SNAPSHOT? – Jasper Blues Sep 26 '16 at 07:13
  • Thanks for your help. I will try to isolate the problem in a test case. Could you provide me a maven repository where I can find latest 4.2.0-SNAPSHOT ? I'm using http://repo.spring.io/libs-snapshot but I can only see old 4.2.0 snapshots. – tigrou83 Sep 27 '16 at 05:20
  • https://repo.spring.io/libs-snapshot is the correct one – Jasper Blues Sep 27 '16 at 05:46
  • But I don't understand, why is the latest snapshot from April 16, which is 3 months older than 4.2.0.M1 ? – tigrou83 Sep 27 '16 at 05:49
  • I took a look - I see recent builds in there. – Jasper Blues Sep 27 '16 at 07:38
  • Oh sorry, my bad.. I was looking at folder's creation date. I will try with the latest snapshots. Thanks – tigrou83 Sep 27 '16 at 18:12
  • Issue tracked here: https://jira.spring.io/browse/DATAGRAPH-952 – tigrou83 Jan 17 '17 at 07:54

0 Answers0