javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.kuali.student.r2.core.population.model.PopulationEntity.createId

Kuali JIRA | Mike Wyers | 3 years ago
  1. 0

    Create a new population, application says successfully created, but when you search for it, it does not exist Go KS Maintenance Page (rice portal page) Click on 'Manage Populations', 'Create New' Enter name: new_rile Desc: new rule desc Use default rule (1st Year Cmps Prog) Click 'Create Population' Msg on page is: ' Document was successfully submitted.' Stacktrace on application server is: {code} 2014-03-07 11:42:06,501 [ks/KSB-pool-1-thread-5] u:admin/d:3011 FATAL org.kuali.rice.core.framework.persistence.jta.KualiTransactionInterceptor - Exception caught by Transaction Interceptor, this will cause a rollback at the end of the transaction. javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.kuali.student.r2.core.population.model.PopulationEntity.createId at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1315) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1321) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:843) at sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366) at $Proxy276.persist(Unknown Source) at sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241) at $Proxy276.persist(Unknown Source) at org.kuali.student.r2.common.dao.GenericEntityDao.persist(GenericEntityDao.java:152) at org.kuali.student.r2.core.population.service.impl.PopulationServiceImpl.createPopulation(PopulationServiceImpl.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) ... {code}

    Kuali JIRA | 3 years ago | Mike Wyers
    javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.kuali.student.r2.core.population.model.PopulationEntity.createId
  2. 0

    Create a new population, application says successfully created, but when you search for it, it does not exist Go KS Maintenance Page (rice portal page) Click on 'Manage Populations', 'Create New' Enter name: new_rile Desc: new rule desc Use default rule (1st Year Cmps Prog) Click 'Create Population' Msg on page is: ' Document was successfully submitted.' Stacktrace on application server is: {code} 2014-03-07 11:42:06,501 [ks/KSB-pool-1-thread-5] u:admin/d:3011 FATAL org.kuali.rice.core.framework.persistence.jta.KualiTransactionInterceptor - Exception caught by Transaction Interceptor, this will cause a rollback at the end of the transaction. javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.kuali.student.r2.core.population.model.PopulationEntity.createId at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1315) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1321) at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:843) at sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366) at $Proxy276.persist(Unknown Source) at sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241) at $Proxy276.persist(Unknown Source) at org.kuali.student.r2.common.dao.GenericEntityDao.persist(GenericEntityDao.java:152) at org.kuali.student.r2.core.population.service.impl.PopulationServiceImpl.createPopulation(PopulationServiceImpl.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) ... {code}

    Kuali JIRA | 3 years ago | Mike Wyers
    javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.kuali.student.r2.core.population.model.PopulationEntity.createId
  3. 0

    JPA : how to persist an object with some cascading relations? still a Javax.persistence.PersistenceException...

    Stack Overflow | 4 years ago | MychaL
    javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: myprog.test.persistence.entity.Aircraft
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    新建的项目启动,初始化错误

    GitHub | 2 years ago | chpinck
    javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute statement
  6. 0

    Problem with inserting a new row to a table

    Oracle Community | 7 years ago | 843830
    javax.persistence.PersistenceException: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [model.Data#0]

  1. linxiaolong 1 times, last 4 months ago
1 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.persistence.PersistenceException

    org.hibernate.PropertyValueException: not-null property references a null or transient value: org.kuali.student.r2.core.population.model.PopulationEntity.createId

    at org.hibernate.ejb.AbstractEntityManagerImpl.convert()
  2. Hibernate EJB
    AbstractEntityManagerImpl.persist
    1. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387)
    2. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1315)
    3. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1321)
    4. org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:843)
    4 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:601)
    3 frames
  4. Spring ORM
    ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)
    1 frame
  5. Unknown
    $Proxy276.persist
    1. $Proxy276.persist(Unknown Source)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:601)
    3 frames
  7. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241)
    1 frame
  8. Unknown
    $Proxy276.persist
    1. $Proxy276.persist(Unknown Source)
    1 frame
  9. org.kuali.student
    PopulationServiceImpl.createPopulation
    1. org.kuali.student.r2.common.dao.GenericEntityDao.persist(GenericEntityDao.java:152)
    2. org.kuali.student.r2.core.population.service.impl.PopulationServiceImpl.createPopulation(PopulationServiceImpl.java:75)
    2 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames