3,401 questions
2 votes
2 answers
189 views
MDC and SecurityContext propagation failing when using Virtual Threads (Executor)
I am migrating a Spring Boot 3.x application to use Java Virtual Threads. I have replaced my standard async executor with a virtual thread executor: @Bean public Executor taskExecutor() { return ...
0 votes
0 answers
120 views
Error when I launch a MustangProject example (running Java) on MacOS terminal : SLF4J(W): No SLF4J providers were found (not Maven) [duplicate]
I'm preparing the approaching European electronic invoicing obligations. For this, MustangProject is giving a solution with its library, running on Java (the tutorial I follow is given here). I've ...
0 votes
0 answers
70 views
Specific configuration for logging while using Slf4j
Is there a way to have a custom configuration when using Slf4j without the need to create a custom logger? Let's say I have a controller, service, or any format of a class, I am using SLF4J for ...
1 vote
1 answer
80 views
How to workaround slf4j reading disk on main thread in Android?
I do have the following line in my Android app: private Logger logger = LoggerFactory.getLogger(getClass().getSimpleName()); When testing for threads access in strict mode i found the following issue ...
0 votes
2 answers
161 views
NoClassDefFoundError: org/slf4j/LoggerFactory when running in Intellij but works fine from the command line
I am having issues related to my tests which are failing because of slf4j-api being absent, which does not make sense because it is present as it is provided as a transitive dependency from one of the ...
0 votes
0 answers
35 views
Sse subscription method with a specific parameter is not logged
I have an application using Java 11, Spring, Apache CXF 3.4.2, Tomcat and slf4j. The method that serves as the endpoint for subscribing to server-sent events doesn't log any errors. They're visible in ...
0 votes
0 answers
41 views
How to use log4j binding in cassandra 5.0
I had been using log4j binding in cassandra version 4. But this isn't working in cassandra 5.0. Getting this exception on startup. org/apache/cassandra/utils/vint/VIntCoding.writeVInt32(ILorg/apache/...
3 votes
0 answers
109 views
How to set different log level for different appenders without filters in logback-spring.xml file?
In Spring Boot application for logs made with Slf4j I want to show INFO level logs in console and DEBUG level logs in file. I also want to change level logs in console with Actuator, so I can't use ...
1 vote
2 answers
118 views
slf4j conflict during unit test run
I created a Maven Springboot application where I've written a dummy unit test for to see if the ReporterApplication boots up successfully without exceptions. However I get a depdendency clash of ...
0 votes
0 answers
31 views
How to use SLF4J 2.0 with Apache Ant
I have to refactor a custom ant task to use a rewritten implementation of the code. As part of the rewrite, the logging library was updated from slf4j 1.7.26 to 2.0.17, using logback 1.5.28, updated ...
1 vote
0 answers
250 views
Cannot invoke "TemporalAccessor.getLong(TemporalField)" because "this.temporal" is null at ch.qos.logback.classic.Logger.info(Logger.java:584)
Getting error at log.info("...") while running Tests in build pipeline The error is being thrown only in the GitLab build pipeline tests phase, not in Local Using: lombok.extern.slf4j.@...
5 votes
1 answer
235 views
Is it possible to route Logback logging to SLF4J in a Log4j2-based project
My project uses SLF4J with Log4j2, but recently I introduced a dependency that uses Logback for logging and DOES NOT use SLF4J. The dependency's code includes the following import: import ch.qos....
0 votes
1 answer
31 views
Liquibase JUnit problem with liquibase.logLevel
I’m having a problem with my unit tests. Regardless of what I do, my liquibase.logLevel setting isn’t being respected. Any suggestions? Thanks! @Test public void testChangeLog() { try (...
2 votes
1 answer
157 views
How to load SLF4J-API and Password4j in Oracle 23ai free?
Password4j 1.8.2 cannot be loaded under Oracle 23ai free because most of the time ora-29532 java call terminated by uncaught java exception java.lang.noclassdeffounderror org/slf4j/loggerfactory ...
0 votes
0 answers
177 views
GraalVM Native Image: SLF4J, Logback, Netty, InetAddress & Initialization Errors Despite Proper Configuration
I'm encountering an error while building a GraalVM native image for a Spring Boot application in a multi-module setup. The error indicates that an object of type org.slf4j.helpers....