Project

General

Profile

Actions

Task #1645

open

Removing roles by request add synchronized block

Added by Ondřej Kopr over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Roles
Target version:
-
Start date:
05/13/2019
Due date:
% Done:

0%

Estimated time:
Owner:

Description

During removing assigned roles by request. Is created concept for remove identity role. Same identity role is already in removing process by another request (this request is processed). After I create this duplicit concept and identity role is removed by another request. The new concept and request throw exception:


org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmIdentityRole with id 3ccd6c56-876a-4272-9f77-a57ee03a676b; nested exception is javax.persistence.EntityNotFoundException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmIdentityRole with id 3ccd6c56-876a-4272-9f77-a57ee03a676b
    at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:389)
    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:227)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:436)
    at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
    at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:131)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
    at com.sun.proxy.$Proxy259.findAllByRoleRequest_Id(Unknown Source)
    at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmConceptRoleRequestService.findAllByRoleRequest(DefaultIdmConceptRoleRequestService.java:381)
    at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmConceptRoleRequestService$$FastClassBySpringCGLIB$$2b7a604b.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)

Affected version: >9.6.0


Files

error.gif (1.64 MB) error.gif Ondřej Kopr, 05/13/2019 08:36 AM

No data to display

Actions

Also available in: Atom PDF