I am using jdk 1.8, but I have errors with the jruby code
concerning collections and sorting. I had jruby 1.6.3, so I upgraded to
jruby 1.7.19. But now I can’t run the rake db:migrate command. I get
this error:
rake aborted!
load error: fast_xs – java.lang.RuntimeException: callback-style
handles are no longer supported in JRuby
So I have 2 questions:
Which version of jruby should I use with jdk 1.8?
What does the exception “callback-style handles are no longer supported
in JRuby” mean? I’m not sure to what it is referring.
Which version of jruby should I use with jdk 1.8?
I just tried a combination of Rails 4.1.9, JRuby 1.7.19 on a Centos7
Vagrant box with a freshly downloaded Java version “1.8.0_31”.
No problems creating an app and running migrations with the default
SQLite3.
Can you tell us more: OS, Rails version, DB, maybe gist the Gemfile?
I am running on Windows 7, using postgres DB, and the rails gem is
3.1.3. I installed the rails 4.1.9 gem, but when I tried the rake
command again, it said it could not find rails-3.1.3, and said I should
do bundle install, which I did.
This is now my list of gems:
Um, well. That’s a lot of variables
I would try creating a simpler test case that demonstrates the issue,
e.g. rails new defaults and see if that fails in your environment. If
not, add gems to it individually and see if/when the failure appears.