无法使用Camel设置在Quarkus本地构建中传递ActiveMQ配置

yvfmudvl  于 2022-11-07  发布在  Apache
关注(0)|答案(1)|浏览(142)

在Quarkus本地构建和Camel设置中传递代理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.
bqf10yzr

bqf10yzr1#

我找到了这个问题的根本原因。这与Quarkus本地构建和反射有关。在启动时,框架尝试使用反射设置属性。在将以下内容添加到reflectconfig.json中后,一切都按预期工作。

"name": "org.apache.activemq.command.ConsumerInfo",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true

"name": "org.apache.activemq.transport.failover.FailoverTransport",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true

"name": "sun.security.ssl.SSLSocketImpl",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true

相关问题