Closed mhdirkse closed 1 week ago
Duplicate of https://github.com/wearefrank/ladybug/issues/257 It's strange that the Spring scheduler calls the task before the bean is initialized. I could not reproduce it in the test webapp. Documented and fixed it in https://github.com/wearefrank/ladybug/commit/5d16619d6663b2cf18ca2a01747372ebd4b6e719
I started the Frank!Framework with Docker with custom logging configured. My custom log4j2 appender was applied, but a NullPointerException occurred that seemed to be related to Ladybug. Here is the FF! version I am using:
FF! 8.3.0-20240830.042323: my-config Running on 995905131da0 using Apache Tomcat/10.1.28 Java Version: OpenJDK Runtime Environment (21.0.4+7-LTS) Heap size: 145.2 MiB, total JVM memory: 214.0 MiB Free memory: 68.8 MiB, max memory: 2.0 GiB Free disk space: 36.9 GiB, total disk space: 58.4 GiB Up since: 2024-09-09 16:47:05 (14s)
Here is a piece of logging:
The string
MYLAYOUT
comes from my custom appender. I have a filemy-log4j2.yaml
with the following contents:And my docker compose file sets the property to use it:
I also tried an .xml custom log configuration. Then in addition to the NPE my appender did not work. I propose we first fix the NPE so that other issues with logging are easier to debug.
Here is the full code: https://github.com/frankframework/frank-manual/tree/logging-for-issue/src/customLogging.