Andreas, any suggestion of making this more explicit? Should the stack traces be printed out or are there otherwise hints to be given?
Cheers, /peter neubauer COO and Sales, Neo Technology GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Mon, Sep 20, 2010 at 7:40 AM, Andreas Ronge <andreas.ro...@jayway.se> wrote: > Sorry, found the bug in my code. > It's rather difficult to debug when using the neo4j event framework > since the stack trace doesn't give you much clues of what went wrong. > It may be something that has occurred earlier that causes the problem, > like calling methods on a deleted node. > > Cheers > Andreas > > On Mon, Sep 20, 2010 at 4:12 PM, Peter Neubauer > <peter.neuba...@neotechnology.com> wrote: >> Andreas, >> that is strange. In the beforeCommit, there should be a Transaction >> open already. Also, are you deleting the Node in the same thread or a >> new one? >> >> Mattias, any comment on that? >> >> Cheers, >> >> /peter neubauer >> >> COO and Sales, Neo Technology >> >> GTalk: neubauer.peter >> Skype peter.neubauer >> Phone +46 704 106975 >> LinkedIn http://www.linkedin.com/in/neubauer >> Twitter http://twitter.com/peterneubauer >> >> http://www.neo4j.org - Your high performance graph database. >> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. >> >> >> >> On Fri, Sep 17, 2010 at 6:05 AM, Andreas Ronge <andreas.ro...@jayway.se> >> wrote: >>> Hi >>> >>> Is it not possible to call org.neo4j.graphdb.index.Index#remove when >>> it's triggered from a beforeCommit event ? >>> I get the following exception: >>> >>> (The TxData object contains the removed property >>> (removedNodeProperties) that I want lucene to remove from it's index >>> with the remove method.) >>> >>> >>> class org.neo4j.graphdb.NotInTransactionException'; Message: null; >>> StackTrace: org.neo4j.graphdb.NotInTransactionException >>> at >>> org.neo4j.index.impl.lucene.ConnectionBroker.acquireResourceConnection(ConnectionBroker.java:32) >>> at >>> org.neo4j.index.impl.lucene.LuceneIndex.getConnection(LuceneIndex.java:55) >>> at >>> org.neo4j.index.impl.lucene.LuceneIndex.remove(LuceneIndex.java:108) >>> >>> at >>> org.neo4j.kernel.impl.core.TransactionEventsSyncHook.beforeCompletion(TransactionEventsSyncHook.java:76) >>> at >>> org.neo4j.kernel.impl.transaction.TransactionImpl.doBeforeCompletion(TransactionImpl.java:342) >>> at >>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:569) >>> at >>> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:104) >>> at >>> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:513) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:508) >>> >>> I have probably done something stupid. >>> >>> Cheers >>> _______________________________________________ >>> Neo4j mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user