{"action":"closed","issue":{"url":"https://api.github.com/repos/joekiller/jruby-kafka/issues/53","repository_url":"https://api.github.com/repos/joekiller/jruby-kafka","labels_url":"https://api.github.com/repos/joekiller/jruby-kafka/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/joekiller/jruby-kafka/issues/53/comments","events_url":"https://api.github.com/repos/joekiller/jruby-kafka/issues/53/events","html_url":"https://github.com/joekiller/jruby-kafka/issues/53","id":165328023,"number":53,"title":"java.lang.NoClassDefFoundError: Could not initialize class org.apache.kafka.clients.producer.ProducerConfig","user":{"login":"sziep","id":599205,"avatar_url":"https://avatars.githubusercontent.com/u/599205?v=3","gravatar_id":"","url":"https://api.github.com/users/sziep","html_url":"https://github.com/sziep","followers_url":"https://api.github.com/users/sziep/followers","following_url":"https://api.github.com/users/sziep/following{/other_user}","gists_url":"https://api.github.com/users/sziep/gists{/gist_id}","starred_url":"https://api.github.com/users/sziep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sziep/subscriptions","organizations_url":"https://api.github.com/users/sziep/orgs","repos_url":"https://api.github.com/users/sziep/repos","events_url":"https://api.github.com/users/sziep/events{/privacy}","received_events_url":"https://api.github.com/users/sziep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-13T13:59:42Z","updated_at":"2016-11-07T23:51:00Z","closed_at":"2016-11-07T23:51:00Z","body":"Hi Joe,\n\nI'm running jruby 1.7.25 and using the 3.6.0 branch to be able to target kafka 0.9 brokers. When constructing a Producer like:\n\n``` ruby\nKAFKA_PRODUCER_OPTIONS = {\n    :bootstrap_servers => '127.0.0.1:9092',\n    :key_serializer => 'org.apache.kafka.common.serialization.StringSerializer',\n    :value_serializer => 'org.apache.kafka.common.serialization.StringSerializer',\n}\n\nproducer = Kafka::KafkaProducer.new(KAFKA_PRODUCER_OPTIONS)\n```\n\nit fails with:\njava.lang.NoClassDefFoundError: Could not initialize class org.apache.kafka.clients.producer.ProducerConfig\norg.apache.kafka.clients.producer.KafkaProducer.<init>(org/apache/kafka/clients/producer/KafkaProducer.java:181)\n...\n\nFrom what I can see this has to do with dynamic class loading issues in kafka 0.9. \n"}}
{"actor":{"display_login":"joekiller"}}