You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/06/28 10:54:04 UTC
[jira] [Resolved] (CAMEL-8908) Kafka: Adapter causes Camel
NotifyBuilder to throw a NullPointer exception
[ https://issues.apache.org/jira/browse/CAMEL-8908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-8908.
--------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Fix Version/s: 2.14.4
2.15.3
2.16.0
Thanks for the patch
> Kafka: Adapter causes Camel NotifyBuilder to throw a NullPointer exception
> --------------------------------------------------------------------------
>
> Key: CAMEL-8908
> URL: https://issues.apache.org/jira/browse/CAMEL-8908
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 2.15.2
> Reporter: RAHUL JAIN
> Assignee: Claus Ibsen
> Fix For: 2.16.0, 2.15.3, 2.14.4
>
> Attachments: CAMEL-8908.diff
>
>
> Camel-kafka component (2.15.1) gives a NullPointer exception in NotifyBuilder causing our assertions to fail.
> The error seems to be due to the fact that the Exchange created by the component has fromEndPoint set to null.
> In KafkaEndpoint.java
> public Exchange createKafkaExchange(MessageAndMetadata<byte[], byte[]> mm) {
> Exchange exchange = new DefaultExchange(getCamelContext(), getExchangePattern());
> I believe this should be instantiated as
> Exchange exchange = new DefaultExchange(this, getExchangePattern());
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)