[
https://issues.apache.org/jira/browse/CAMEL-7306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962953#comment-13962953
]
ASF GitHub Bot commented on CAMEL-7306:
---------------------------------------
GitHub user grgrzybek opened a pull request:
https://github.com/apache/camel/pull/133
[CAMEL-7306]: key is optional. Avoid NPE
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/grgrzybek/camel CAMEL-7306
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/133.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #133
----
commit e317e7b470f03d14fe51b9efcc6d251e869c8224
Author: Grzegorz Grzybek <[email protected]>
Date: 2014-04-08T13:21:54Z
[CAMEL-7306]: key is optional. Avoid NPE
----
> Camel:Kafka NPE when trying to consume messages from kafka server
> -----------------------------------------------------------------
>
> Key: CAMEL-7306
> URL: https://issues.apache.org/jira/browse/CAMEL-7306
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 2.13.1
> Environment: Windows, Java 1.6
> Reporter: Ilya Melnik
> Assignee: Grzegorz Grzybek
> Fix For: 2.13.1, 2.14.0
>
> Attachments: KafkaConsumer.zip
>
>
> I've installed and configured zookeeper and kafka servers using apache quick
> start guide on ubuntu running in vmware.
> Launch producer for already created topic "page_visits" and try to consume
> messages and nothing happens.
> Trying to debug KafkaEndpoint i can see that server doesn't send me any key
> (KafkaConstants.KEY) so here:
> message.setHeader(KafkaConstants.KEY, new String(mm.key()));
> i got NPE and it silently fails.
--
This message was sent by Atlassian JIRA
(v6.2#6252)