ICMP access does not seem to work
---------------------------------
Key: JRUBY-5897
URL: https://jira.codehaus.org/browse/JRUBY-5897
Project: JRuby
Issue Type: Bug
Components: Standard Library
Affects Versions: JRuby 1.6RC1
Environment: java version "1.6.0_20" on Linux x86
Reporter: Xuân Baldauf
Assignee: Thomas E Enebo
jruby -S gem install net-ping
Then run this Ruby code (e.g. in irb):
require 'rubygems'; require 'net/ping'; Net::Ping::ICMP.new("localhost").ping
Expected result is: true
Actual result is:
Java::JavaLang::NullPointerException:
from
org.jruby.util.io.ChannelDescriptor.isOpen(ChannelDescriptor.java:339)
from
org.jruby.util.io.ChannelDescriptor.checkOpen(ChannelDescriptor.java:349)
from
org.jruby.util.io.ChannelDescriptor.write(ChannelDescriptor.java:599)
from org.jruby.RubyIO.syswrite(RubyIO.java:1203)
from
org.jruby.ext.socket.RubyBasicSocket.write_send(RubyBasicSocket.java:161)
from
org.jruby.ext.socket.RubyBasicSocket$i_method_0_0$RUBYINVOKER$write_send.call(org/jruby/ext/socket/RubyBasicSocket$i_method_0_0$RUBYINVOKER$write_send.gen:65535)
from
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:638)
from
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:220)
from
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:205)
from org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)
from org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
from org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
from
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:70)
from
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:141)
from
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
from
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
--
This message is automatically generated by JIRA.
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