When Use with slf4j,
String test = blahblahblah;
logger.info(\"{}\",test);
Trace as below
java.lang.NoSuchMethodError: org.
In my case, we are having correct version match between the various SLF4J API and integration libraries. But we are also using tika-app
jar, which also have SLF4J classes wrapped inside it.
To check if you are also having some (fat)jar which contains SLF4J classes, On Unix system:
Go to your WEB-INF/lib/ directory and run following command
for i in *.jar; do jar -tvf "$i" | grep -Hsi MessageFormatter && echo "$i"; done
This will print matching result from all jars on console.
Finally, we replaced tika-app
jar by tika-core
jar.