Starfish DRb Error

I was trying to get starfish to work, but I get a DRb error every time
I run starfish application (with or without a specified file).

Here is the output …

E:\projects\starfish>starfish foo.rb
e:\projects\cvsp\ruby\lib/drb.rb:398: undefined method to_s' for classDRb::smiley:
RbObject’ (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:inre
quire’
from c:/ruby/lib/ruby/gems/1.8/gems/starfish-1.2.1/lib/
map_reduce.rb:1
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:inre
quire’
from c:/ruby/lib/ruby/gems/1.8/gems/starfish-1.2.1/lib/
starfish.rb:9
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:inre
quire’
from c:/ruby/lib/ruby/gems/1.8/gems/starfish-1.2.1/bin/
starfish:5
from c:/ruby/bin/starfish:16:in `load’
from c:/ruby/bin/starfish:16

foo.rb contains (taken from the starfish documentation):

foo.rb

class Foo
attr_reader :i

def initialize
@i = 0
end

def inc
logger.info “YAY it incremented by 1 up to #{@i}”
@i += 1
end
end

server do |object|
object = Foo.new
end

client do |object|
object.inc
end

Any ideas on why I am getting the DRb error?

Thanks,
Dale

google for drb on windows–setup might be not as trivial as expected.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs