无法通过骆驼设置中的quarkus本机构建中的ActiveMQ配置
在Quarkus Native Build和Camel Setup中传递经纪人URL中的ActiveMQ属性时,我会遇到以下错误。
javax.jms.JMSException: Could not create Transport. Reason: javax.jms.JMSException: Could not create Transport. Reason: java.lang.IllegalArgumentException: Invalid connect parameters: {transport.initialReconnectDelay=1000, transport.timeout=5000, transport.maxReconnectAttempts=5}
Invalid socket parameters: {enabledProtocols=TLSv1.2}, continuing to retry.
I am getting the following errors while passing ActiveMQ properties in the broker URL in Quarkus native build and Camel setup.
javax.jms.JMSException: Could not create Transport. Reason: javax.jms.JMSException: Could not create Transport. Reason: java.lang.IllegalArgumentException: Invalid connect parameters: {transport.initialReconnectDelay=1000, transport.timeout=5000, transport.maxReconnectAttempts=5}
Invalid socket parameters: {enabledProtocols=TLSv1.2}, continuing to retry.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现了这个问题的根本原因。这与Quarkus Native的构建和反思有关。在启动时,该框架试图使用反射设置属性。将以下内容添加到ReflectConfig.json之后,一切都按预期工作。
I found the root cause of this issue. This is related to Quarkus native build and reflection. At startup, the framework tries to set properties using reflection. After adding the following into reflectconfig.json, everything is working as expected.
对于那些有兴趣使用Quarkus本机模式使用Vanilla ActiveMQ 5客户端的人,例如,
配置工作:
SRC/MAIN/RESOSDER/REFLECTION-CONFIG.JSON
/MAIN/MAIN/RESOSDER/RESOSDER CONFIG.JSON SRC/MAIN/RESISTR/RESISTR
SRC 。特性
For those who are interested in using vanilla Activemq 5 client with quarkus native mode, e.g.
following configuration works:
src/main/resources/reflection-config.json
src/main/resources/resources-config.json
src/main/resources/application.properties