Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-307

Exception in thread "main" java.lang.NoSuchMethodError

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Incomplete
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Component/s: Core API
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              mmoreira@lemontech.com.br Michael Douglas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: