javax.persistence.PersistenceException

tip

Check your annotations to use the proper table and column names.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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}
    via by Mike Wyers,
  • 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}
    via by Mike Wyers,
  • DataException when trying to persist Entity
    via Stack Overflow by Lucas
    ,
    • 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)

    Users with the same issue

    linxiaolong
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    12 more bugmates