Re: [Neo4j] help: got NotInTransactionException

2010-06-21 Thread Anders Nawroth
Hi! If you want to be able to do read operations without the need for a transactional context you could try using the latest development snapshot. Development snapshot download links has been added here: http://neo4j.org/ /anders Cheers, Tobias On Mon, Jun 21, 2010 at 2:12 AM, go

[Neo4j] help: got NotInTransactionException

2010-06-20 Thread go canal
Hello, Newbie question: I got an exception for this code: public final String getNotes () { if (underlyingNode != null) return (String) underlyingNode.getProperty(Constants.PERSON_NOTES, null); else return null; } I would expect this code can handle the retrieving of the Notes property

Re: [Neo4j] help: got NotInTransactionException

2010-06-20 Thread Tobias Ivarsson
Hi, All operations in Neo4j need to be performed within the context of a transaction. This includes both read and write operations, and getting a property value is a read operation. You thus need to wrap the code that gets the property value in graphDb.beginTx() try { ... tx.success(); } finally