javax.validation.ConstraintViolationException: Validation failed for classes [org.jasig.ssp.model.reference.EarlyAlertReferral] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=acronym, rootBeanClass=class org.jasig.ssp.model.reference.EarlyAlertReferral, messageTemplate='{javax.validation.constraints.NotNull.message}'} ]

Apereo Issues | Jon Adams | 5 years 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

    From [~shawngormley]: {quote}I'm seeing the attached error trying to post a new Early Alert Referral. Json: {{"id":"","name":"default","description":""}}{quote} Server stack trace: {code}ERROR o.j.s.w.a.r.EarlyAlertReferralController - Error: javax.validation.ConstraintViolationException: Validation failed for classes [org.jasig.ssp.model.reference.EarlyAlertReferral] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=acronym, rootBeanClass=class org.jasig.ssp.model.reference.EarlyAlertReferral, messageTemplate='{javax.validation.constraints.NotNull.message}'} ] at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(BeanValidationEventListener.java:159) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:94) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.action.internal.EntityInsertAction.preInsert(EntityInsertAction.java:175) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:73) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:480) ~[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at $Proxy59.create(Unknown Source) ~[na:na] at org.jasig.ssp.web.api.reference.AbstractAuditableReferenceController.create(AbstractAuditableReferenceController.java:128) ~[AbstractAuditableReferenceController.class:na] at org.jasig.ssp.web.api.reference.AbstractAuditableReferenceController$$FastClassByCGLIB$$22e23a41.invoke(<generated>) ~[cglib-2.2.2.jar:na] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[cglib-2.2.2.jar:na] at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:618) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.jasig.ssp.web.api.reference.EarlyAlertReferralController$$EnhancerByCGLIB$$b3fbebf.create(<generated>) ~[cglib-2.2.2.jar:na] {code}

    Apereo Issues | 5 years ago | Jon Adams
    javax.validation.ConstraintViolationException: Validation failed for classes [org.jasig.ssp.model.reference.EarlyAlertReferral] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=acronym, rootBeanClass=class org.jasig.ssp.model.reference.EarlyAlertReferral, messageTemplate='{javax.validation.constraints.NotNull.message}'} ]
  2. 0

    From [~shawngormley]: {quote}I'm seeing the attached error trying to post a new Early Alert Referral. Json: {{"id":"","name":"default","description":""}}{quote} Server stack trace: {code}ERROR o.j.s.w.a.r.EarlyAlertReferralController - Error: javax.validation.ConstraintViolationException: Validation failed for classes [org.jasig.ssp.model.reference.EarlyAlertReferral] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=acronym, rootBeanClass=class org.jasig.ssp.model.reference.EarlyAlertReferral, messageTemplate='{javax.validation.constraints.NotNull.message}'} ] at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(BeanValidationEventListener.java:159) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:94) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.action.internal.EntityInsertAction.preInsert(EntityInsertAction.java:175) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:73) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175) ~[hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:480) ~[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) ~[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at $Proxy59.create(Unknown Source) ~[na:na] at org.jasig.ssp.web.api.reference.AbstractAuditableReferenceController.create(AbstractAuditableReferenceController.java:128) ~[AbstractAuditableReferenceController.class:na] at org.jasig.ssp.web.api.reference.AbstractAuditableReferenceController$$FastClassByCGLIB$$22e23a41.invoke(<generated>) ~[cglib-2.2.2.jar:na] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[cglib-2.2.2.jar:na] at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:618) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.jasig.ssp.web.api.reference.EarlyAlertReferralController$$EnhancerByCGLIB$$b3fbebf.create(<generated>) ~[cglib-2.2.2.jar:na] {code}

    Apereo Issues | 5 years ago | Jon Adams
    javax.validation.ConstraintViolationException: Validation failed for classes [org.jasig.ssp.model.reference.EarlyAlertReferral] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=acronym, rootBeanClass=class org.jasig.ssp.model.reference.EarlyAlertReferral, messageTemplate='{javax.validation.constraints.NotNull.message}'} ]
  3. 0

    Spring Boot - ControllerAdvice exceptionhandler not firing with put and patch requests

    Stack Overflow | 3 years ago | sat
    javax.validation.ConstraintViolationException: Validation failed for classes [com.mycompany.domain.Company] during update time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='must be a valid URL', propertyPath=website, rootBeanClass=class com.mycompany.domain.Company, messageTemplate='{org.hibernate.validator.constraints.URL.message}'} ]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How do I troubleshoot a "javax.persistence.RollbackException: Error while committing the transaction"?

    Stack Overflow | 3 years ago | Dave
    javax.persistence.RollbackException: Error while committing the transaction: org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction
  6. 0

    Configuração da JPA e criação de classes persistentes e banco de dados - Curso de Java Online: JSF - Aula 32

    com.br | 1 year ago
    javax.persistence.RollbackException: Error while committing the transaction

    5 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. javax.validation.ConstraintViolationException

      Validation failed for classes [org.jasig.ssp.model.reference.EarlyAlertReferral] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=acronym, rootBeanClass=class org.jasig.ssp.model.reference.EarlyAlertReferral, messageTemplate='{javax.validation.constraints.NotNull.message}'} ]

      at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate()
    2. Hibernate
      AbstractTransactionImpl.commit
      1. org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(BeanValidationEventListener.java:159)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      2. org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:94)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      3. org.hibernate.action.internal.EntityInsertAction.preInsert(EntityInsertAction.java:175)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      4. org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:73)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      5. org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      6. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      7. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:186)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      8. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      9. org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      10. org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      11. org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      12. org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      13. org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)[hibernate-core-4.0.1.Final.jar:4.0.1.Final]
      13 frames
    3. Spring ORM
      HibernateTransactionManager.doCommit
      1. org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:480)[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      1 frame
    4. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      4. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)[spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      4 frames
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      2 frames
    6. Unknown
      $Proxy59.create
      1. $Proxy59.create(Unknown Source)[na:na]
      1 frame
    7. org.jasig.ssp
      AbstractAuditableReferenceController$$FastClassByCGLIB$$22e23a41.invoke
      1. org.jasig.ssp.web.api.reference.AbstractAuditableReferenceController.create(AbstractAuditableReferenceController.java:128)[AbstractAuditableReferenceController.class:na]
      2. org.jasig.ssp.web.api.reference.AbstractAuditableReferenceController$$FastClassByCGLIB$$22e23a41.invoke(<generated>)[cglib-2.2.2.jar:na]
      2 frames
    8. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[cglib-2.2.2.jar:na]
      1 frame
    9. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:618)[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
      1 frame
    10. org.jasig.ssp
      EarlyAlertReferralController$$EnhancerByCGLIB$$b3fbebf.create
      1. org.jasig.ssp.web.api.reference.EarlyAlertReferralController$$EnhancerByCGLIB$$b3fbebf.create(<generated>)[cglib-2.2.2.jar:na]
      1 frame