closed stream error when using druby to copy a file
---------------------------------------------------
Key: JRUBY-3680
URL: http://jira.codehaus.org/browse/JRUBY-3680
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.2, JRuby 1.3
Environment: Redhat Enterprise Linux 5.3 x86_64
Reporter: Rick Ohnemus
Attachments: client.rb, server.rb
Get the following error when running the attached druby client and server:
(druby://...:55841) client.rb:11:in `copy_to_remote': closed stream (IOError)
from (druby://...:55841) client.rb:8:in `open'
from (druby://...:55841) client.rb:8:in `copy_to_remote'
from (druby://...:55841) .../jruby/lib/ruby/1.8/drb/drb.rb:1548:in
`call'
from (druby://...:55841) .../jruby/lib/ruby/1.8/drb/drb.rb:1548:in
`perform_without_block'
from (druby://...:55841) .../jruby/lib/ruby/1.8/drb/drb.rb:1508:in
`perform'
from (druby://...:55841) .../jruby/lib/ruby/1.8/drb/drb.rb:1582:in
`main_loop'
from (druby://...:55841) .../jruby/lib/ruby/1.8/drb/drb.rb:1574:in
`start'
from (druby://localhost:9630)
.../jruby/lib/ruby/1.8/drb/invokemethod.rb:10:in `block_yield'
from (druby://localhost:9630)
.../jruby/lib/ruby/1.8/drb/invokemethod.rb:17:in `perform_with_block'
from (druby://localhost:9630) server.rb:8:in `store_file'
from (druby://localhost:9630) server.rb:8:in `open'
from (druby://localhost:9630) server.rb:8:in `store_file'
from (druby://localhost:9630)
.../jruby/lib/ruby/1.8/drb/invokemethod.rb:14:in `perform_with_block'
from (druby://localhost:9630) .../jruby/lib/ruby/1.8/drb/drb.rb:1506:in
`perform'
from (druby://localhost:9630) .../jruby/lib/ruby/1.8/drb/drb.rb:1582:in
`main_loop'
from (druby://localhost:9630) .../jruby/lib/ruby/1.8/drb/drb.rb:1574:in
`start'
from client.rb:6:in `copy_to_remote'
from client.rb:23
The same code works with MRI Ruby 1.8.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email