No SLF4J providers were found

I am using jmix, when there is an error it does not show them and when loading the application it does not show the localhost in the console

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/C:/Users/Dynamoware/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.11/4741689214e9d1e8408b206506cbe76d1c6a7d60/logback-classic-1.2.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See SLF4J Error Codes for an explanation.

image

for some reason putting this in the gradle file
implementation ‘org.apache.tika:tika-core:2.6.0’
causes this.

1 Like

This is because tika-core:2.6.0 brings slf4j-api:2.0.3 dependency while Spring Boot 2.7 requires slf4j-api:1.7.x.

Try to either exclude the transitive dependency on SLF4J:

implementation('org.apache.tika:tika-core:2.6.0') {
    exclude group: 'org.slf4j', module: 'slf4j-api'
}

or use the previous version:

implementation 'org.apache.tika:tika-core:2.4.1'
4 Likes

Thanks a lot Mr. Konstantin Krivopustov