java.lang.IllegalArgumentException: org.hibernate.ObjectDeletedException: deleted instance passed to merge: [org.kuali.student.lum.lu.entity.CluInstructor#<null>]

Kuali JIRA | Li Pan | 7 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

    A MajorDiscipline has, for say, two variations. If delete one variation and update the MajorDiscipline, the cluclurelation can be deleted, but not the variation itself. Here are error messages: 138066 [main] ERROR org.kuali.student.lum.lu.service.impl.LuServiceImpl - Exception occured: java.lang.IllegalArgumentException: org.hibernate.ObjectDeletedException: deleted instance passed to merge: [org.kuali.student.lum.lu.entity.CluInstructor#<null>] at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:238) at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:357) at $Proxy29.merge(Unknown Source) at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:194) at $Proxy29.merge(Unknown Source) at org.kuali.student.core.dao.impl.AbstractCrudDaoImpl.update(AbstractCrudDaoImpl.java:80) at org.kuali.student.lum.lu.service.impl.LuServiceImpl.updateClu(LuServiceImpl.java:1479) at org.kuali.student.lum.lu.service.impl.LuServiceImpl$$FastClassByCGLIB$$512ffd3b.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)

    Kuali JIRA | 7 years ago | Li Pan
    java.lang.IllegalArgumentException: org.hibernate.ObjectDeletedException: deleted instance passed to merge: [org.kuali.student.lum.lu.entity.CluInstructor#<null>]
  2. 0

    A MajorDiscipline has, for say, two variations. If delete one variation and update the MajorDiscipline, the cluclurelation can be deleted, but not the variation itself. Here are error messages: 138066 [main] ERROR org.kuali.student.lum.lu.service.impl.LuServiceImpl - Exception occured: java.lang.IllegalArgumentException: org.hibernate.ObjectDeletedException: deleted instance passed to merge: [org.kuali.student.lum.lu.entity.CluInstructor#<null>] at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:238) at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:357) at $Proxy29.merge(Unknown Source) at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:194) at $Proxy29.merge(Unknown Source) at org.kuali.student.core.dao.impl.AbstractCrudDaoImpl.update(AbstractCrudDaoImpl.java:80) at org.kuali.student.lum.lu.service.impl.LuServiceImpl.updateClu(LuServiceImpl.java:1479) at org.kuali.student.lum.lu.service.impl.LuServiceImpl$$FastClassByCGLIB$$512ffd3b.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)

    Kuali JIRA | 7 years ago | Li Pan
    java.lang.IllegalArgumentException: org.hibernate.ObjectDeletedException: deleted instance passed to merge: [org.kuali.student.lum.lu.entity.CluInstructor#<null>]

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    org.hibernate.ObjectDeletedException: deleted instance passed to merge: [org.kuali.student.lum.lu.entity.CluInstructor#<null>]

    at org.hibernate.ejb.AbstractEntityManagerImpl.merge()
  2. Hibernate EJB
    AbstractEntityManagerImpl.merge
    1. org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:238)
    1 frame
  3. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  4. Spring ORM
    ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:357)
    1 frame
  5. Unknown
    $Proxy29.merge
    1. $Proxy29.merge(Unknown Source)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  7. Spring ORM
    SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:194)
    1 frame
  8. Unknown
    $Proxy29.merge
    1. $Proxy29.merge(Unknown Source)
    1 frame
  9. org.kuali.student
    LuServiceImpl$$FastClassByCGLIB$$512ffd3b.invoke
    1. org.kuali.student.core.dao.impl.AbstractCrudDaoImpl.update(AbstractCrudDaoImpl.java:80)
    2. org.kuali.student.lum.lu.service.impl.LuServiceImpl.updateClu(LuServiceImpl.java:1479)
    3. org.kuali.student.lum.lu.service.impl.LuServiceImpl$$FastClassByCGLIB$$512ffd3b.invoke(<generated>)
    3 frames
  10. IDEA
    MethodProxy.invoke
    1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    1 frame
  11. Spring AOP
    Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint
    1. org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    1 frame