Re: [Neo4j] IllegalStateException after successful commit

2011-02-18 Thread Mattias Persson
On each critical place around the problem areas could you do a: System.out.println( tx.getClass().getSimpleName() ); and if that prints "PlaceboTransaction" then you know you aren't accessing the real/outer transaction, but instead a nested

Re: [Neo4j] IllegalStateException after successful commit

2011-02-17 Thread John Howard
Thanks Mattias & David. Yes, am doing tx.success() and tx.finish() when I commit. I also noticed that once I get IllegalStateException, I cant search for any nodes from the graph index. Here's my code snippet when create,index and commit the nodes & also when delete the nodes: Create nodes: Grap

Re: [Neo4j] IllegalStateException after successful commit

2011-02-16 Thread Mattias Persson
Read more: http://wiki.neo4j.org/content/Transactions#Nested_transactions http://docs.neo4j.org/chunked/milestone/transactions.html 2011/2/17 David Montag > John, > > Are you doing tx.success() and tx.finish() when you commit? If so, then you > likely already have an open transaction for that t

Re: [Neo4j] IllegalStateException after successful commit

2011-02-16 Thread David Montag
John, Are you doing tx.success() and tx.finish() when you commit? If so, then you likely already have an open transaction for that thread. If you start a new transaction while already in an open transaction, you will get a dummy transaction. It will not do anything when you commit it successfully

[Neo4j] IllegalStateException after successful commit

2011-02-16 Thread John Howard
We found this strange behaviour with regard to transactions ( we use neo1.3-SNAPSHOT) Here are the steps in our application: 1. created,indexed and commited 10 nodes successfully 2. created, indexed and commited 40 nodes successfully 3. created, indexed and commited 900 nodes successfully 4. we fo