Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0
-
Fix Version/s: JRuby 1.0.1, JRuby 1.1b1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:winxp sp2
-
Number of attachments :
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
| This issue relates to: | ||||
| JRUBY-1108 | IOError exception in Net::FTP using 1.0.0RC3 under WinXP |
|
|
|
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