IBM MQ 中的 AMS - Spring Boot 应用程序 - 'org.bouncycastle.asn1.ASN1Primitive org.bouncycastle.asn1.ASN1TaggedObject.getObject()'

问题描述 投票:0回答:1

我们正在尝试从启用了 AMS 的 Spring Boot 应用程序连接 IBM MQ。但我们看到消息被消耗,并且在 Spring Boot 应用程序级别,在取消保护期间抛出异常。 Bouncy castle 罐子是兼容的,几天前同样的应用程序也可以工作。下面是错误的堆栈跟踪。有什么见解可以对这个异常进行排序吗?感谢您提前抽出时间

WARN  org.apache.camel.component.jms.DefaultJmsMessageListenerContainer - Setup of JMS message listener invoker failed for destination 'IBM.MQ' -
trying to recover. Cause: 'org.bouncycastle.asn1.ASN1Primitive org.bouncycastle.asn1.ASN1TaggedObject.getObject()'
java.lang.NoSuchMethodError: 'org.bouncycastle.asn1.ASN1Primitive org.bouncycastle.asn1.ASN1TaggedObject.getObject()'
at org.bouncycastle.asn1.cms.ContentInfo.<init>(Unknown Source) ~[bcprov-jdk15on.jar:1.68.0]
at org.bouncycastle.asn1.cms.ContentInfo.getInstance(Unknown Source) ~[bcprov-jdk15on.jar:1.68.0]
at org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source) ~[bcpkix-jdk15on.jar:1.68.00.0]
at org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source) ~[bcpkix-jdk15on.jar:1.68.00.0]
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source) ~[bcpkix-jdk15on.jar:1.68.00.0]
at com.ibm.mq.ese.prot.MessageProtectionBCImpl.unprotect(MessageProtectionBCImpl.java:742) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.prot.MessageProtectionWrapper.unprotect(MessageProtectionWrapper.java:99) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.intercept.JmqiGetInterceptorImpl.unprotect(JmqiGetInterceptorImpl.java:2264) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.intercept.JmqiGetInterceptorImpl.process(JmqiGetInterceptorImpl.java:1284) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.intercept.JmqiGetInterceptorImpl.unprotectMessage(JmqiGetInterceptorImpl.java:661) ~[com.ibm.mq.jmqi.jar:9.2.2.0 -p922-L210310.DE]
at com.ibm.mq.ese.intercept.JmqiGetInterceptorImpl.afterGet(JmqiGetInterceptorImpl.java:512) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.intercept.JmqiGetInterceptorImpl.afterJmqiGet(JmqiGetInterceptorImpl.java:222) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.jmqiGet(InterceptedJmqiImpl.java:1377) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.ese.jmqi.ESEJMQI.jmqiGet(ESEJMQI.java:602) ~[com.ibm.mq.jmqi.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.msg.client.wmq.internal.WMQConsumerShadow.getMsg(WMQConsumerShadow.java:1795) ~[com.ibm.mqjms.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.msg.client.wmq.internal.WMQSyncConsumerShadow.receiveInternal(WMQSyncConsumerShadow.java:228) ~[com.ibm.mqjms.jar:9.2.2.0- p922-L210310.DE]
at com.ibm.msg.client.wmq.internal.WMQConsumerShadow.receive(WMQConsumerShadow.java:1461) ~[com.ibm.mqjms.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.msg.client.wmq.internal.WMQMessageConsumer.receive(WMQMessageConsumer.java:674) ~[com.ibm.mqjms.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.msg.client.jms.internal.JmsMessageConsumerImpl.receiveInboundMessage(JmsMessageConsumerImpl.java:1051) ~[com.ibm.mqjms.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.msg.client.jms.internal.JmsMessageConsumerImpl.receive(JmsMessageConsumerImpl.java:667) ~[com.ibm.mqjms.jar:9.2.2.0 - p922-L210310.DE]
at com.ibm.mq.jms.MQMessageConsumer.receive(MQMessageConsumer.java:209) ~[com.ibm.mqjms.jar:9.2.2.0 - p922-L210310.DE]
at org.springframework.jms.support.destination.JmsDestinationAccessor.receiveFromConsumer(JmsDestinationAccessor.java:132) ~[spring-jms-5.3.27.jar:5.3.27]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveMessage(AbstractPollingMessageListenerContainer.java:431) ~[spring-jms-5.3.27.jar:5.3.27]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:316) ~[spring-jms-5.3.27.jar:5.3.27]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:270) ~[spring-jms-5.3.27.jar:5.3.27]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1237) ~[spring-jms-5.3.27.jar:5.3.27]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1227) ~[spring-jms-5.3.27.jar:5.3.27]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1120) [spring-jms-5.3.27.jar:5.3.27]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]

我们尝试升级充气城堡罐子来对此进行排序,但这尚未排序。我们还需要有关在哪里下载所有 ibm mq 兼容依赖项的信息。

spring-boot maven websphere ibm-mq
1个回答
0
投票

如果您基于 IBM MQ JMS Spring Boot Starter,那么所有必需的库都将被引入。当前最新版本是 3.3.3

即。将以下内容添加到您的

pom.xml

中的依赖项列表中
<dependency>
  <groupId>com.ibm.mq</groupId>
  <artifactId>mq-jms-spring-boot-starter</artifactId>
  <version>3.2.1</version>
</dependency>
© www.soinside.com 2019 - 2024. All rights reserved.