java.lang.ExceptionInInitializerError

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.

  • session.flush(); gives null
    via by sam liya,
  • session.flush(); gives null
    via by Rahul Babbar,
    • java.lang.ExceptionInInitializerError at com.tutorialsdojo.util.HibernateUtil.<clinit>(HibernateUtil.java:15) at com.tutorialsdojo.HelloHibernate.addRow(HelloHibernate.java:28) at com.tutorialsdojo.HelloHibernate.main(HelloHibernate.java:23) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120) at com.tutorialsdojo.util.HibernateUtil.<clinit>(HibernateUtil.java:12)
    No Bugmate found.