Sorry if I cross posted this on SO too, but I just see this dedicated email list to Neo4J.rb, so, maybe i makes sense to ask my question here too:
I would like to experiment with some data from within my Ruby console, and eventually using Cypher from a Ruby console too. As I like the Neo4J server I got on a USB stick, I tried to start my Neo4J server with:
/Users/mulder/neo4j-community-1.9.RC1
→ bin/neo4j start
WARNING! You are using an unsupported version of the Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
Starting Neo4j Server...WARNING: not changing user
process [14423]... waiting for server to be ready.... OK.
That looks successful. But now, after I installed the Neo4J Ruby gem and load it into the shell, I get stuck. I wanted to do a simple test of my connection with:
irb(main):005:0> n = Neo4j::Node.new
I, [2013-04-29T16:30:34.919000 #15019] INFO -- : Starting local Neo4j using db /Users/mulder/neo4j-community-1.9.RC1/db using Java::OrgNeo4jKernel::EmbeddedGraphDatabase
NativeException: org.neo4j.graphdb.NotInTransactionException: null
from org/neo4j/kernel/impl/persistence/PersistenceManager.java:252:in `getResource'
from org/neo4j/kernel/impl/persistence/PersistenceManager.java:155:in `nodeCreate'
from org/neo4j/kernel/impl/core/NodeManager.java:195:in `createNode'
from org/neo4j/kernel/InternalAbstractGraphDatabase.java:850:in `createNode'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/neo4j-core-2.2.3-java/lib/neo4j-core/node/class_methods.rb:32:in `new'
from (irb):5:in `evaluate'
from org/jruby/RubyKernel.java:1083:in `eval'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/1.8/irb.rb:158:in `eval_input'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/1.8/irb.rb:271:in `signal_status'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/1.8/irb.rb:155:in `eval_input'
from org/jruby/RubyKernel.java:1410:in `loop'
from org/jruby/RubyKernel.java:1183:in `catch'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/1.8/irb.rb:154:in `eval_input'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/1.8/irb.rb:71:in `start'
from org/jruby/RubyKernel.java:1183:in `catch'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/lib/ruby/1.8/irb.rb:70:in `start'
from /Users/mulder/.rbenv/versions/jruby-1.6.7/bin/irb:13:in `(root)'irb(main)