[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

DRb Return Cant Jump Across Threads

Thomas Counsell

10/10/2004 10:59:00 AM

Hello,

I'm experimenting with adding DRb access to a wiki. When a method is
called through DRb from irb to the running wiki it always results in
the errors:

Server: /opt/local/lib/ruby/site_ruby/1.8/drb/drb.rb:726:in
`main_loop': return jump can't across threads (ThreadError)
Client: NameError: undefined method `name' called for from
(druby://localhost:8001)
/opt/local/lib/ruby/site_ruby/1.8/drb/drb.rb:632:in
`check_insecure_method' on the client.

Can anybody give me any hints on what I might have done wrong?

I'm running ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0].

Many thanks

Tom



1 Answer

Eric Hodel

10/10/2004 7:35:00 PM

0

Thomas Counsell (tamc2@cam.ac.uk) wrote:

> Hello,
>
> I'm experimenting with adding DRb access to a wiki. When a method is
> called through DRb from irb to the running wiki it always results in
> the errors:
>
> Server: /opt/local/lib/ruby/site_ruby/1.8/drb/drb.rb:726:in
> `main_loop': return jump can't across threads (ThreadError)
> Client: NameError: undefined method `name' called for from
> (druby://localhost:8001)
> /opt/local/lib/ruby/site_ruby/1.8/drb/drb.rb:632:in
> `check_insecure_method' on the client.
>
> Can anybody give me any hints on what I might have done wrong?

Two things to look for:

callcc

return in a block/proc

--
Eric Hodel - drbrain@segment7.net - http://se...
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04