springboot项目中,启动失败,报错
报错信息如下:文章来源:https://www.toymoban.com/news/detail-745082.html
org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.<init(KafkaProducer.java:432)
at org.apache.kafka.clients.producer.KafkaProducer.<init(KafkaProducer.java:298)
at oracle.fs.framework.core.transports.event.kafka.KafkaFactory.createProducer(KafkaFactory.java:29)
at oracle.fs.framework.core.transports.event.kafka.stream.KafkaStreamEventTransport.start(KafkaStreamEventTransport.java:165)
at oracle.fs.framework.core.service.TransportLifecycleHandler.start(TransportLifecycleHandler.java:57)
at oracle.fs.framework.core.service.AbstractService.start(AbstractService.java:400)
at oracle.fs.foundation.bootstrap.Bootstrap.startDomain(Bootstrap.java:555)
at oracle.fs.foundation.bootstrap.Bootstrap.startDomain(Bootstrap.java:188)
at oracle.fs.foundation.bootstrap.Bootstrap.startDomain(Bootstrap.java:147)
at oracle.fs.foundation.bootstrap.Bootstrap.startDomain(Bootstrap.java:102)
at oracle.fs.service.driver.DomainServiceDriver.startService(DomainServiceDriver.java:24)
at oracle.fs.service.driver.DomainServiceDriver.main(DomainServiceDriver.java:19)
Caused by: org.apache.kafka.common.config.ConfigException: No resolvable bootstrap urls given in bootstrap.servers
at org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:88)
at org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:47)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:407)
在网上找了很久的解决方案,也没找到个所以然,可能是我能力不足没理解到,后来我尝试clean下项目,竟然报错了
提示我pom.xml中有错误,我看了看,唯一有可能的是新导入的一个依赖去掉了版本号,我加上版本号后又重新clean下,成功了,,
然后,我重启项目,,,竟然好了,那为啥报个这个错误,,,害我解决了好久好久
我的是因为这个问题,如果你也遇到这样的错误,仅供参考,应该还有其他原因会导致这个错误!!文章来源地址https://www.toymoban.com/news/detail-745082.html
到了这里,关于Failed to construct kafka producer at org.apache.kafka.clients.producer.KafkaProducer的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!