Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-5102

A different object with the same identifier value was already associated with the session

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.9
    • 4.1, 4.0.2
    • None
    • None
    • Active subscription
    • M2

    Description

      There are a lot of exceptions like this in the midPoint log:

      2019-01-22 11:08:32,777 [REPOSITORY] [midPointScheduler_Worker-1] ERROR (org.hibernate.internal.ExceptionMapperStandardImpl): HHH000346: Error during managed flush [A different object with the same identifier value was already associated with the session : [com.evolveum.midpoint.repo.sql.data.common.RObjectReference#RObjectReferenceId[ef292f74-9343-45b3-9ca6-976959936c16,f993eeb9-c6e1-48ff-a8f2-f97abc837e24,http://midpoint.evolveum.com/xml/ns/public/common/org-3#default,MODIFY_APPROVER]]]
      2019-01-22 11:08:34,101 [] [midPointScheduler_Worker-1] ERROR (com.evolveum.midpoint.model.impl.controller.ModelOperationTaskHandler): An exception occurred within model operation, in task Task(id:1548060255365-0-1, name:Approval and execution of: Assigning role "xxxx" to user "yyyy", oid:9586275e-8150-4046-ae0b-1b1b660499ff).
      com.evolveum.midpoint.util.exception.SystemException: A different object with the same identifier value was already associated with the session : [com.evolveum.midpoint.repo.sql.data.common.RObjectReference#RObjectReferenceId[ef292f74-9343-45b3-9ca6-976959936c16,f993eeb9-c6e1-48ff-a8f2-f97abc837e24,http://midpoint.evolveum.com/xml/ns/public/common/org-3#default,MODIFY_APPROVER]]
      	at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralRuntimeException(BaseHelper.java:173)
      	at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralException(BaseHelper.java:153)
      	at com.evolveum.midpoint.repo.sql.helpers.ObjectUpdater.modifyObjectAttempt(ObjectUpdater.java:488)
      	at com.evolveum.midpoint.repo.sql.SqlRepositoryServiceImpl.modifyObject(SqlRepositoryServiceImpl.java:573)
      	at sun.reflect.GeneratedMethodAccessor1040.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at com.evolveum.midpoint.util.aspect.MidpointInterceptor.wrapSubsystem(MidpointInterceptor.java:137)
      	at com.evolveum.midpoint.util.aspect.MidpointInterceptor.invoke(MidpointInterceptor.java:53)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
      	at com.sun.proxy.$Proxy65.modifyObject(Unknown Source)
      	at com.evolveum.midpoint.repo.cache.RepositoryCache.modifyObject(RepositoryCache.java:441)
      	at sun.reflect.GeneratedMethodAccessor1040.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at com.evolveum.midpoint.util.aspect.MidpointInterceptor.wrapSubsystem(MidpointInterceptor.java:137)
      	at com.evolveum.midpoint.util.aspect.MidpointInterceptor.invoke(MidpointInterceptor.java:53)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
      	at com.sun.proxy.$Proxy65.modifyObject(Unknown Source)
      	at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeModification(ChangeExecutor.java:1477)
      	at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta(ChangeExecutor.java:942)
      	at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeChanges(ChangeExecutor.java:193)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.lambda$processSecondary$0(Clockwork.java:657)
      	at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:174)
      	at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:154)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.processSecondary(Clockwork.java:655)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:489)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:213)
      	at com.evolveum.midpoint.model.impl.controller.ModelOperationTaskHandler.run(ModelOperationTaskHandler.java:117)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executePlainTaskHandler(JobExecutor.java:675)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:664)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:477)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:196)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: javax.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session : [com.evolveum.midpoint.repo.sql.data.common.RObjectReference#RObjectReferenceId[ef292f74-9343-45b3-9ca6-976959936c16,f993eeb9-c6e1-48ff-a8f2-f97abc837e24,http://midpoint.evolveum.com/xml/ns/public/common/org-3#default,MODIFY_APPROVER]]
      	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:118)
      	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:157)
      	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:164)
      	at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1443)
      	at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:493)
      	at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3207)
      	at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2413)
      	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:473)
      	at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:156)
      	at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$100(JdbcResourceLocalTransactionCoordinatorImpl.java:38)
      	at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:231)
      	at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:68)
      	at com.evolveum.midpoint.repo.sql.helpers.ObjectUpdater.modifyObjectAttempt(ObjectUpdater.java:471)
      	... 40 common frames omitted
      2019-01-22 11:08:34,359 [] [midPointScheduler_Worker-1] INFO (com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor): Task encountered temporary error, suspending it. Task = Task(id:1548060255365-0-1, name:Approval and execution of: Assigning role "xxxx" to user "yyyy", oid:9586275e-8150-4046-ae0b-1b1b660499ff) 
      

      Attachments

        Issue Links

          Activity

            People

              mederly Pavol Mederly
              mederly Pavol Mederly
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: