java.lang.IllegalStateException: Failed to execute CommandLineRunner

Stack Overflow | user3321551 | 3 months ago
  1. 0

    Why is my @Id column not being generated when I try to persist an object?

    Stack Overflow | 3 months ago | user3321551
    java.lang.IllegalStateException: Failed to execute CommandLineRunner
  2. 0

    Removing an entity and create new one with same primary key

    Stack Overflow | 11 months ago | Dmitry Shipaev
    org.springframework.dao.DataIntegrityViolationException: A different object with the same identifier value was already associated with the session : [com.test.core.model.subsubentity.SubSubEntity#3440120160113000103]; nested exception is javax.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session : [com.test.core.model.subsubentity.SubSubEntity#3440120160113000103]
  3. 0

    Spring JPA Transaction Manager does not rollback

    Stack Overflow | 12 months ago | abiieez
    org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Save and Delete Bidirectional Foreign key entities (Object Relational Mapping forum at JavaRanch)

    coderanch.com | 1 year ago
    org.springframework.dao.DataIntegrityViolationException: not-null property references a null or transient value : com.ellora.collorado.model.UserRole.employee; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value : com.ellora.collorado.model.UserRole.employee
  6. 0

    jhipster date time column issue in inserting the value into mySql table record

    Stack Overflow | 1 year ago | smart987
    org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement

  1. tvrmsmith 1 times, last 4 months ago
4 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. org.springframework.dao.DataIntegrityViolationException

    could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException()
  2. Spring ORM
    AbstractEntityManagerFactoryBean.translateExceptionIfPossible
    1. org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:259)[spring-orm-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:225)[spring-orm-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:436)[spring-orm-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3 frames
  3. Spring Tx
    PersistenceExceptionTranslationInterceptor.invoke
    1. org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3 frames
  4. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  5. Spring Data JPA
    CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke
    1. org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:131)[spring-data-jpa-1.9.4.RELEASE.jar:na]
    1 frame
  6. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    4 frames
  7. com.sun.proxy
    $Proxy60.save
    1. com.sun.proxy.$Proxy60.save(Unknown Source)[na:na]
    1 frame
  8. database
    Application.lambda$0
    1. database.Application.lambda$0(Application.java:71)[bin/:na]
    1 frame
  9. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    2. org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:784)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    3. org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:771)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    6 frames
  10. database
    Application.main
    1. database.Application.main(Application.java:26)[bin/:na]
    1 frame