Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-14229

Optimistic locking issue when adding role delegate member

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.2
    • Fix Version/s: 2.6
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-12940PeopleFlow role delegate issue
      KULRICE-14235KIM Role: Delegate issues once the member is inactivated
      KULRICE-10304Using empty role qualifiers causes "cannot be modified" validation error when adding delegates for associated member
      KULRICE-12523People Flow: Group and Role Member not displayed on confirmation & DocSearch views
      KULRICE-7575Fix optimistic locking issues on action items for mass actions
      KULRICE-9178Optimistic locking removed from KRIM_PND_ROLE_RSP_T and KRIM_PND_ROLE_RSP_ACTN_MT
      KULRICE-4109StandardWorkflowEngine::process() throws optimistic lock exceptions
      KULRICE-10266Optimistic Lock Exception in Person Document.
      KULRICE-4762Role: Removed an Assignee who has delegations associated with him and now the Role cannot be updated
      KULRICE-14281Can't inactivate a role delegation on a person - optimistic lock exception
    • Sprint:
      Rice Sprint 2015-04-01, Rice Sprint 2015-04-1
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Steps to Reproduce:

      • Log into the rice sampleapp
      • Go to the Administration tab
      • Search and edit a Role (i.e. Sample App Users)
      • Add a delegate to the role (i.e. test1 as a delegate for dev1)
      2015-03-30 14:46:39,963 [TRAVEL/KSB-pool-1-thread-1] u:/d:3049 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.
      org.springframework.orm.jpa.JpaOptimisticLockingFailureException: Exception [EclipseLink-5010] (Eclipse Persistence Services - 2.6.0.v20140809-296a69f): org.eclipse.persistence.exceptions.OptimisticLockException
      Exception Description: The object [org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo@4d5efd39[delegationId=10001,roleId=KRSAP10004,active=true,kimTypeId=1,delegationTypeCode=S,members=[org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo@127d5d5b[delegationMemberId=10001,delegationId=10001,roleMemberId=KRSAP10005,attributeDetails=[],memberId=test1,typeCode=P,versionNumber=<null>,objectId=aae8e41e-6309-4d35-8ef9-b090cf65bece]],versionNumber=1,objectId=41c479d4-dfd2-4ea1-acc8-4c98488f5f93]] cannot be merged because it has changed or been deleted since it was last read. 
      Class> org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo; nested exception is javax.persistence.OptimisticLockException: Exception [EclipseLink-5010] (Eclipse Persistence Services - 2.6.0.v20140809-296a69f): org.eclipse.persistence.exceptions.OptimisticLockException
      Exception Description: The object [org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo@4d5efd39[delegationId=10001,roleId=KRSAP10004,active=true,kimTypeId=1,delegationTypeCode=S,members=[org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo@127d5d5b[delegationMemberId=10001,delegationId=10001,roleMemberId=KRSAP10005,attributeDetails=[],memberId=test1,typeCode=P,versionNumber=<null>,objectId=aae8e41e-6309-4d35-8ef9-b090cf65bece]],versionNumber=1,objectId=41c479d4-dfd2-4ea1-acc8-4c98488f5f93]] cannot be merged because it has changed or been deleted since it was last read. 
      Class> org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo
      	at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:404)
      	at org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:122)
      

        Activity

        Hide
        Claus Niesen added a comment -

        Original pull request by Sona: https://github.com/kuali/rice/pull/114
        Revised pull request: https://github.com/kuali/rice/pull/115

        Show
        Claus Niesen added a comment - Original pull request by Sona: https://github.com/kuali/rice/pull/114 Revised pull request: https://github.com/kuali/rice/pull/115

          People

          • Assignee:
            Claus Niesen
            Reporter:
            Claus Niesen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile

                Structure Helper Panel