org.hibernate.HibernateException

Unable to get the default Bean Validation factory

Samebug tips10

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

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

Solutions on the web772

  • via Liferay Issues by Norbert Kocsis, 1 month ago
    Unable to get the default Bean Validation factory
  • Unable to get the default Bean Validation factory
  • Unable to get the default Bean Validation factory
  • Stack trace

    • org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127) at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1674) at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:1624) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1415) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1826) at za.co.epsilon.factory.dao.HibernateUtil.configure(HibernateUtil.java:46) at za.co.epsilon.factory.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:37) at za.co.epsilon.test.BatchOverrideHibernateTest.getSession(BatchOverrideHibernateTest.java:20) at za.co.epsilon.test.BatchOverrideHibernateTest.init(BatchOverrideHibernateTest.java:45) at za.co.epsilon.test.BatchOverrideHibernateTest.main(BatchOverrideHibernateTest.java:32) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:118) ... 9 more Caused by: org.hibernate.AssertionFailure: Entity class not found at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:119) ... 14 more Caused by: java.lang.ClassNotFoundException: OverrideItemDo at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:170) at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:116) ... 14 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

    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 1 day ago
    1380 more bugmates