[
https://issues.apache.org/jira/browse/SM-5706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Filotto updated SM-5706:
--------------------------------
Description:
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}
was:While using the SMX bundle 6.1.5_1 of Spring JMS, we faced some CNFE
because Micrometer is not part of the import packages but it should 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]
> 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
> 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)