Skip to content

Instantly share code, notes, and snippets.

@CootCraig
Created March 24, 2013 19:49
Show Gist options
  • Save CootCraig/5233242 to your computer and use it in GitHub Desktop.
Save CootCraig/5233242 to your computer and use it in GitHub Desktop.
celluloid, ffi-rzmq script fails on windows with jruby 1.7.3
celluloid, ffi-rzmq script fails on windows with jruby 1.7.3
script at
[email protected]:CootCraig/celluloid_zmq_test.git
$ jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) Client VM 1.8.0-ea-b78 +indy [Windows 2003-x86]
======================================================== script output
libzmq version {:major=>2, :minor=>2, :patch=>0}
app.run
EventLogger starting
EventReader starting
EventWriter starting
EventSource event_source_1 starting
EventSource event_source_2 starting
EventSource event_source_3 starting
EventSource event_source_4 starting
{"time":"2013-03-24T13:39:15-06:00","name":"event_source_1","index":1}
1: {"time":"2013-03-24T13:39:15-06:00","name":"event_source_1","index":1}
{"time":"2013-03-24T13:39:16-06:00","name":"event_source_1","index":2}
{"time":"2013-03-24T13:39:16-06:00","name":"event_source_2","index":1}
2: {"time":"2013-03-24T13:39:16-06:00","name":"event_source_1","index":2}
3: {"time":"2013-03-24T13:39:16-06:00","name":"event_source_2","index":1}
{"time":"2013-03-24T13:39:17-06:00","name":"event_source_1","index":3}
4: {"time":"2013-03-24T13:39:17-06:00","name":"event_source_1","index":3}
{"time":"2013-03-24T13:39:17-06:00","name":"event_source_3","index":1}
5: {"time":"2013-03-24T13:39:17-06:00","name":"event_source_3","index":1}
{"time":"2013-03-24T13:39:18-06:00","name":"event_source_2","index":2}
{"time":"2013-03-24T13:39:18-06:00","name":"event_source_1","index":4}
6: {"time":"2013-03-24T13:39:18-06:00","name":"event_source_2","index":2}
7: {"time":"2013-03-24T13:39:18-06:00","name":"event_source_1","index":4}
{"time":"2013-03-24T13:39:18-06:00","name":"event_source_4","index":1}
8: {"time":"2013-03-24T13:39:18-06:00","name":"event_source_4","index":1}
{"time":"2013-03-24T13:39:19-06:00","name":"event_source_1","index":5}
9: {"time":"2013-03-24T13:39:19-06:00","name":"event_source_1","index":5}
{"time":"2013-03-24T13:39:20-06:00","name":"event_source_2","index":3}
10: {"time":"2013-03-24T13:39:20-06:00","name":"event_source_2","index":3}
{"time":"2013-03-24T13:39:20-06:00","name":"event_source_3","index":2}
{"time":"2013-03-24T13:39:20-06:00","name":"event_source_1","index":6}
11: {"time":"2013-03-24T13:39:20-06:00","name":"event_source_3","index":2}
12: {"time":"2013-03-24T13:39:20-06:00","name":"event_source_1","index":6}
{"time":"2013-03-24T13:39:21-06:00","name":"event_source_1","index":7}
13: {"time":"2013-03-24T13:39:21-06:00","name":"event_source_1","index":7}
{"time":"2013-03-24T13:39:22-06:00","name":"event_source_2","index":4}
14: {"time":"2013-03-24T13:39:22-06:00","name":"event_source_2","index":4}
{"time":"2013-03-24T13:39:22-06:00","name":"event_source_1","index":8}
15: {"time":"2013-03-24T13:39:22-06:00","name":"event_source_1","index":8}
{"time":"2013-03-24T13:39:22-06:00","name":"event_source_4","index":2}
16: {"time":"2013-03-24T13:39:22-06:00","name":"event_source_4","index":2}
{"time":"2013-03-24T13:39:23-06:00","name":"event_source_3","index":3}
{"time":"2013-03-24T13:39:23-06:00","name":"event_source_1","index":9}
17: {"time":"2013-03-24T13:39:23-06:00","name":"event_source_3","index":3}
18: {"time":"2013-03-24T13:39:23-06:00","name":"event_source_1","index":9}
{"time":"2013-03-24T13:39:24-06:00","name":"event_source_2","index":5}
19: {"time":"2013-03-24T13:39:24-06:00","name":"event_source_2","index":5}
{"time":"2013-03-24T13:39:24-06:00","name":"event_source_1","index":10}
20: {"time":"2013-03-24T13:39:24-06:00","name":"event_source_1","index":10}
{"time":"2013-03-24T13:39:25-06:00","name":"event_source_1","index":11}
21: {"time":"2013-03-24T13:39:25-06:00","name":"event_source_1","index":11}
{"time":"2013-03-24T13:39:26-06:00","name":"event_source_2","index":6}
22: {"time":"2013-03-24T13:39:26-06:00","name":"event_source_2","index":6}
{"time":"2013-03-24T13:39:26-06:00","name":"event_source_4","index":3}
23: {"time":"2013-03-24T13:39:26-06:00","name":"event_source_4","index":3}
{"time":"2013-03-24T13:39:26-06:00","name":"event_source_3","index":4}
24: {"time":"2013-03-24T13:39:26-06:00","name":"event_source_3","index":4}
{"time":"2013-03-24T13:39:26-06:00","name":"event_source_1","index":12}
Exception in thread "JRubyWorker-1" java.lang.NullPointerException
at java.lang.invoke.MethodHandles.guardWithTest(MethodHandles.java:2111)
at org.jruby.ext.ffi.jffi.InvokeDynamic.getMethodHandle(InvokeDynamic.java:44)
at org.jruby.runtime.invokedynamic.InvocationLinker.createFFIHandle(InvocationLinker.java:1377)
at org.jruby.runtime.invokedynamic.InvocationLinker.handleForMethod(InvocationLinker.java:607)
at org.jruby.runtime.invokedynamic.InvocationLinker.tryDispatchDirect(InvocationLinker.java:561)
at org.jruby.runtime.invokedynamic.InvocationLinker.getTarget(InvocationLinker.java:567)
at org.jruby.runtime.invokedynamic.InvocationLinker.invocationFallback(InvocationLinker.java:146)
at rubyjit.ZMQ::Message$$close_F1109644131DFEFEBD8603E990C4D77AF9600D3611505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.0/lib/ffi-rzmq/message.rb:187)
at rubyjit.ZMQ::Message$$close_F1109644131DFEFEBD8603E990C4D77AF9600D3611505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.0/lib/ffi-rzmq/message.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:141)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:172)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64)
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:75)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:188)
at celluloid_zmq_test.block_2$RUBY$run(celluloid_zmq_test.rb:88)
at celluloid_zmq_test$block_2$RUBY$run.call(celluloid_zmq_test$block_2$RUBY$run)
at org.jruby.runtime.CompiledBlock19.yieldSpecificInternal(CompiledBlock19.java:121)
at org.jruby.runtime.CompiledBlock19.yieldSpecific(CompiledBlock19.java:96)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.RubyKernel.loop(RubyKernel.java:1409)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:599)
at org.jruby.runtime.invokedynamic.InvocationLinker.invocationFallback(InvocationLinker.java:224)
at celluloid_zmq_test.method__12$RUBY$run(celluloid_zmq_test.rb:86)
at celluloid_zmq_test$method__12$RUBY$run.call(celluloid_zmq_test$method__12$RUBY$run)
at celluloid_zmq_test$method__12$RUBY$run.call(celluloid_zmq_test$method__12$RUBY$run)
at org.jruby.RubyClass.finvoke(RubyClass.java:599)
at org.jruby.RubyBasicObject.send19(RubyBasicObject.java:1704)
at org.jruby.RubyBasicObject$INVOKER$i$send19.call(RubyBasicObject$INVOKER$i$send19.gen)
at org.jruby.RubyKernel.public_send(RubyKernel.java:1826)
at org.jruby.RubyKernel$INVOKER$s$0$0$public_send.call(RubyKernel$INVOKER$s$0$0$public_send.gen)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:217)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:211)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:217)
at org.jruby.ast.CallSpecialArgBlockPassNode.interpret(CallSpecialArgBlockPassNode.java:66)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:224)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:119)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:204)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:196)
at org.jruby.runtime.callsite.SuperCallSite.cacheAndCall(SuperCallSite.java:366)
at org.jruby.runtime.callsite.SuperCallSite.callBlock(SuperCallSite.java:192)
at org.jruby.runtime.callsite.SuperCallSite.call(SuperCallSite.java:197)
at org.jruby.runtime.callsite.SuperCallSite.callVarargs(SuperCallSite.java:108)
at org.jruby.ast.SuperNode.interpret(SuperNode.java:116)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:224)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:119)
at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:188)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
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:209)
at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:160)
at org.jruby.runtime.Interpreted19Block.yieldSpecific(Interpreted19Block.java:133)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:224)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:119)
at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
at org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)
at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:197)
at org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:180)
at org.jruby.runtime.Block.yieldArray(Block.java:146)
at org.jruby.ext.fiber.ThreadFiber$1.run(ThreadFiber.java:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
{"time":"2013-03-24T13:39:28-06:00","name":"event_source_1","index":13}
Exception in thread "JRubyWorker-4" java.lang.NullPointerException
at java.lang.invoke.MethodHandles.guardWithTest(MethodHandles.java:2111)
at org.jruby.ext.ffi.jffi.InvokeDynamic.getMethodHandle(InvokeDynamic.java:44)
at org.jruby.runtime.invokedynamic.InvocationLinker.createFFIHandle(InvocationLinker.java:1377)
at org.jruby.runtime.invokedynamic.InvocationLinker.handleForMethod(InvocationLinker.java:607)
at org.jruby.runtime.invokedynamic.InvocationLinker.tryDispatchDirect(InvocationLinker.java:561)
at org.jruby.runtime.invokedynamic.InvocationLinker.getTarget(InvocationLinker.java:567)
at org.jruby.runtime.invokedynamic.InvocationLinker.invocationFallback(InvocationLinker.java:146)
at rubyjit.ZMQ::Message$$close_F1109644131DFEFEBD8603E990C4D77AF9600D3611505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.0/lib/ffi-rzmq/message.rb:187)
at rubyjit.ZMQ::Message$$close_F1109644131DFEFEBD8603E990C4D77AF9600D3611505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/ffi-rzmq-1.0.0/lib/ffi-rzmq/message.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:141)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64)
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:75)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202)
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:75)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:188)
at celluloid_zmq_test.method__9$RUBY$write(celluloid_zmq_test.rb:72)
at celluloid_zmq_test$method__9$RUBY$write.call(celluloid_zmq_test$method__9$RUBY$write)
at celluloid_zmq_test$method__9$RUBY$write.call(celluloid_zmq_test$method__9$RUBY$write)
at org.jruby.RubyKernel.public_send(RubyKernel.java:1826)
at rubyjit.Celluloid::Call$$dispatch_09B951864907F2B8DE7B265F4D04DD76A0862FA111505757.chained_0_rescue_1$RUBY$SYNTHETIC__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/calls.rb:11)
at rubyjit.Celluloid::Call$$dispatch_09B951864907F2B8DE7B265F4D04DD76A0862FA111505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/calls.rb)
at rubyjit.Celluloid::Call$$dispatch_09B951864907F2B8DE7B265F4D04DD76A0862FA111505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/calls.rb)
at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:201)
at org.jruby.runtime.callsite.SuperCallSite.cacheAndCall(SuperCallSite.java:366)
at org.jruby.runtime.callsite.SuperCallSite.callBlock(SuperCallSite.java:192)
at org.jruby.runtime.callsite.SuperCallSite.call(SuperCallSite.java:197)
at rubyjit.Celluloid::AsyncCall$$dispatch_B65AA4E596DCA2A903241ADC8757CC20213D6AB711505757.chained_1_rescue_1$RUBY$SYNTHETIC__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/calls.rb:96)
at rubyjit.Celluloid::AsyncCall$$dispatch_B65AA4E596DCA2A903241ADC8757CC20213D6AB711505757.chained_0_ensure_1$RUBY$__ensure__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/calls.rb)
at rubyjit.Celluloid::AsyncCall$$dispatch_B65AA4E596DCA2A903241ADC8757CC20213D6AB711505757.__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/calls.rb)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:599)
at org.jruby.runtime.invokedynamic.InvocationLinker.invocationFallback(InvocationLinker.java:149)
at rubyjit.Celluloid::Actor$$handle_message_614372BE6CB6D9E680656B2DD03A1FA287DCBF2611505757.block_0$RUBY$__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/actor.rb:326)
at rubyjit$Celluloid::Actor$$handle_message_614372BE6CB6D9E680656B2DD03A1FA287DCBF2611505757$block_0$RUBY$__file__.call(rubyjit$Celluloid::Actor$$handle_message_614372BE6CB6D9E680656B2DD03A1FA287DCBF2611505757$block_0$RUBY$__file__)
at org.jruby.runtime.CompiledBlock19.yieldSpecificInternal(CompiledBlock19.java:121)
at org.jruby.runtime.CompiledBlock19.yieldSpecific(CompiledBlock19.java:96)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.runtime.invokedynamic.InvocationLinker.yieldSpecificFallback(InvocationLinker.java:404)
at rubyjit.Celluloid::TaskFiber$$initialize_6A8830911B6F369CFF4DCAFBBA5A5D41AA8F014C11505757.chained_1_rescue_1$RUBY$SYNTHETIC__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/tasks/task_fiber.rb:28)
at rubyjit.Celluloid::TaskFiber$$initialize_6A8830911B6F369CFF4DCAFBBA5A5D41AA8F014C11505757.chained_0_ensure_1$RUBY$__ensure__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/tasks/task_fiber.rb)
at rubyjit.Celluloid::TaskFiber$$initialize_6A8830911B6F369CFF4DCAFBBA5A5D41AA8F014C11505757.block_0$RUBY$__file__(c:/jruby/jruby-1.7.3/lib/ruby/gems/shared/gems/celluloid-0.13.0/lib/celluloid/tasks/task_fiber.rb:27)
at rubyjit$Celluloid::TaskFiber$$initialize_6A8830911B6F369CFF4DCAFBBA5A5D41AA8F014C11505757$block_0$RUBY$__file__.call(rubyjit$Celluloid::TaskFiber$$initialize_6A8830911B6F369CFF4DCAFBBA5A5D41AA8F014C11505757$block_0$RUBY$__file__)
at org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:163)
at org.jruby.runtime.CompiledBlock19.yield(CompiledBlock19.java:149)
at org.jruby.runtime.Block.yieldArray(Block.java:146)
at org.jruby.ext.fiber.ThreadFiber$1.run(ThreadFiber.java:38)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment