SLF4J NoSuchMethodError on LocationAwareLogger

前端 未结 8 1733

This is a question that has been asked before, but unfortunately no solution seems to work for me. I am facing this exception (with abridged stack trace):

ja         


        
8条回答
  •  情深已故
    2020-12-03 07:24

    The javadocs for NoSuchMethodError say,

    Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

    So this is probably being caused by incompatible versions of slf4j being loaded. Rather than looking at your classpath and guessing where classes are loaded, find where your class is loaded as described here.

    Print out where org.slf4j.spi.LocationAwareLogger, org.apache.commons.logging.impl.SLF4JLocationAwareLog and org.slf4j.Marker are being loaded from.

提交回复
热议问题