On 12 September 2011 12:48, Christian MICHON [email protected] wrote:
Java::JavaLang::NullPointerException:
from
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:179)
from script.rails.file(script/rails:6)
from java.lang.Thread.run(Thread.java:679)irb(main):006:0>
migrations again in jruby 1.9 mode ?
Yes I’ve done all in 1.9 mode.
May be a problem in postgresql driver?
ArgumentError: undefined class/module YAML::Syck::DefaultKey
irb(main):005:0> Shop.count
from
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190)
from
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
from
org.jruby.util.ShellLauncher$ScriptThreadProcess.run(ShellLauncher.java:140)
Have you done this on a fresh/empty database ? Did you run the
I’ve no more clue. But I would be interested to understand how you
managed to pass migrations in jruby 1.9 mode…
I would suggest before using the console to use a database gui browser
and check indeed that the tables and keys were properly created…
The simple solution to the blog post is to gem update --system on your
rubygems, which might fix your bundler errors. Not sure though, but
it’s
worth a shot I guess.