java.lang.NoSuchMethodError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Running... SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/User/.m2/repository/org/slf4j/slf4j-log4j12/1.5.6/slf4j-log4j12-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/User/.m2/repository/org/glassfish/hk2/external/bean-validator/1.1.0/bean-validator-1.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6] SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details. Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:99) at org.springframework.core.env.MutablePropertySources.addLast(MutablePropertySources.java:103) at org.springframework.core.env.StandardEnvironment.customizePropertySources(StandardEnvironment.java:78) at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:117) at org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:54) at org.springframework.context.support.AbstractApplicationContext.createEnvironment(AbstractApplicationContext.java:427) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:227) at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:90) at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:137) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94) at br.com.lemontech.service.util.SpringUtil.<clinit>(SpringUtil.java:13) at br.com.lemontech.service.MainClass.run(MainClass.java:65) at br.com.lemontech.service.MainClass.main(MainClass.java:40)
    via by Michael Douglas,
  • Running... SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/User/.m2/repository/org/slf4j/slf4j-log4j12/1.5.6/slf4j-log4j12-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/User/.m2/repository/org/glassfish/hk2/external/bean-validator/1.1.0/bean-validator-1.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6] SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details. Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:99) at org.springframework.core.env.MutablePropertySources.addLast(MutablePropertySources.java:103) at org.springframework.core.env.StandardEnvironment.customizePropertySources(StandardEnvironment.java:78) at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:117) at org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:54) at org.springframework.context.support.AbstractApplicationContext.createEnvironment(AbstractApplicationContext.java:427) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:227) at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:90) at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:137) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94) at br.com.lemontech.service.util.SpringUtil.<clinit>(SpringUtil.java:13) at br.com.lemontech.service.MainClass.run(MainClass.java:65) at br.com.lemontech.service.MainClass.main(MainClass.java:40)
    via by Michael Douglas,
  • Servlet is currently unavailable FJ21
    via by Unknown author,
  • how to solve slf4j exception in spring maven
    via Stack Overflow by Jag
    ,
  • Parse.com REST API in Java (NOT Android)
    via Stack Overflow by Orange Peel
    ,
    • java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:99) at org.springframework.core.env.MutablePropertySources.addLast(MutablePropertySources.java:103) at org.springframework.core.env.StandardEnvironment.customizePropertySources(StandardEnvironment.java:78) at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:117) at org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:54) at org.springframework.context.support.AbstractApplicationContext.createEnvironment(AbstractApplicationContext.java:427) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:227) at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:90) at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59) at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:137) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94) at br.com.lemontech.service.util.SpringUtil.<clinit>(SpringUtil.java:13) at br.com.lemontech.service.MainClass.run(MainClass.java:65) at br.com.lemontech.service.MainClass.main(MainClass.java:40)

    Users with the same issue

    tvrmsmithtvrmsmith
    11 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1 more bugmates