Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

unable to send logs to anypoint MQ which is created under sub business group #59

Open
aleemkh opened this issue Aug 4, 2023 · 0 comments

Comments

@aleemkh
Copy link

aleemkh commented Aug 4, 2023

Hi, we are unable to send data to anypoint MQ , we are passing the amq details as shown below.

url: "https://mq-eu-west-2.anypoint.mulesoft.com/api/v1"
clientId: "eeemasked***2475e3f2649"
logger-queue: "/organizations/18d726bc-masked-23ffaf9bdd34/environments/70839385-2b5b-masked-4cbb-99c9-bdcf6ace3f39/test-queue"

we get this error
Exception in thread "Thread-14" java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/springframework/util/backoff/ExponentialBackOff
at com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
at com.lmax.disruptor.dsl.ExceptionHandlerWrapper.handleEventException(ExceptionHandlerWrapper.java:18)
at com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:187)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.NoClassDefFoundError: org/springframework/util/backoff/ExponentialBackOff
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.processWithRetry(AbstractCourierRestClient.java:388)
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.lambda$send$2(AbstractCourierRestClient.java:190)
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.withAccessToken(AbstractCourierRestClient.java:301)
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.send(AbstractCourierRestClient.java:189)
at com.mulesoft.mq.restclient.impl.DefaultDestination.send(DefaultDestination.java:40)
at com.mulesoft.mq.restclient.impl.DefaultDestination.send(DefaultDestination.java:23)
at org.mule.extension.jsonlogger.internal.destinations.AMQDestination.sendToExternalDestination(AMQDestination.java:122)
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.flushLogs(LogEventHandler.java:47)
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.flushAllLogs(LogEventHandler.java:59)
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.onEvent(LogEventHandler.java:40)
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.onEvent(LogEventHandler.java:14)
at com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:168)
... 2 more
Caused by: org.mule.runtime.module.artifact.api.classloader.exception.CompositeClassNotFoundException: Cannot load class 'org.springframework.util.backoff.ExponentialBackOff': [
org.springframework.util.backoff.ExponentialBackOff,
Cannot load class 'org.springframework.util.backoff.ExponentialBackOff': [
Class 'org.springframework.util.backoff.ExponentialBackOff' has no package mapping for region 'domain/default/app/anypointmq-test-api'.,
Cannot load class 'org.springframework.util.backoff.ExponentialBackOff': [
Class 'org.springframework.util.backoff.ExponentialBackOff' has no package mapping for region '/domain/default'.,
Class 'org.springframework.util.backoff.ExponentialBackOff' not found in classloader for artifact 'container'.]]]
Caused by: java.lang.ClassNotFoundException: org.springframework.util.backoff.ExponentialBackOff
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
ERROR 2023-08-04 15:57:02,891 [Thread-14] [processor: ; event: ] com.lmax.disruptor.FatalExceptionHandler: Exception processing: 0 org.mule.extension.jsonlogger.internal.destinations.events.LogEvent@3694b314
java.lang.NoClassDefFoundError: org/springframework/util/backoff/ExponentialBackOff
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.processWithRetry(AbstractCourierRestClient.java:388) ~[anypoint-mq-rest-client-3.1.0.jar:?]
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.lambda$send$2(AbstractCourierRestClient.java:190) ~[anypoint-mq-rest-client-3.1.0.jar:?]
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.withAccessToken(AbstractCourierRestClient.java:301) ~[anypoint-mq-rest-client-3.1.0.jar:?]
at com.mulesoft.mq.restclient.internal.client.AbstractCourierRestClient.send(AbstractCourierRestClient.java:189) ~[anypoint-mq-rest-client-3.1.0.jar:?]
at com.mulesoft.mq.restclient.impl.DefaultDestination.send(DefaultDestination.java:40) ~[anypoint-mq-rest-client-3.1.0.jar:?]
at com.mulesoft.mq.restclient.impl.DefaultDestination.send(DefaultDestination.java:23) ~[anypoint-mq-rest-client-3.1.0.jar:?]
at org.mule.extension.jsonlogger.internal.destinations.AMQDestination.sendToExternalDestination(AMQDestination.java:122) ~[json-logger-2.1.0-mule-plugin.jar:?]
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.flushLogs(LogEventHandler.java:47) ~[?:?]
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.flushAllLogs(LogEventHandler.java:59) ~[?:?]
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.onEvent(LogEventHandler.java:40) ~[?:?]
at org.mule.extension.jsonlogger.internal.destinations.events.LogEventHandler.onEvent(LogEventHandler.java:14) ~[?:?]
at com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:168) [disruptor-3.4.2.jar:?]
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125) [disruptor-3.4.2.jar:?]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_345]
Caused by: org.mule.runtime.module.artifact.api.classloader.exception.CompositeClassNotFoundException: Cannot load class 'org.springframework.util.backoff.ExponentialBackOff': [
org.springframework.util.backoff.ExponentialBackOff,
Cannot load class 'org.springframework.util.backoff.ExponentialBackOff': [
Class 'org.springframework.util.backoff.ExponentialBackOff' has no package mapping for region 'domain/default/app/anypointmq-test-api'.,
Cannot load class 'org.springframework.util.backoff.ExponentialBackOff': [
Class 'org.springframework.util.backoff.ExponentialBackOff' has no package mapping for region '/domain/default'.,
Class 'org.springframework.util.backoff.ExponentialBackOff' not found in classloader for artifact 'container'.]]]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant