Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

NoMethodError: private method `open' called for Celluloid::IO::TCPSocket:Class #1

Closed
tisba opened this issue Mar 15, 2013 · 7 comments

Comments

@tisba
Copy link

tisba commented Mar 15, 2013

I'm trying to use celluloid-redis with jruby, but I cannot get a very simple app running:

require "celluloid/redis"
redis = Redis.new(driver: :celluloid)
redis.get "foo"

Running this script using bundle exec ruby sandbox.rb I get:

NoMethodError: private method `open' called for Celluloid::IO::TCPSocket:Class
               connect at /Users/basti/.rvm/gems/jruby-1.7.3/gems/celluloid-redis-0.0.1/lib/redis/connection/celluloid.rb:22
  establish_connection at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:271
               connect at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:69
      ensure_connected at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:290
               process at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:177
               logging at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:256
               process at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:176
                  call at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis/client.rb:84
                   get at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis.rb:737
           synchronize at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis.rb:36
       mon_synchronize at /Users/basti/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/monitor.rb:211
           synchronize at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis.rb:36
                   get at /Users/basti/.rvm/gems/jruby-1.7.3/gems/redis-3.0.3/lib/redis.rb:736
                (root) at sandbox.rb:4
D, [2013-03-15T13:33:42.895000 #17048] DEBUG -- : Terminating 4 actors...
D, [2013-03-15T13:33:42.899000 #17048] DEBUG -- : Shutdown completed cleanly
@tarcieri
Copy link
Member

That's odd... the tests do at least that much and JRuby passes under CI

@tisba
Copy link
Author

tisba commented Mar 15, 2013

@tarcieri here is what I used: https://gist.github.com/tisba/5170822

As I said, I run the test by bundle exec ruby sandbox.rb

@tisba
Copy link
Author

tisba commented Mar 15, 2013

I don't see how this can actually work, looking at https://github.com/celluloid/celluloid-io/blob/v0.13.0.pre/lib/celluloid/io/tcp_socket.rb

@tarcieri
Copy link
Member

@tisba
Copy link
Author

tisba commented Mar 15, 2013

@tarcieri okay, this is pretty confusing, that the dependency you specified in your gem is not working ;) if this will be necessary for a little while, you should consider adding a note to the readme.

@tarcieri
Copy link
Member

Sorry, in the middle of a release cycle here, so the dependencies don't quite match up. Also this gem is rather bleeding edge

@tisba
Copy link
Author

tisba commented Mar 15, 2013

No problem, just a bit confusing.

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

No branches or pull requests

2 participants