Trying to install a gem from a tarball and getting an exception

Hi,

I’m trying to install RCov without the native extension with JRuby
1.1.2. And I’m getting an exception.

the steps I’m following are:

get the rcov-0.8.1.2 tarball -
http://rubyforge.org/frs/download.php/28270/rcov-0.8.1.2.tar.gz
install rcov by : jruby setup.rb all --without-ext

and boom I get the following exception.

My question is as follows… a) can anyone shed a little light on how I
should go about debugging this issue? I need to determine if the error
is a JRuby bug or something else. How do people generally debug from
ruby into java? If this is a bug in Jruby I’d like to try and find out
for sure before I go and submit a bug. Thanks for any advice.

Exception:
Exception in thread “main” java.lang.NullPointerException
at
org.jruby.javasupport.util.RuntimeHelpers.processBlockArgument(RuntimeHelpers.java:440)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.method__52$RUBY$initialize(setup.rb)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setupInvokermethod__52$RUBY$initializeFixed3.call(Unknown
Source)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setupInvokermethod__52$RUBY$initializeFixed3.call(Unknown
Source)
at org.jruby.RubyClass.invoke(RubyClass.java:238)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:271)
at org.jruby.RubyObject.callMethod(RubyObject.java:717)
at org.jruby.RubyClass.newInstance(RubyClass.java:273)
at org.jruby.RubyClassInvoker$newInstance_method_0_0.call(Unknown
Source)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:98)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:235)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:414)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.method__23$RUBY$standard_entries(setup.rb:198)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setupInvokermethod__23$RUBY$standard_entriesFixed1.call(Unknown
Source)
at
org.jruby.internal.runtime.methods.CompiledMethod.call(CompiledMethod.java:52)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:155)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:332)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.method__22$RUBY$load_standard_entries(setup.rb:142)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setupInvokermethod__22$RUBY$load_standard_entriesFixed0.call(Unknown
Source)
at
org.jruby.internal.runtime.methods.CompiledMethod.call(CompiledMethod.java:48)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:123)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:298)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.method__105$RUBY$invoke(setup.rb:769)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setupInvokermethod__105$RUBY$invokeFixed0.call(Unknown
Source)
at
org.jruby.internal.runtime.methods.CompiledMethod.call(CompiledMethod.java:48)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:123)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:298)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.rescue_7$RUBY$rescue(setup.rb:1578)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.file(setup.rb:1577)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.file(setup.rb)
at
ruby.Users.home.Downloads.rcov_minus_0_dot_8_dot_1_dot_2.setup.load(setup.rb)
at org.jruby.Ruby.runScript(Ruby.java:512)
at org.jruby.Ruby.runNormally(Ruby.java:432)
at org.jruby.Ruby.runFromMain(Ruby.java:312)
at org.jruby.Main.run(Main.java:144)
at org.jruby.Main.run(Main.java:89)
at org.jruby.Main.main(Main.java:80)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I’m no JRuby expert, but I would think that a NullPointerException
would be a JRuby bug.

-Kevin B.

On Jul 7, 2008, at 12:57 PM, Jay McGaffigan wrote:

and boom I get the following exception.
Exception in thread “main” java.lang.NullPointerException
at
$initializeFixed3.call(Unknown Source)
.jruby
at
$InlineCachingCallSite.cacheAndCall(CallSite.java:155)
.home
at
$invokeFixed0.call(Unknown Source)
.Users
.Users
at org.jruby.Main.run(Main.java:89)
at org.jruby.Main.main(Main.java:80)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Kevin B.
[email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Jay,

Most probably this is (already-fixed on trunk) bug (related to 3-arg
methods with blocks).
Can you try with the current JRuby trunk?

Thanks,
–Vladimir

On Mon, Jul 7, 2008 at 9:57 PM, Jay McGaffigan [email protected]
wrote:

Exception in thread “main” java.lang.NullPointerException
at org.jruby.RubyClass.invoke(RubyClass.java:238)
at
at
at
at
at org.jruby.Ruby.runNormally(Ruby.java:432)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs