I’ve been trying to get our Rails application working with JRuby. I
just upgraded to JRuby 1.3.0, and came across an error with memcache.
I would love to debug this, but I’m not even sure where to start. Any
thoughts would be appreciated.
Here’s some output from loading the console with both JRuby 1.2.0 and
1.3.0…
$ java -version
java version “1.6.0_07”
Java™ SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot™ 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
$ jruby --version
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-06-06 rev 6586)
[x86_64-java]
$ jruby script/console
Loading development environment (Rails 2.3.2)
<jruby_home>/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:84
warning: given block not used
Rails.cache.write(‘foo’, 1)
=> trueRails.cache.read(‘foo’)
=> 1
$ jruby --version
jruby 1.3.0 (ruby 1.8.6p287) (2009-06-06 5dc2e22) (Java HotSpot™
64-Bit Server VM 1.6.0_07) [x86_64-java]
$ jruby script/console
Loading development environment (Rails 2.3.2)
<rails_app>/vendor/rails/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb:857:in
initialize': execution expired (Timeout::ExitException) from <rails_app>/vendor/rails/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb:805:in
socket’
from
<rails_app>/vendor/rails/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb:788:in
alive?' from <rails_app>/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb:19:in
initialize’
from
<rails_app>/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb:19:in
each' from <rails_app>/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb:19:in
any?’
from
<rails_app>/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb:19:in
initialize' from <rails_app>/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:72:in
build’
from
<rails_app>/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in
each' ... 13 levels... from <jruby_home>/lib/ruby/1.8/irb/init.rb:21:in
setup’
from <jruby_home>/lib/ruby/1.8/irb.rb:54:in `start’
from <jruby_home>/bin/jirb:19
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email