java.lang.ExceptionInInitializerError

This exception has no message.


Samebug tips9

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web8336

Solution icon of terracotta
This exception has no message.

Solution icon of terracotta
via Terracotta by hashcode, 1 year ago
This exception has no message.

Solution icon of terracotta
This exception has no message.

Solution icon of terracotta
via Terracotta by efremov, 1 year ago
This exception has no message.

Solution icon of terracotta
This exception has no message.

Solution icon of terracotta
via Terracotta by babuvaha, 1 year ago
This exception has no message.

Solution icon of terracotta
via Terracotta by rustum, 1 year ago
This exception has no message.

Solution icon of terracotta
via Terracotta by acs, 1 year ago
This exception has no message.

Solution icon of terracotta
via Terracotta by vinnie, 1 year ago
This exception has no message.

Solution icon of terracotta
via Terracotta by agp, 1 year ago
This exception has no message.

Stack trace

  • java.lang.ExceptionInInitializerError at com.hib.HibernateUtil.buildSessionFactory(HibernateUtil.java:17) at com.hib.HibernateUtil.<init>(HibernateUtil.java:8) at com.hib.Test.addUser(Test.java:61) at com.hib.Test.main(Test.java:20) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.hibernate.cfg.Configuration.<init>(Configuration.java:117) at com.hib.HibernateUtil.buildSessionFactory(HibernateUtil.java:12) ... 3 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 5 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 6 months ago
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
Once, 7 months ago
Once, 11 months ago
2381 more bugmates