Closed eratolekov closed 2 months ago
You can try disabling micronaut-aot or specifically the logging config aot for now.
You can try disabling micronaut-aot or specifically the logging config aot for now.
Yes, as workaround I can set replaceLogbackXml = false
in build.gradle
.
I received the same error in my project and have already fixed it. The problem is in the appender encoder. If the encoding is specified, it tries to call the method Charset.valueOf("UTF-8")
, but must be Charset.forName("UTF-8")
.
Fixed here: https://github.com/micronaut-projects/micronaut-aot/pull/313
Expected Behavior
./gradlew build
builds Micronaut app.Actual Behaviour
./gradlew build
generates exception:`Steps To Reproduce
build.gradle
logback.xml
./gradlew build
build.gradle
logback.xml
The root cause is
<charset>utf-8</charset>
. If this string is absent the build is succesful.Environment Information
Windows 11 23H2 OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
Example Application
https://github.com/eratolekov/micronaut-json-logback-bug
Version
4.5.1