org.apache.kafka.common.KafkaException

Failed to construct kafka producer

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web38

  • via Google Groups by iman teimoornegad, 1 week ago
    Failed to construct kafka producer
  • Failed to construct kafka producer
  • Failed to construct kafka producer
  • Stack trace

    • org.apache.kafka.common.KafkaException: Failed to construct kafka producer at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:320) at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:180) at com.example.ProducerRunnable.<init>(ProducerRunnable.java:44) at com.example.KafkaNativeSample.createMessageProducer(KafkaNativeSample.java:113) at com.example.KafkaNativeSample.main(KafkaNativeSample.java:65) Caused by: org.apache.kafka.common.KafkaException: org.apache.kafka.common.KafkaException: java.io.FileNotFoundException: at org.apache.kafka.common.network.SSLChannelBuilder.configure(SSLChannelBuilder.java:45) at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:49) at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:79) at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:270) ... 4 more Caused by: org.apache.kafka.common.KafkaException: java.io.FileNotFoundException: at org.apache.kafka.common.security.ssl.SSLFactory.configure(SSLFactory.java:99) at org.apache.kafka.common.network.SSLChannelBuilder.configure(SSLChannelBuilder.java:41) ... 7 more Caused by: java.io.FileNotFoundException: at java.io.FileInputStream.<init>(FileInputStream.java:156) at java.io.FileInputStream.<init>(FileInputStream.java:111) at org.apache.kafka.common.security.ssl.SSLFactory$SecurityStore.load(SSLFactory.java:201) at org.apache.kafka.common.security.ssl.SSLFactory$SecurityStore.access$000(SSLFactory.java:186) at org.apache.kafka.common.security.ssl.SSLFactory.createSSLContext(SSLFactory.java:123) at org.apache.kafka.common.security.ssl.SSLFactory.configure(SSLFactory.java:97) ... 8 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    8 times, 2 days ago
    9 times, 2 days ago
    15 times, 1 week ago
    3 times, 1 week ago
    154 more bugmates