Just sticking this here until I decide what to do about it. Travis CI currently runs jruby-1.7.19 by default which has a bug: https://github.com/jruby/jruby/issues/2881
Which causes the build to throw errors like:
1) Error:
test_01_send_message(TestKafkaProducer):
TypeError: cannot convert instance of class org.jruby.RubyModule to class java.lang.Class
org/jruby/java/proxies/JavaProxy.java:388:in `java_method'
/home/travis/build/joekiller/jruby-kafka/lib/jruby-kafka/kafka-producer.rb:59:in `connect'
/home/travis/build/joekiller/jruby-kafka/test/test_kafka-producer.rb:9:in `send_msg'
/home/travis/build/joekiller/jruby-kafka/test/test_kafka-producer.rb:15:in `test_01_send_message'
The fix is to make sure that in the kafka-producer the @send_cb_method's Callback object calls the .java_class method. Yup it's a pain. Not only that but then the jar-dependencies module is then outdated so in the build, you have to call gem install jar-dependencies to get the latest. Blah.
At jruby-1.9.20 the .java_class issue is fixed but then jar-dependencies is bungled.
It looks like that jruby-1.9.21 is fine. Anyway... buyer beware.
Just sticking this here until I decide what to do about it. Travis CI currently runs jruby-1.7.19 by default which has a bug: https://github.com/jruby/jruby/issues/2881
Which causes the build to throw errors like:
The fix is to make sure that in the kafka-producer the @send_cb_method's Callback object calls the .java_class method. Yup it's a pain. Not only that but then the jar-dependencies module is then outdated so in the build, you have to call
gem install jar-dependencies
to get the latest. Blah.At jruby-1.9.20 the .java_class issue is fixed but then jar-dependencies is bungled.
It looks like that jruby-1.9.21 is fine. Anyway... buyer beware.