Forum: Ruby on Rails Starling problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F824daa540af7bdf3f230de13860879b?d=identicon&s=25 Florian (Guest)
on 2009-03-26 01:13
(Received via mailing list)
Hi,
installed starling on OS-X (starling (0.9.8), ruby 1.8.7 (2008-08-11
patchlevel 72)) , and am getting some weird exceptions when running it
out of the box. Has anyone seen similar problems?

Thanks,
Florian

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'starling'
=> true
irb(main):003:0> starling = Starling.new('127.0.0.1:22122')
=> <MemCache: 1 servers, ns: nil, ro: false>
irb(main):004:0> starling.set('my_queue', 12345)
TypeError: can't dup NilClass
  from /opt/local/lib/ruby/gems/1.8/gems/starling-0.9.8/lib/starling.rb:
94:in `dup'
  from /opt/local/lib/ruby/gems/1.8/gems/starling-0.9.8/lib/starling.rb:
94:in `get_server_for_key'
  from /opt/local/lib/ruby/gems/1.8/gems/memcache-client-1.6.5/lib/
memcache.rb:689:in `request_setup'
  from /opt/local/lib/ruby/gems/1.8/gems/memcache-client-1.6.5/lib/
memcache.rb:658:in `with_server'
  from /opt/local/lib/ruby/gems/1.8/gems/memcache-client-1.6.5/lib/
memcache.rb:303:in `set'
  from /opt/local/lib/ruby/gems/1.8/gems/starling-0.9.8/lib/starling.rb:
34:in `set'
  from (irb):4
irb(main):005:0> %
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2009-03-26 01:50
(Received via mailing list)
You should try the later Starling-starling gem found here
http://github.com/starling/starling/tree/master
This topic is locked and can not be replied to.