[英]How to resolve the error: java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: io/vertx/core/Promise
i have created a maven project where i wrote code for kafka consumer to retrieve the messages from kafka server. 我创建了一个Maven项目,在该项目中,我为kafka使用者编写了代码,以从kafka服务器检索消息。 i am using vertx framework with vertx-kafka-client dependency.
我正在使用具有vertx-kafka-client依赖关系的vertx框架。 According to vertx kafka docs ( https://vertx.io/docs/vertx-kafka-client/java/#_using_the_vert_x_kafka_client ), i have setup the code and while running the program i am getting error as java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: io/vertx/core/Promise
根据vertx kafka docs( https://vertx.io/docs/vertx-kafka-client/java/#_using_the_vert_x_kafka_client ),我已经设置了代码,并且在运行程序时遇到java.lang.BootstrapMethodError错误:java .lang.NoClassDefFoundError:io / vertx / core / Promise
The solution to this error is 解决此错误的方法是
when we import projects to IDE, sometimes we forget to update the project and directly running it will cause the error. 当我们将项目导入IDE时,有时我们忘记更新项目,而直接运行它会导致错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.