MuleSoft - JSON Logger upgrade to Java17

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 13

  • @jacekbiaecki8076
    @jacekbiaecki8076 3 місяці тому

    Clear explanation. Thanks, Stefano!

  • @wanzssen
    @wanzssen 2 місяці тому +2

    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?

    • @praveen2795
      @praveen2795 26 днів тому +2

      same error i got did you solved?

    • @muhammadusama457
      @muhammadusama457 10 днів тому

      @@praveen2795 Hi I am facing same error. Were you able to resolve it.

    • @muhammadusama457
      @muhammadusama457 10 днів тому

      Hi I am facing same error. Were you able to resolve it.

    • @praveen2795
      @praveen2795 10 днів тому +1

      @@muhammadusama457 yes I solved it... Try to publish it from studio

    • @muhammadusama457
      @muhammadusama457 10 днів тому +1

      @@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.

  • @muhammadusama457
    @muhammadusama457 10 днів тому

    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]

  • @janvermaeten3289
    @janvermaeten3289 7 місяців тому

    Kudos to Matthias 👏

  • @rahul-virani
    @rahul-virani 7 місяців тому

    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

    • @rahul-virani
      @rahul-virani 7 місяців тому

      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();
      }

    • @rahul-virani
      @rahul-virani 7 місяців тому

      Even OperationParameters class and extensionsClient.executeAsync method are showing deprecated.