java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

Apache's JIRA Issue Tracker | Chamila Dilshan Wijayarathna | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have added <dependency> <groupId>org.apache.thrift</groupId> <artifactId>libthrift</artifactId> <version>0.9.2</version> </dependency> to the pom.xml of my maven project, which uses thrift. At run time I'm getting a error as follows Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242) at rpc.node$Processor.<clinit>(node.java:212) at p2p.Controller.main(Controller.java:168) Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 7 more from node.java file which was the thrift auto generated file. I believe adding thrift maven dependency should add this dependency to the project.

    Apache's JIRA Issue Tracker | 2 years ago | Chamila Dilshan Wijayarathna
    java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
  2. 0

    I have added <dependency> <groupId>org.apache.thrift</groupId> <artifactId>libthrift</artifactId> <version>0.9.2</version> </dependency> to the pom.xml of my maven project, which uses thrift. At run time I'm getting a error as follows Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242) at rpc.node$Processor.<clinit>(node.java:212) at p2p.Controller.main(Controller.java:168) Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 7 more from node.java file which was the thrift auto generated file. I believe adding thrift maven dependency should add this dependency to the project.

    Apache's JIRA Issue Tracker | 2 years ago | Chamila Dilshan Wijayarathna
    java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 30#151525433

    GitHub | 1 year ago | AbhiMangal
    java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
  5. 0

    개발자의 하루 :: '자바/문제해결' 카테고리의 글 목록

    tistory.com | 1 year ago
    java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

  1. chenjunjun 1 times, last 3 months ago
  2. andyglick 6 times, last 6 months ago
  3. rsprangemeijer 6 times, last 6 days ago
  4. marcbouvierdav 26 times, last 1 week ago
  5. batwalrus76 12 times, last 1 week ago
69 more registered users
26 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.ClassNotFoundException

    org.slf4j.impl.StaticLoggerBinder

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    7 frames
  3. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
    2. org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
    3. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
    4. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
    5. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
    5 frames
  4. rpc
    node$Processor.<clinit>
    1. rpc.node$Processor.<clinit>(node.java:212)
    1 frame
  5. p2p
    Controller.main
    1. p2p.Controller.main(Controller.java:168)
    1 frame