GitHub user Pariksit-Dogra added a comment to the discussion: Potential ETA on a newer Log4j release
Hi @ppkarwasz Sorry I missed this message. I wasn't able to test against the snapshot but was able to bump up to 2.25.3. Unfortunately, I am still facing issues. Essentially, I am trying to test the sending of log messages using Syslog over TLS protocol. My tests work completely fine with TCP but break for a number of reasons (since we've upgraded from JDK17 -> 21). The trust store is being set programmatically along with the 'SSL' protocol. However, I encounter issues whereby you get NPE's for it being unable to initialise the SSL Configuration required: ``` @coroutine#3 ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.SyslogAppender for element Syslog: java.lang.NullPointerException: Cannot invoke "org.apache.logging.log4j.core.net.ssl.SslConfiguration.getKeyStoreConfig()" because "sslConfig" is null java.lang.NullPointerException: Cannot invoke "org.apache.logging.log4j.core.net.ssl.SslConfiguration.getKeyStoreConfig()" because "sslConfig" is null ``` With an SSL block it 'seems' to work, but that hasn't been required before and as per the log4j docs should still not be required as long as the system variables for the trustStore etc are being set before any appenders are created. As per the code that should be the case. I am not sure if this is a bug or if I'm doing something massively wrong but I've tried a lot of things already. I am happy to raise a bug issue if that would be a better place to discuss this issue further. Thank you 🙇 GitHub link: https://github.com/apache/logging-log4j2/discussions/3993#discussioncomment-15539556 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
