Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `finish' for nil:NilClass #1

Open
tomaadland opened this issue Jul 25, 2013 · 3 comments
Open

undefined method `finish' for nil:NilClass #1

tomaadland opened this issue Jul 25, 2013 · 3 comments

Comments

@tomaadland
Copy link

This is a great example on using neo4j.rb in HA mode.
Unfortunately after following the instructions I get this running the seed task.

undefined method `finish' for nil:NilClass
/Users/tomhaa/.rvm/gems/jruby-1.7.4@gritter/gems/neo4j-2.3.0-java/lib/neo4j/rails/transaction.rb:58:in `finish'
/Users/tomhaa/.rvm/gems/jruby-1.7.4@gritter/gems/neo4j-2.3.0-java/lib/neo4j/rails/transaction.rb:86:in `run'
/Users/tomhaa/.rvm/gems/jruby-1.7.4@gritter/gems/neo4j-2.3.0-java/lib/neo4j/rails/tx_methods.rb:9:in `save'
/Users/tomhaa/.rvm/gems/jruby-1.7.4@gritter/gems/neo4j-2.3.0-java/lib/neo4j/rails/validations.rb:19:in `save'
/Users/tomhaa/Projects/web/gritter/db/seeds.rb:28:in `full_user'
/Users/tomhaa/Projects/web/gritter/db/seeds.rb:52:in `seed!'
org/jruby/RubyFixnum.java:285:in `times'
org/jruby/RubyEnumerator.java:270:in `each'
org/jruby/RubyEnumerable.java:713:in `map'
/Users/tomhaa/Projects/web/gritter/db/seeds.rb:51:in `seed!'
/Users/tomhaa/Projects/web/gritter/lib/tasks/db.rake:6:in `(root)'
org/jruby/RubyProc.java:255:in `call'
org/jruby/RubyArray.java:1617:in `each'
org/jruby/RubyArray.java:1617:in `each'
org/jruby/RubyKernel.java:1073:in `load'
org/jruby/RubyKernel.java:1093:in `eval'

Any ideas what can be wrong ?

@saterus
Copy link
Owner

saterus commented Jul 30, 2013

@tomaadland Hmm, interesting. It probably isn't helpful to know that following my own instructions in a fresh checkout doesn't work. I don't even get that far. It can't even find the db:seed rake task. For my problem, I would be it is the shady way I'm using the neography gem to pull in neo4j and mess with config files.

Are you still stuck on this? The seeds aren't strictly necessary to run the project and fool around with it. In either case, it looks like the seeds are failing when creating users.

@tomaadland
Copy link
Author

@saterus No I haven't messed around more with this actually. Been spending time on solving my perm gen problem which of course has caused a few other things to surface. Still learning neo4jrb :)

@dunmashiku
Copy link

@saterus Thank you! I was able to start my webrick server at 0.0.0.0:3000. Somehow, I am stuck on loading. I am not sure I understand the code enough to debug the issue. Any help greatly appreciated.
Here is my output:


Config HA cluster, ha.server_id: 1, db: /Users/myusername/Sites/gritter/db/ha_neo_1
=> Booting WEBrick
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2014-02-11 00:28:24] INFO WEBrick 1.3.1
[2014-02-11 00:28:24] INFO ruby 1.9.3 (2013-05-16) [java]
[2014-02-11 00:28:24] INFO WEBrick::HTTPServer#start: pid=4424 port=3000
starting Neo4j in HA mode, machine id: 1 at localhost:6001 db /Users/myusername/Sites/gritter/db/ha_neo_1


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants