JRuby

FTP.nlst error !!!

Details

  • Number of attachments :
    0

Description

when using FTP.nlst , i found the following error:
IOError: No message available
from D:/jruby-1.0.0RC3/lib/ruby/1.8/net/ftp.rb:611:in `loop'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/net/ftp.rb:431:in `retrlines'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/net/ftp.rb:611:in `mon_synchronize'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/net/ftp.rb:434:in `retrlines'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/net/ftp.rb:611:in `nlst'
from (irb):6:in `binding'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:150:in `eval_input'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:70:in `signal_status'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:189:in `eval_input'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:70:in `each_top_level_stateme
nt'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:190:in `loop'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:190:in `catch'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:190:in `eval_input'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:70:in `start'
from :-1:in `catch'
from D:/jruby-1.0.0RC3/lib/ruby/1.8/irb.rb:71:in `start'
from :-1irb(main):007:0>

Issue Links

Activity

Hide
Jake Benilov added a comment -

I got a very similar problem, running on the JRuby 1.0 release with the following code:

require 'net/ftp'
Net::FTP.open("xxx", "username", "password") do |ftp|
files = ftp.chdir "outgoing"
files = ftp.list("*")
puts files
end

Show
Jake Benilov added a comment - I got a very similar problem, running on the JRuby 1.0 release with the following code: require 'net/ftp' Net::FTP.open("xxx", "username", "password") do |ftp| files = ftp.chdir "outgoing" files = ftp.list("*") puts files end
Hide
Thomas E Enebo added a comment -

I marked this as fix for 1.0.1 since the supplied example works on trunk. So I suspect this will be resolved once we apply all 1.0.1 candidate patches from trunk.

Show
Thomas E Enebo added a comment - I marked this as fix for 1.0.1 since the supplied example works on trunk. So I suspect this will be resolved once we apply all 1.0.1 candidate patches from trunk.
Hide
Nick Sieger added a comment -

This issue appears to still be present on the branch as of 4197. Any ideas?

Show
Nick Sieger added a comment - This issue appears to still be present on the branch as of 4197. Any ideas?
Hide
Thomas E Enebo added a comment -

Whoops...my comment above was jumbled. I meant to say that it works for 1.1 (trunk) but not for 1.0.1 (branch).

We can divide and conquer back to point where it stopped working on trunk, then see if that fix works for 1.0 branch?

Show
Thomas E Enebo added a comment - Whoops...my comment above was jumbled. I meant to say that it works for 1.1 (trunk) but not for 1.0.1 (branch). We can divide and conquer back to point where it stopped working on trunk, then see if that fix works for 1.0 branch?
Hide
Thomas E Enebo added a comment -

JRUBY-1108: improved IO EOF error-handling

The patch for this bug ended up fixing this. Applied on both trunk and 1.0 branch

Show
Thomas E Enebo added a comment - JRUBY-1108: improved IO EOF error-handling The patch for this bug ended up fixing this. Applied on both trunk and 1.0 branch

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: