From jira-return-11351-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Fri Mar 30 09:27:08 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0BB64180647 for ; Fri, 30 Mar 2018 09:27:07 +0200 (CEST) Received: (qmail 9648 invoked by uid 500); 30 Mar 2018 07:27:07 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 9637 invoked by uid 99); 30 Mar 2018 07:27:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2018 07:27:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8E8871A1776 for ; Fri, 30 Mar 2018 07:27:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 004dyNEM3B3V for ; Fri, 30 Mar 2018 07:27:02 +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 BC6105F5B0 for ; Fri, 30 Mar 2018 07:27:01 +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 9DC6FE0217 for ; Fri, 30 Mar 2018 07:27:00 +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 20F17255F1 for ; Fri, 30 Mar 2018 07:27:00 +0000 (UTC) Date: Fri, 30 Mar 2018 07:27:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-6592) NullPointerException thrown when executing ConsoleCosumer with deserializer set to `WindowedDeserializer` MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-6592?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1642= 0252#comment-16420252 ]=20 ASF GitHub Bot commented on KAFKA-6592: --------------------------------------- huxihx opened a new pull request #4797: KAFKA-6592: ConsoleConsumer should = support WindowedSerdes URL: https://github.com/apache/kafka/pull/4797 =20 =20 https://issues.apache.org/jira/browse/KAFKA-6592 =20 =20 Have Console consumer support TimeWindowedDeserializer/SessionWindowedDe= serializer by adding new parameters `default.windowed.key.serde.inner` and = `default.windowed.value.serde.inner`. =20 An example would be like this: `... --property value.deserializer=3Dorg.apache.kafka.common.serializati= on.StringDeserializer --property key.deserializer=3Dorg.apache.kafka.stream= s.kstream.TimeWindowedDeserializer --default.windowed.key.serde.inner org.a= pache.kafka.common.serialization.Serdes\$StringSerde ` =20 When key/value.deserializer is not TimeWindowedDeserializer or SessionWi= ndowedDeserializer, specifying `default.windowed.key.serde.inner` or `defau= lt.windowed.value.serde.inner` takes no effect. =20 *More detailed description of your change, if necessary. The PR title and PR message become the squashed commit message, so use a separate comment to ping reviewers.* =20 *Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.* =20 ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation=20 - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) =20 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > NullPointerException thrown when executing ConsoleCosumer with deserializ= er set to `WindowedDeserializer` > -------------------------------------------------------------------------= -------------------------------- > > Key: KAFKA-6592 > URL: https://issues.apache.org/jira/browse/KAFKA-6592 > Project: Kafka > Issue Type: Bug > Components: streams, tools > Affects Versions: 1.0.0 > Reporter: huxihx > Assignee: huxihx > Priority: Minor > > When reading streams app's output topic with=C2=A0WindowedDeserializer de= serilizer using kafka-console-consumer.sh,=C2=A0NullPointerException was th= rown due to the fact that the inner deserializer was not initialized since = there is no place in ConsoleConsumer to set this class. > Complete stack trace is shown below: > {code:java} > [2018-02-26 14:56:04,736] ERROR Unknown error when running consumer:=C2= =A0 (kafka.tools.ConsoleConsumer$) > java.lang.NullPointerException > at org.apache.kafka.streams.kstream.internals.WindowedDeserializer.deseri= alize(WindowedDeserializer.java:89) > at org.apache.kafka.streams.kstream.internals.WindowedDeserializer.deseri= alize(WindowedDeserializer.java:35) > at kafka.tools.DefaultMessageFormatter.$anonfun$writeTo$2(ConsoleConsumer= .scala:544) > at scala.Option.map(Option.scala:146) > at kafka.tools.DefaultMessageFormatter.write$1(ConsoleConsumer.scala:545) > at kafka.tools.DefaultMessageFormatter.writeTo(ConsoleConsumer.scala:560) > at kafka.tools.ConsoleConsumer$.process(ConsoleConsumer.scala:147) > at kafka.tools.ConsoleConsumer$.run(ConsoleConsumer.scala:84) > at kafka.tools.ConsoleConsumer$.main(ConsoleConsumer.scala:54) > at kafka.tools.ConsoleConsumer.main(ConsoleConsumer.scala) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)