Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E0216200D56 for ; Tue, 12 Dec 2017 11:28:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DEDD1160C0F; Tue, 12 Dec 2017 10:28:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F07F3160BE7 for ; Tue, 12 Dec 2017 11:28:07 +0100 (CET) Received: (qmail 83972 invoked by uid 500); 12 Dec 2017 10:28:07 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 83963 invoked by uid 99); 12 Dec 2017 10:28:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2017 10:28:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B4714C34D0 for ; Tue, 12 Dec 2017 10:28:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Tw5_x1XDYmEZ for ; Tue, 12 Dec 2017 10:28:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4FBCD5FB5F for ; Tue, 12 Dec 2017 10:28:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2EAE4E105A for ; Tue, 12 Dec 2017 10:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3AE1B212FF for ; Tue, 12 Dec 2017 10:28:00 +0000 (UTC) Date: Tue, 12 Dec 2017 10:28:00 +0000 (UTC) From: "Dmitry Volodin (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CAMEL-12076) Camel Kafka producer: Specified topic is ignored ("No topic key set" error) when KafkaConfiguration is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 12 Dec 2017 10:28:09 -0000 [ https://issues.apache.org/jira/browse/CAMEL-12076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Volodin reassigned CAMEL-12076: -------------------------------------- Assignee: Dmitry Volodin > Camel Kafka producer: Specified topic is ignored ("No topic key set" error) when KafkaConfiguration is used > ----------------------------------------------------------------------------------------------------------- > > Key: CAMEL-12076 > URL: https://issues.apache.org/jira/browse/CAMEL-12076 > Project: Camel > Issue Type: Bug > Components: camel-kafka > Affects Versions: 2.20.1 > Reporter: Igor Lavrentjev > Assignee: Dmitry Volodin > > Specified topic is ignored ("No topic key set" error) when KafkaConfiguration is used. When topic is set inside KafkaConfiguration then no error occurs. > 1.5.8.RELEASE > 2.20.1 > {code} > from("direct:sendToKafka") > .setBody(constant("Message from Camel to Kafka")) > .setHeader(KafkaConstants.KEY, constant("Camel")) > .to("kafka:TESTTOPIC?configuration=#kafkaConfiguration"); > {code} > {code} > 2017-12-11 14:16:35.466 ERROR 12048 --- [ad #1 - WireTap] CamelRouter : Exchange[ExchangePattern: InOnly, BodyType: String, Body: Message from Camel to Kafka, CaughtExceptionType: org.apache.camel.CamelExchangeException, CaughtExcept > ionMessage: No topic key set. Exchange[ID-5CG7383K6H00BA-1512994577303-0-3], StackTrace: org.apache.camel.CamelExchangeException: No topic key set. Exchange[ID-5CG7383K6H00BA-1512994577303-0-3] > at org.apache.camel.component.kafka.KafkaProducer.createRecorder(KafkaProducer.java:149) > at org.apache.camel.component.kafka.KafkaProducer.process(KafkaProducer.java:251) > at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) > at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) > at org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:132) > at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:445) > at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:127) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) > at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97) > at org.apache.camel.processor.WireTapProcessor$1.call(WireTapProcessor.java:158) > at org.apache.camel.processor.WireTapProcessor$1.call(WireTapProcessor.java:153) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > ] > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)