Skip to content

[windows][jruby-complete] Resolv.getaddress fails #580

@wiibaa

Description

@wiibaa

Executing the following on windows

java -cp jruby-complete-1.7.3.jar org.jruby.Main -e "require 'resolv'; p Resolv.getaddress('www.google.com')"

fails with this stacktrace

Errno::ENOENT: No such file or directory - D:/etc/hosts
   initialize at org/jruby/RubyFile.java:333
         open at org/jruby/RubyIO.java:1179
         open at org/jruby/RubyKernel.java:333
lazy_initialize at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:189
  synchronize at org/jruby/ext/thread/Mutex.java:149
lazy_initialize at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:185
 each_address at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:236
 each_address at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:115
         each at org/jruby/RubyArray.java:1613
 each_address at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:114
   getaddress at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:92
   getaddress at jar:file:/D:/temp/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/resolv.rb:43
       (root) at -e:1

It seems similar to old closed report JRUBY-3480

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions