From: Jos Backus Date: 2004-01-03T14:52:02+09:00 Subject: DRb question I am trying to write a simple remote execution framework, and am running into a DRb problem I can't seem to figure out. The system consists of a controller and a number of clients; the controller sends commands to the clients (these commands in turn will eventually talk to a server). The problem is that when I make the same method call twice in a row I see the following error on the controller side: Terminal A: running the client: lizzy:~/public_html/ruby/webrun% ./webrun-client.rb Starting WebRun service on localhost:12345 WebRunClient.add(u1) users=[u1] cmd=load_file Terminal B: running the controller: lizzy:~/public_html/ruby/webrun% ./webrun-control.rb assigning proxy for localhost ##}> ##}> user u1 -> client localhost:12345 execute cmd load_file on client localhost:12345 for users [u1] 2nd call fails: # # ./webrun.rb:29:in `has_user?': undefined method `has_user?' for # (NoMethodError) from ./webrun.rb:82:in `where_is_user' from ./webrun.rb:80:in `each' from ./webrun.rb:75:in `each' from ./webrun.rb:75:in `each' from ./webrun.rb:87:in `where_is_user' from ./webrun.rb:138:in `execute_each_user' from ./webrun.rb:137:in `each' from ./webrun.rb:137:in `execute_each_user' from ./webrun-control.rb:17 The code is at: http://lizzy.dyndns.org/~jos/ruby/webrun/webrun.rb http://lizzy.dyndns.org/~jos/ruby/webrun/webrun-client.rb http://lizzy.dyndns.org/~jos/ruby/webrun/webrun-control.rb http://lizzy.dyndns.org/~jos/ruby/webrun/proc.rb Does anybody have any idea what I could be doing wrong or how to debug this problem? Thanks, -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'