Thanks for finding it and the heads up, we'll fix it.

Cheers

On Sat, Feb 1, 2014 at 11:02 PM,  <[email protected]> wrote:
> Hi,
>     When I run the  CalculateShortestPath example in,
>      https://github.com/neo4j/neo4j/tree/master/community/embedded-examples
>
>
> I get the following exception :
> Exception in thread "main" org.neo4j.graphdb.NotInTransactionException
>     at
> org.neo4j.kernel.impl.transaction.AbstractTransactionManager.assertInTransaction(AbstractTransactionManager.java:84)
>     at
> org.neo4j.kernel.impl.coreapi.IndexManagerImpl.assertInTransaction(IndexManagerImpl.java:466)
>     at
> org.neo4j.kernel.impl.coreapi.IndexManagerImpl.forNodes(IndexManagerImpl.java:301)
>     at
> org.neo4j.kernel.impl.coreapi.IndexManagerImpl.forNodes(IndexManagerImpl.java:294)
>     at
> org.neo4j.examples.CalculateShortestPath.main(CalculateShortestPath.java:49)
>
>
> Line 49 :
>
>  indexService = graphDb.index().forNodes( "nodes" );
>
> should be enclosed by a transaction.
>
> The same for lines
>
>   Line 70        Node neo = getOrCreateNode( "Neo" );
>   Line 71            Node agentSmith = getOrCreateNode( "Agent Smith" );
>
>
> Shing
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to