You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled Java exception: java.lang.NullPointerException
java.lang.NullPointerException: null
typeOk at org/jruby/runtime/callsite/CacheEntry.java:18
call at org/jruby/runtime/callsite/CachingCallSite.java:136
rbInspect at org/jruby/RubyBasicObject.java:1192
inspect at org/jruby/RubyObject.java:431
inspect at org/jruby/RubyMethod.java:283
call at org/jruby/RubyMethod$INVOKER$i$0$0$inspect.gen:-1
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
call at org/jruby/runtime/callsite/CachingCallSite.java:139
rbInspect at org/jruby/RubyBasicObject.java:1192
p at org/jruby/RubyKernel.java:498
call at org/jruby/RubyKernel$INVOKER$s$0$0$p.gen:-1
call at org/jruby/internal/runtime/methods/JavaMethod.java:797
call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
call at org/jruby/runtime/callsite/CachingCallSite.java:170
invokeOther7:p at -e:1
<main> at -e:1
invokeWithArguments at java/lang/invoke/MethodHandle.java:627
load at org/jruby/ir/Compiler.java:94
runScript at org/jruby/Ruby.java:852
runNormally at org/jruby/Ruby.java:771
runNormally at org/jruby/Ruby.java:789
runFromMain at org/jruby/Ruby.java:601
doRunFromMain at org/jruby/Main.java:415
internalRun at org/jruby/Main.java:307
run at org/jruby/Main.java:234
main at org/jruby/Main.java:206
The NPE is due to the copied method pointing at the singleton class which has an attached object that has no metaclass. I'm not sure why this happens, nor why non-dup'ed modules are unaffected.
Ran into it because all our Java interface proxies are duped copies of JavaInterfaceTemplate, producing methods that can't be inspected.
The text was updated successfully, but these errors were encountered:
This affects JRuby 9.2 and probably most versions before that as well.
Produces the following NPE:
The NPE is due to the copied method pointing at the singleton class which has an attached object that has no metaclass. I'm not sure why this happens, nor why non-dup'ed modules are unaffected.
Ran into it because all our Java interface proxies are duped copies of JavaInterfaceTemplate, producing methods that can't be inspected.
The text was updated successfully, but these errors were encountered: