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

JSON Logger incompatible with Mule.Maven.Plugin.Version 3.6.3 #38

@kdipippo

Description

@kdipippo

Anypoint Studio released a recent update as 7.13. After updating my workspace - which also prompts for mule.maven.plugin.version to be upgraded to 3.6.3 - I am consistently encountering the below error when running projects that contain the JSON Logger component (we have 2.0.1 in our Exchange):

[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.6.3:process-classes (default-process-classes) on project eee-sapi-engineering-issue: Execution default-process-classes of goal org.mule.tools.maven:mule-maven-plugin:3.6.3:process-classes failed: org.mule.tooling.api.ToolingException: org.mule.runtime.extension.api.exception.IllegalModelDefinitionException: Extension 'JSON Logger' has definition errors:
[ERROR] ERRORS:
[ERROR] 	* Operation 'logger' requires a configuration of type 'org.mule.extension.jsonlogger.internal.JsonloggerConfiguration'. However, the operation is reachable from configuration 'config' of incompatible type 'org.mule.extension.jsonlogger.internal.JsonloggerConfiguration$$EnhancerByCGLIB$$1a2eda8c'.
[ERROR] 	* Operation 'logger' requires a configuration of type 'org.mule.extension.jsonlogger.internal.JsonloggerConfiguration'. However, the operation is reachable from configuration 'config' of incompatible type 'org.mule.extension.jsonlogger.internal.JsonloggerConfiguration$$EnhancerByCGLIB$$1a2eda8c'.
[ERROR] 

My best guess is there's some form of incompatibility with the new version and the parameters of this line. I am unsure of what this error implies is missing or causing the issue.

public void logger(@ParameterGroup(name = "Logger") @Expression(value = NOT_SUPPORTED) LoggerProcessor loggerProcessor,

EDIT: after additional testing, we concluded it's not an issue with the Anypoint Studio instance but instead the mule.maven.plugin upgrade that accompanies the update. This library works fine with 3.5.4 of the plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions