Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installClassFields NPE #2248

Closed
andrewvc opened this issue Nov 26, 2014 · 0 comments
Closed

installClassFields NPE #2248

andrewvc opened this issue Nov 26, 2014 · 0 comments

Comments

@andrewvc
Copy link

I'm getting the following exceptions with the march_hare gem, which seems to
be a Jruby internal error. This seems to be an internal jruby error. I've
posted the stack trace below. I'm running jruby 1.7.16.1, on JRE
1.8.0_40-internal-b09

There are two different, but similar ones, both listed below:

DefaultExceptionHandler: Consumer org.jruby.proxy.com.rabbitmq.client.DefaultConsumer$Proxy0@33187485 (amq.ctag-8MerEY1W5a24lMDbJB1XQw) method handleDelivery for channel AMQChannel(amqp://tycho@10.129.128.76:5672/,1) threw an exception for channel AMQChannel(amqp://tycho@10.129.128.76:5672/,1):
java.lang.NullPointerException
    at org.jruby.javasupport.JavaClass.installClassFields(JavaClass.java:890)
    at org.jruby.javasupport.JavaClass.setupProxy(JavaClass.java:735)
    at org.jruby.javasupport.Java.createProxyClass(Java.java:574)
    at org.jruby.javasupport.Java.createProxyClassForClass(Java.java:502)
    at org.jruby.javasupport.JavaSupport$3.computeValue(JavaSupport.java:154)
    at org.jruby.javasupport.JavaSupport$3.computeValue(JavaSupport.java:151)
    at org.jruby.util.collections.MapBasedClassValue.get(MapBasedClassValue.java:18)
    at org.jruby.javasupport.JavaSupport.getProxyClassFromCache(JavaSupport.java:207)
    at org.jruby.javasupport.Java.getProxyClass(Java.java:450)
    at org.jruby.javasupport.Java.getInstance(Java.java:389)
    at org.jruby.javasupport.Java.getInstance(Java.java:371)
    at org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject(JavaUtil.java:169)
    at org.jruby.runtime.Helpers.checkJavaException(Helpers.java:1010)
    at org.jruby.runtime.Helpers.isJavaExceptionHandled(Helpers.java:1049)
    at org.jruby.ast.RescueNode.handleJavaException(RescueNode.java:190)
    at org.jruby.ast.RescueNode.interpret(RescueNode.java:137)
    at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
    at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)
    at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:194)
    at org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:125)
    at org.jruby.runtime.Block.call(Block.java:101)
    at org.jruby.RubyProc.call(RubyProc.java:290)
    at org.jruby.RubyProc.call19(RubyProc.java:271)
    at org.jruby.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$call19.gen)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
    at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:214)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.IfNode.interpret(IfNode.java:116)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:173)
    at org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:224)
    at org.jruby.proxy.com.rabbitmq.client.DefaultConsumer$Proxy0.handleDelivery(Unknown Source)
    at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)
    at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:95)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

And the second

Caught Error:
    org.jruby.javasupport.JavaClass.installClassFields(JavaClass.java:890)
    org.jruby.javasupport.JavaClass.setupProxy(JavaClass.java:735)
    org.jruby.javasupport.Java.createProxyClass(Java.java:574)
    org.jruby.javasupport.Java.createProxyClassForClass(Java.java:502)
    org.jruby.javasupport.JavaSupport$3.computeValue(JavaSupport.java:154)
    org.jruby.javasupport.JavaSupport$3.computeValue(JavaSupport.java:151)

org.jruby.util.collections.MapBasedClassValue.get(MapBasedClassValue.java:18)

org.jruby.javasupport.JavaSupport.getProxyClassFromCache(JavaSupport.java:207)
    org.jruby.javasupport.Java.getProxyClass(Java.java:450)
    org.jruby.javasupport.Java.getInstance(Java.java:389)
    org.jruby.javasupport.Java.getInstance(Java.java:371)

org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject(JavaUtil.java:169)
    org.jruby.runtime.Helpers.checkJavaException(Helpers.java:1010)
    org.jruby.runtime.Helpers.isJavaExceptionHandled(Helpers.java:1049)
    org.jruby.ast.RescueNode.handleJavaException(RescueNode.java:190)
    org.jruby.ast.RescueNode.interpret(RescueNode.java:137)
    org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)

org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)

org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)

org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)
    org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:157)

org.jruby.runtime.Interpreted19Block.yieldSpecific(Interpreted19Block.java:130)
    org.jruby.runtime.Block.yieldSpecific(Block.java:111)
    org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)

org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)

org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)
    org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:157)

org.jruby.runtime.Interpreted19Block.yieldSpecific(Interpreted19Block.java:130)
    org.jruby.runtime.Block.yieldSpecific(Block.java:111)
    org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
    org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:206)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)

org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)

org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:188)

org.jruby.ast.FCallOneArgBlockNode.interpret(FCallOneArgBlockNode.java:34)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)

org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)

org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)
    org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:157)

org.jruby.runtime.Interpreted19Block.yieldSpecific(Interpreted19Block.java:130)
    org.jruby.runtime.Block.yieldSpecific(Block.java:111)
    org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
    org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:161)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:190)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:316)

org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:145)

org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:154)
    org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:206)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)

org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)

org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:183)

org.jruby.ast.CallOneArgBlockPassNode.interpret(CallOneArgBlockPassNode.java:60)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.IfNode.interpret(IfNode.java:116)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:206)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:336)

org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:179)

org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:188)
    org.jruby.ast.CallOneArgBlockNode.interpret(CallOneArgBlockNode.java:60)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    org.jruby.ast.IfNode.interpret(IfNode.java:116)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)

org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.RescueNode.executeBody(RescueNode.java:221)
    org.jruby.ast.RescueNode.interpret(RescueNode.java:116)
    org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)

org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)

org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:206)
    org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:194)
    org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:125)
    org.jruby.runtime.Block.call(Block.java:101)
    org.jruby.RubyProc.call(RubyProc.java:290)
    org.jruby.RubyProc.call19(RubyProc.java:271)

org.jruby.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$call19.gen)

org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)

org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:214)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)

org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.IfNode.interpret(IfNode.java:116)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:214)

org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346)

org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204)
    org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
    org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
    org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)

org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126)

org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:173)

org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:224)

org.jruby.proxy.com.rabbitmq.client.DefaultConsumer$Proxy0.handleDelivery(Unknown
Source)

com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)

com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:95)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    java.lang.Thread.run(Thread.java:745)
@enebo enebo added this to the Invalid or Duplicate milestone Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants