代码拉取完成,页面将自动刷新
启动mqttDriver确实会爆下面这个错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mqttInbound' defined in class path resource [io/github/pnoker/driver/config/MqttConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.core.MessageProducer]: Factory method 'mqttInbound' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mqttClientFactory' defined in class path resource [io/github/pnoker/driver/config/MqttConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.mqtt.core.MqttPahoClientFactory]: Factory method 'mqttClientFactory' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getMqttConnectOptions' defined in class path resource [io/github/pnoker/driver/config/MqttConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.eclipse.paho.client.mqttv3.MqttConnectOptions]: Factory method 'getMqttConnectOptions' threw exception; nested exception is java.lang.BootstrapMethodError: java.lang.SecurityException: class "org.bouncycastle.openssl.PasswordFinder"'s signer information does not match signer information of other classes in the same package
会的大佬,能帮忙看下什么问题??
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
解决办法如下:
表明是jar包冲突,解决办法:
第一步:连按2次shift键搜索PasswordFinder类所属的jar包信息(包名信息:bcprov+group信息:bouncycastle)
第二步:idea安装maven helper插件,利用此插件找到并排除冲突的jar包
输入包名信息:bcprov或者group信息:bouncycastle,来搜索冲突的jar包,选择All Dependency as list
第三步:在最右边的框里面exclude掉bcpkix
第四步:重启MqttDeriver这个应用,发现没有报class 'PasswordFinder' 错误了
登录 后才可以发表评论