Want more features on Pastebin? Sign Up, it's FREE!
Guest

ValidationException

By: code508 on Dec 5th, 2012  |  syntax: None  |  size: 2.40 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Changing log4j to version 1.2.15 clarifies the exception as follow:
  2. Caused by: org.hibernate.HibernateException: Error applying BeanValidation relational constraints
  3.         at org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.applyRelationalConstraints(BeanValidationIntegrator.java:219)
  4.         at org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.integrate(BeanValidationIntegrator.java:126)
  5.         at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:303)
  6.         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750)
  7.         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1788)
  8.         at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:242)
  9.         at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:372)
  10.         at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:357)
  11.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
  12.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
  13.         ... 61 more
  14. Caused by: java.lang.reflect.InvocationTargetException
  15.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  17.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  18.         at java.lang.reflect.Method.invoke(Method.java:597)
  19.         at org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.applyRelationalConstraints(BeanValidationIntegrator.java:208)
  20.         ... 70 more
  21. Caused by: org.hibernate.HibernateException: Unable to build the default ValidatorFactory
  22.         at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:524)
  23.         at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:119)
  24.         ... 75 more
  25. Caused by: javax.validation.ValidationException: Unable to find a default provider
  26.         at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)
  27.         at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)
  28.         at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:521)
clone this paste RAW Paste Data