java.lang.ExceptionInInitializerError

mkyong.com | 4 months 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

    hibernate

    Coderanch | 7 years ago | nimesh hindocha
    java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    hibernate

    Coderanch | 7 years ago | nimesh hindocha
    java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
  4. 0

    Null pointer exception in HQL using parameter

    Coderanch | 8 years ago | peter tong
    java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

    12 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.apache.commons.logging.LogFactory

      at java.net.URLClassLoader$1.run()
    2. Java RT
      ClassLoader.loadClassInternal
      1. java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      2. java.security.AccessController.doPrivileged(Native Method)
      3. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      4. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      6. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      7. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      7 frames
    3. Hibernate
      Configuration.<clinit>
      1. org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
      1 frame
    4. com.mkyong.persistence
      HibernateUtil.<clinit>
      1. com.mkyong.persistence.HibernateUtil.buildSessionFactory(HibernateUtil.java:13)
      2. com.mkyong.persistence.HibernateUtil.<clinit>(HibernateUtil.java:8)
      2 frames
    5. com.mkyong.common
      App.main
      1. com.mkyong.common.App.main(App.java:17)
      1 frame