Skip to content
This repository has been 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

Open
kdipippo opened this issue Aug 5, 2022 · 1 comment
Open

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

kdipippo opened this issue Aug 5, 2022 · 1 comment

Comments

@kdipippo
Copy link

kdipippo commented Aug 5, 2022

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.

@kdipippo kdipippo changed the title JSON Logger incompatible with Anypoint Studio 7.13 JSON Logger incompatible with Mule.Maven.Plugin.Version 3.6.3 Aug 8, 2022
@kimbert
Copy link

kimbert commented Aug 26, 2022

Same here - we are staying on Maven plugin v3.5.4 for now to avoid these issues.

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

2 participants