java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V

Google Groups | amitfrid | 5 years ago
  1. 0

    slf4j version mismatch when using grails 1.3.7 with quartz scheduler 1.0-RC1

    Stack Overflow | 3 years ago | Anand Jayabalan
    java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
  2. 0

    java-apns 0.2.0 version

    Google Groups | 5 years ago | amitfrid
    java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
  3. 0

    Maven archetype allinone project, error during running, no ContextLoaderListener registered | Alfresco Forums

    alfresco.com | 1 year ago
    java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am attempting to embed the Atlassian Plugin Framework into my application. The web framework that I use depends on SLF4 v1.6.1. The Atlassian Plugin Framework depends on SLF4J v1.5.8. Normally this is not a problem, since [SLF4J versions are backward compatible|http://www.slf4j.org/faq.html#compatibility]. I should be able to specify a dependency on the v1.6.1 artifacts and everyone should be happy. Unfortunately, it's not all sunshine and rainbows. {{atlassian-plugins-osgi}} has {{jcl-over-slf4j-1.5.8.jar}} hardcoded into the {{osgi-framework-bundles}}. When the OSGi container starts up, this v1.5.8 of the JCL bridge calls methods on the v1.6.1 SLF4J implementation, and I get {{NoSuchMethod}} exceptions. (Stack trace below) While the SLF4J API is backward compatible, mixing different versions of SLF4J artifacts is "strongly discouraged." What I need is for some way to specify my own {{framework-bundle}}, or replace {{.jar}}'s in the {{framework-bundle}} with versions appropriate for my application. {code:none} java.lang.NoSuchMethodException: ch.qos.logback.classic.Logger.log() at java.lang.Class.getMethod(Class.java:1605) at org.apache.commons.logging.impl.SLF4JLocationAwareLog.trace(SLF4JLocationAwareLog.java:107) at org.springframework.core.CollectionFactory.createConcurrentMap(CollectionFactory.java:221) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.<init>(ContextLoaderListener.java:332) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3659) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1812) at org.apache.felix.framework.Felix.startBundle(Felix.java:1734) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:680) 14:30:23.212 [FelixStartLevel] ERROR c.a.p.o.c.f.FelixOsgiContainerManager - Error starting file:/var/folders/zz/zzzivhrRnAmviuee+++2vE++-Co/-Tmp-/atlassian-plugins-osgi-cache3023575545365638443.tmp/framework-bundles/spring-osgi-extender-1.2.1.jar 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.trace(SLF4JLocationAwareLog.java:107) ~[jcl-over-slf4j-1.6.1.jar:1.6.1] at org.springframework.core.CollectionFactory.createConcurrentMap(CollectionFactory.java:221) ~[spring-core-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.<init>(ContextLoaderListener.java:332) ~[na:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.6.0_24] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ~[na:1.6.0_24] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) ~[na:1.6.0_24] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) ~[na:1.6.0_24] at java.lang.Class.newInstance0(Class.java:355) ~[na:1.6.0_24] at java.lang.Class.newInstance(Class.java:308) ~[na:1.6.0_24] at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3659) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.Felix.activateBundle(Felix.java:1812) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.Felix.startBundle(Felix.java:1734) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) [org.apache.felix.framework-3.0.2.jar:na] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_24] 14:30:23.214 [FelixDispatchQueue] ERROR c.a.p.o.c.f.FelixOsgiContainerManager - Framework error in bundle org.springframework.osgi.extender org.osgi.framework.BundleException: Activator start error in bundle org.springframework.osgi.extender [7]. at org.apache.felix.framework.Felix.activateBundle(Felix.java:1864) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.Felix.startBundle(Felix.java:1734) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) ~[org.apache.felix.framework-3.0.2.jar:na] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_24] Caused by: 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.trace(SLF4JLocationAwareLog.java:107) ~[jcl-over-slf4j-1.6.1.jar:1.6.1] at org.springframework.core.CollectionFactory.createConcurrentMap(CollectionFactory.java:221) ~[spring-core-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.<init>(ContextLoaderListener.java:332) ~[na:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.6.0_24] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ~[na:1.6.0_24] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) ~[na:1.6.0_24] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) ~[na:1.6.0_24] at java.lang.Class.newInstance0(Class.java:355) ~[na:1.6.0_24] at java.lang.Class.newInstance(Class.java:308) ~[na:1.6.0_24] at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3659) ~[org.apache.felix.framework-3.0.2.jar:na] at org.apache.felix.framework.Felix.activateBundle(Felix.java:1812) ~[org.apache.felix.framework-3.0.2.jar:na] ... 4 common frames omitted {code}

    Ecosystem JIRA | 6 years ago | David M. Lee
    java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
  6. 0

    sl4j and Spring - maven issue

    Stack Overflow | 3 years ago | user2964737
    java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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.trace()
    2. Apache Commons Logging
      SLF4JLocationAwareLog.trace
      1. org.apache.commons.logging.impl.SLF4JLocationAwareLog.trace(SLF4JLocationAwareLog.java:107)
      1 frame
    3. Apache Commons BeanUtils
      BeanUtilsBean.convert
      1. org.apache.commons.beanutils.BeanUtilsBean.convert(BeanUtilsBean.java:1073)
      1 frame