java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Apache's JIRA Issue Tracker by Ashish K Singh, 1 year ago
KafkaConsumer is not safe for multi-threaded access
via Google Groups by Uday Menon, 4 months ago
via Google Groups by Unknown author, 10 months ago
KafkaConsumer is not safe for multi-threaded access
via Google Groups by Saravanan Tirugnanum, 1 year ago
KafkaConsumer is not safe for multi-threaded access
via GitHub by thanhtien522
, 10 months ago
KafkaConsumer is not safe for multi-threaded access
via GitHub by adamdubiel
, 1 day ago
KafkaConsumer is not safe for multi-threaded access
java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access
at org.apache.kafka.clients.consumer.KafkaConsumer.acquire(KafkaConsumer.java:1169)
at kafka.consumer.NewShinyConsumer.close(BaseConsumer.scala:50)
at kafka.tools.ConsoleConsumer$$anon$1.run(ConsoleConsumer.scala:74)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.