You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2024/05/03 11:52:00 UTC
[jira] [Assigned] (SM-5706) Micrometer should be part of the import packages of spring-jms 6.1
[ https://issues.apache.org/jira/browse/SM-5706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned SM-5706:
----------------------------------------
Assignee: Jean-Baptiste Onofré
> Micrometer should be part of the import packages of spring-jms 6.1
> ------------------------------------------------------------------
>
> Key: SM-5706
> URL: https://issues.apache.org/jira/browse/SM-5706
> Project: ServiceMix
> Issue Type: Bug
> Components: bundles
> Reporter: Nicolas Filotto
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> While using the SMX bundle 6.1.5_1 of Spring JMS, we faced some NoClassDefFoundError because Micrometer is not part of the import packages but it should be according to the [pom file |https://central.sonatype.com/artifact/org.springframework/spring-jms/6.1.5] and [source code|https://github.com/spring-projects/spring-framework/blob/v6.1.5/spring-jms/src/main/java/org/springframework/jms/core/JmsTemplate.java#L19-L20]
> Kind of exceptions that we get:
> {noformat}
> 22:14:47.185 WARN [Camel (camel-26) thread #47 - JmsConsumer[yourQueueName]] Setup of JMS message listener invoker failed for destination 'yourQueueName' - trying to recover. Cause: io/micrometer/observation/Observation
> java.lang.NoClassDefFoundError: io/micrometer/observation/Observation
> at org.springframework.jms.listener.AbstractMessageListenerContainer.createObservation(AbstractMessageListenerContainer.java:693) ~[!/:6.1.5]
> at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:320) ~[!/:6.1.5]
> at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:270) ~[!/:6.1.5]
> at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1257) ~[!/:6.1.5]
> at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1247) ~[!/:6.1.5]
> at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1140) [!/:6.1.5]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
> at java.lang.Thread.run(Thread.java:833) [?:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)