[ 
https://issues.apache.org/jira/browse/KAFKA-9717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17121152#comment-17121152
 ] 

Chia-Ping Tsai commented on KAFKA-9717:
---------------------------------------

[~Bataitis] Have you tried the newer kafka?

> KafkaStreams#metrics() method randomly throws NullPointerException
> ------------------------------------------------------------------
>
>                 Key: KAFKA-9717
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9717
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 2.2.0
>         Environment: Kubernetes
>            Reporter: Zygimantas
>            Priority: Major
>
> We have implemented monitoring tool which monitors Kafka Streams application 
> and regularly (every 20s) calls KafkaStreams.metrics() method in that 
> application. But metrics() method randomly throws NullPointerException. It 
> happens almost every time after application startup, but may also happen at 
> random points in time after running application for few hours.
> Stacktrace:
> {code:java}
> java.lang.NullPointerException
>  at 
> org.apache.kafka.streams.processor.internals.StreamThread.producerMetrics(StreamThread.java:1320)
>  at org.apache.kafka.streams.KafkaStreams.metrics(KafkaStreams.java:379)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to