Hi @Stefano I've followed everything but is getting this error Exchange publication failed: Unexpected error while processing the publication: Unable to execute mojo: Artifact could not be resolved. do you know how I can fix this?
Hi Setefano, Thank you for the video. Its really helping but I am facing error while publishing the json logger. can you help me. below is the error. [ERROR] Failed to execute goal org.mule.tools.maven:exchange-mule-maven-plugin:0.0.23:exchange-pre-deploy (validate) on project json-logger: Exchange publication failed: Unexpected error while processing the publication: Unable to execute mojo: Artifact could not be resolved. -> [Help 1]
Hi, This config not working for external destination i.e. JMS based. Getting below error: at org.mule.extension.jsonlogger.internal.destinations.JMSDestination.sendToExternalDestination(JMSDestination.java:85) 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) at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125) at java.base/java.lang.Thread.run(Thread.java:840) ERROR 2024-05-14 17:37:51,829 [Thread-12] [processor: ; event: ] org.mule.extension.jsonlogger.internal.destinations.JMSDestination: Error: Parameter does not exist in any group: messageBuilder
Clear explanation. Thanks, Stefano!
Hi @Stefano
I've followed everything but is getting this error
Exchange publication failed: Unexpected error while processing the publication: Unable to execute mojo: Artifact could not be resolved.
do you know how I can fix this?
same error i got did you solved?
@@praveen2795 Hi I am facing same error. Were you able to resolve it.
Hi I am facing same error. Were you able to resolve it.
@@muhammadusama457 yes I solved it... Try to publish it from studio
@@praveen2795 I am not aware how to do it. can u send me some guide or some steps which I can follow to do it.
Hi Setefano,
Thank you for the video. Its really helping but I am facing error while publishing the json logger. can you help me. below is the error.
[ERROR] Failed to execute goal org.mule.tools.maven:exchange-mule-maven-plugin:0.0.23:exchange-pre-deploy (validate) on project json-logger: Exchange publication failed: Unexpected error while processing the publication: Unable to execute mojo: Artifact could not be resolved. -> [Help 1]
Kudos to Matthias 👏
Hi,
This config not working for external destination i.e. JMS based. Getting below error:
at org.mule.extension.jsonlogger.internal.destinations.JMSDestination.sendToExternalDestination(JMSDestination.java:85)
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)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125)
at java.base/java.lang.Thread.run(Thread.java:840)
ERROR 2024-05-14 17:37:51,829 [Thread-12] [processor: ; event: ] org.mule.extension.jsonlogger.internal.destinations.JMSDestination: Error: Parameter does not exist in any group: messageBuilder
This is the code :
try {
@SuppressWarnings("deprecation")
OperationParameters parameters = DefaultOperationParameters.builder().configName(this.jmsConfigurationRef)
.addParameter("destination", this.queueDestination)
.addParameter("messageBuilder", JmsMessageBuilder.class, DefaultOperationParameters.builder()
.addParameter("body", new TypedValue(finalLog, JSON_STRING))
.addParameter("jmsxProperties", new JmsxProperties())
.addParameter("properties", new HashMap()))
.build();
extensionsClient.executeAsync("JMS", "publish", parameters);
} catch (Exception e) {
LOGGER.error("Error: " + e.getMessage());
e.printStackTrace();
}
Even OperationParameters class and extensionsClient.executeAsync method are showing deprecated.