Actions
Defect #969
closedEntityToUuidConverter failed to convert eu.bcvsolutions.idm.core.model.entity.IdmIdentity to java.util.UUID.
Added by Ondřej Kopr almost 7 years ago. Updated almost 7 years ago.
Start date:
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
Problem was solved in 7.8.0 and higher
this problem occurs when working with IdmIdentiy and setState,
for example:- map IdmIdentity via mapper (IdmIdentity put into embedded),
- synchronize identities and set disable atribute on entity to Boolean.FALSE or false.
Affected version 7.7.x and 7.6.x
Related issues
Updated by Ondřej Kopr almost 7 years ago
- Category changed from Attribute mapping to Dto mapping
- Status changed from New to Resolved
- Assignee deleted (
Vít Švanda) - % Done changed from 0 to 100
Complete log from synchronization:
2018-02-15T15:06:45.814+01:00: System entity for this uid (test) was found. We will find account for this system entity (2bacc654-56e1-4084-b683-733ddd8a5984) ------------------------- 2018-02-15T15:06:45.823+01:00: IdM Account (turko) exists in IDM (LINKED) ------------------------- 2018-02-15T15:06:45.823+01:00: Linked action is UPDATE_ENTITY ------------------------- 2018-02-15T15:06:45.962+01:00: org.modelmapper.MappingException: ModelMapper mapping errors: 1) Converter eu.bcvsolutions.idm.core.config.domain.EntityToUuidConverter@1273c7d0 failed to convert eu.bcvsolutions.idm.core.model.entity.IdmIdentity to java.util.UUID. 1 error at org.modelmapper.internal.Errors.throwMappingExceptionIfErrorsExist(Errors.java:374) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:69) at org.modelmapper.ModelMapper.mapInternal(ModelMapper.java:497) at org.modelmapper.ModelMapper.map(ModelMapper.java:381) at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.toDto(AbstractReadDtoService.java:302) at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.lambda$0(AbstractReadDtoService.java:341) at java.util.ArrayList.forEach(ArrayList.java:1249) at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.toDtos(AbstractReadDtoService.java:335) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityContractService.findAllByIdentity(DefaultIdmIdentityContractService.java:195) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityContractService$$FastClassBySpringCGLIB$$b0b02eec.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityContractService$$EnhancerBySpringCGLIB$$cbf00375.findAllByIdentity(<generated>) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService.evaluateState(DefaultIdmIdentityService.java:621) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService.toEntity(DefaultIdmIdentityService.java:141) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService.toEntity(DefaultIdmIdentityService.java:1) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService.saveInternal(AbstractReadWriteDtoService.java:85) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService$$FastClassBySpringCGLIB$$f52da88.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService$$EnhancerBySpringCGLIB$$a0309a0b.saveInternal(<generated>) at eu.bcvsolutions.idm.core.model.event.processor.identity.IdentitySaveProcessor.process(IdentitySaveProcessor.java:68) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:192) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:1) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:348) at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.process(DefaultEntityEventManager.java:76) at eu.bcvsolutions.idm.core.api.service.AbstractEventableDtoService.publish(AbstractEventableDtoService.java:53) at eu.bcvsolutions.idm.core.api.service.AbstractEventableDtoService$$FastClassBySpringCGLIB$$28b457d3.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService$$EnhancerBySpringCGLIB$$a0309a0b.publish(<generated>) at eu.bcvsolutions.idm.acc.service.impl.IdentitySynchronizationExecutor.save(IdentitySynchronizationExecutor.java:215) at eu.bcvsolutions.idm.acc.service.impl.IdentitySynchronizationExecutor.doUpdateEntity(IdentitySynchronizationExecutor.java:249) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.resolveLinkedSituation(AbstractSynchronizationExecutor.java:1039) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.doItemSynchronization(AbstractSynchronizationExecutor.java:393) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.doItemSynchronization(DefaultSynchronizationService.java:219) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService$$FastClassBySpringCGLIB$$66d7ee75.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService$$EnhancerBySpringCGLIB$$7f2bfb0.doItemSynchronization(<generated>) at eu.bcvsolutions.idm.acc.event.processor.synchronization.SynchronizationItemProcessor.process(SynchronizationItemProcessor.java:52) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:192) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:1) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:348) at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.process(DefaultEntityEventManager.java:76) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.startItemSynchronization(AbstractSynchronizationExecutor.java:591) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.handleIcObject(AbstractSynchronizationExecutor.java:532) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor$DefaultResultHandler.handle(AbstractSynchronizationExecutor.java:2123) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService$2.handle(ConnIdIcConnectorService.java:250) at org.identityconnectors.framework.impl.api.SearchResultsHandlerLoggingProxy.handle(SearchResultsHandlerLoggingProxy.java:64) at org.identityconnectors.framework.impl.api.StreamHandlerUtil$ObjectStreamHandlerAdapter.handle(StreamHandlerUtil.java:101) at org.identityconnectors.framework.impl.api.BufferedResultsProxy.invoke(BufferedResultsProxy.java:262) at org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:94) at com.sun.proxy.$Proxy310.search(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.identityconnectors.framework.impl.api.LoggingProxy.invoke(LoggingProxy.java:83) at com.sun.proxy.$Proxy310.search(Unknown Source) at org.identityconnectors.framework.impl.api.AbstractConnectorFacade.search(AbstractConnectorFacade.java:179) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService.pageSearch(ConnIdIcConnectorService.java:272) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService.search(ConnIdIcConnectorService.java:267) at eu.bcvsolutions.idm.ic.service.impl.DefaultIcConnectorFacade.search(DefaultIcConnectorFacade.java:114) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.process(AbstractSynchronizationExecutor.java:292) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.process(DefaultSynchronizationService.java:172) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.process(DefaultSynchronizationService.java:1) at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.call(AbstractLongRunningTaskExecutor.java:171) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.call(DefaultSynchronizationService.java:143) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.call(DefaultSynchronizationService.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: org.modelmapper.MappingException: ModelMapper mapping errors: 1) Error mapping eu.bcvsolutions.idm.core.model.entity.IdmIdentity to eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto 1 error at org.modelmapper.internal.Errors.throwMappingExceptionIfErrorsExist(Errors.java:374) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:69) at org.modelmapper.ModelMapper.mapInternal(ModelMapper.java:497) at org.modelmapper.ModelMapper.map(ModelMapper.java:381) at eu.bcvsolutions.idm.core.config.domain.EntityToUuidConverter.convert(EntityToUuidConverter.java:80) at eu.bcvsolutions.idm.core.config.domain.EntityToUuidConverter.convert(EntityToUuidConverter.java:1) at org.modelmapper.internal.MappingEngineImpl.convert(MappingEngineImpl.java:336) at org.modelmapper.internal.MappingEngineImpl.setDestinationValue(MappingEngineImpl.java:240) at org.modelmapper.internal.MappingEngineImpl.propertyMap(MappingEngineImpl.java:180) at org.modelmapper.internal.MappingEngineImpl.typeMap(MappingEngineImpl.java:131) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:92) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:60) ... 103 more Caused by: java.lang.NullPointerException at org.modelmapper.internal.Errors$Converter.appliesTo(Errors.java:79) at org.modelmapper.internal.Errors.convert(Errors.java:150) at org.modelmapper.internal.Errors.format(Errors.java:122) at org.modelmapper.internal.Errors.addMessage(Errors.java:156) at org.modelmapper.internal.Errors.errorSettingValue(Errors.java:191) at org.modelmapper.internal.PropertyInfoImpl$MethodMutator.setValue(PropertyInfoImpl.java:118) at org.modelmapper.internal.MappingEngineImpl.setDestinationValue(MappingEngineImpl.java:249) at org.modelmapper.internal.MappingEngineImpl.propertyMap(MappingEngineImpl.java:180) at org.modelmapper.internal.MappingEngineImpl.typeMap(MappingEngineImpl.java:131) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:92) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:60) ... 113 more ------------------------- 2018-02-15T15:06:45.963+01:00: Operation count for [UPDATE_ENTITY] is [13] ------------------------- 2018-02-15T15:06:45.968+01:00: org.modelmapper.MappingException: ModelMapper mapping errors: 1) Converter eu.bcvsolutions.idm.core.config.domain.EntityToUuidConverter@1273c7d0 failed to convert eu.bcvsolutions.idm.core.model.entity.IdmIdentity to java.util.UUID. 1 error at org.modelmapper.internal.Errors.throwMappingExceptionIfErrorsExist(Errors.java:374) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:69) at org.modelmapper.ModelMapper.mapInternal(ModelMapper.java:497) at org.modelmapper.ModelMapper.map(ModelMapper.java:381) at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.toDto(AbstractReadDtoService.java:302) at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.lambda$0(AbstractReadDtoService.java:341) at java.util.ArrayList.forEach(ArrayList.java:1249) at eu.bcvsolutions.idm.core.api.service.AbstractReadDtoService.toDtos(AbstractReadDtoService.java:335) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityContractService.findAllByIdentity(DefaultIdmIdentityContractService.java:195) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityContractService$$FastClassBySpringCGLIB$$b0b02eec.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityContractService$$EnhancerBySpringCGLIB$$cbf00375.findAllByIdentity(<generated>) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService.evaluateState(DefaultIdmIdentityService.java:621) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService.toEntity(DefaultIdmIdentityService.java:141) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService.toEntity(DefaultIdmIdentityService.java:1) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService.saveInternal(AbstractReadWriteDtoService.java:85) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService$$FastClassBySpringCGLIB$$f52da88.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService$$EnhancerBySpringCGLIB$$a0309a0b.saveInternal(<generated>) at eu.bcvsolutions.idm.core.model.event.processor.identity.IdentitySaveProcessor.process(IdentitySaveProcessor.java:68) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:192) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:1) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:348) at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.process(DefaultEntityEventManager.java:76) at eu.bcvsolutions.idm.core.api.service.AbstractEventableDtoService.publish(AbstractEventableDtoService.java:53) at eu.bcvsolutions.idm.core.api.service.AbstractEventableDtoService$$FastClassBySpringCGLIB$$28b457d3.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmIdentityService$$EnhancerBySpringCGLIB$$a0309a0b.publish(<generated>) at eu.bcvsolutions.idm.acc.service.impl.IdentitySynchronizationExecutor.save(IdentitySynchronizationExecutor.java:215) at eu.bcvsolutions.idm.acc.service.impl.IdentitySynchronizationExecutor.doUpdateEntity(IdentitySynchronizationExecutor.java:249) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.resolveLinkedSituation(AbstractSynchronizationExecutor.java:1039) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.doItemSynchronization(AbstractSynchronizationExecutor.java:393) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.doItemSynchronization(DefaultSynchronizationService.java:219) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService$$FastClassBySpringCGLIB$$66d7ee75.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService$$EnhancerBySpringCGLIB$$7f2bfb0.doItemSynchronization(<generated>) at eu.bcvsolutions.idm.acc.event.processor.synchronization.SynchronizationItemProcessor.process(SynchronizationItemProcessor.java:52) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:192) at eu.bcvsolutions.idm.core.api.event.AbstractEntityEventProcessor.onApplicationEvent(AbstractEntityEventProcessor.java:1) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:348) at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.process(DefaultEntityEventManager.java:76) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.startItemSynchronization(AbstractSynchronizationExecutor.java:591) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.handleIcObject(AbstractSynchronizationExecutor.java:532) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor$DefaultResultHandler.handle(AbstractSynchronizationExecutor.java:2123) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService$2.handle(ConnIdIcConnectorService.java:250) at org.identityconnectors.framework.impl.api.SearchResultsHandlerLoggingProxy.handle(SearchResultsHandlerLoggingProxy.java:64) at org.identityconnectors.framework.impl.api.StreamHandlerUtil$ObjectStreamHandlerAdapter.handle(StreamHandlerUtil.java:101) at org.identityconnectors.framework.impl.api.BufferedResultsProxy.invoke(BufferedResultsProxy.java:262) at org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:94) at com.sun.proxy.$Proxy310.search(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.identityconnectors.framework.impl.api.LoggingProxy.invoke(LoggingProxy.java:83) at com.sun.proxy.$Proxy310.search(Unknown Source) at org.identityconnectors.framework.impl.api.AbstractConnectorFacade.search(AbstractConnectorFacade.java:179) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService.pageSearch(ConnIdIcConnectorService.java:272) at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConnectorService.search(ConnIdIcConnectorService.java:267) at eu.bcvsolutions.idm.ic.service.impl.DefaultIcConnectorFacade.search(DefaultIcConnectorFacade.java:114) at eu.bcvsolutions.idm.acc.service.impl.AbstractSynchronizationExecutor.process(AbstractSynchronizationExecutor.java:292) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.process(DefaultSynchronizationService.java:172) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.process(DefaultSynchronizationService.java:1) at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.call(AbstractLongRunningTaskExecutor.java:171) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.call(DefaultSynchronizationService.java:143) at eu.bcvsolutions.idm.acc.service.impl.DefaultSynchronizationService.call(DefaultSynchronizationService.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: org.modelmapper.MappingException: ModelMapper mapping errors: 1) Error mapping eu.bcvsolutions.idm.core.model.entity.IdmIdentity to eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto 1 error at org.modelmapper.internal.Errors.throwMappingExceptionIfErrorsExist(Errors.java:374) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:69) at org.modelmapper.ModelMapper.mapInternal(ModelMapper.java:497) at org.modelmapper.ModelMapper.map(ModelMapper.java:381) at eu.bcvsolutions.idm.core.config.domain.EntityToUuidConverter.convert(EntityToUuidConverter.java:80) at eu.bcvsolutions.idm.core.config.domain.EntityToUuidConverter.convert(EntityToUuidConverter.java:1) at org.modelmapper.internal.MappingEngineImpl.convert(MappingEngineImpl.java:336) at org.modelmapper.internal.MappingEngineImpl.setDestinationValue(MappingEngineImpl.java:240) at org.modelmapper.internal.MappingEngineImpl.propertyMap(MappingEngineImpl.java:180) at org.modelmapper.internal.MappingEngineImpl.typeMap(MappingEngineImpl.java:131) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:92) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:60) ... 103 more Caused by: java.lang.NullPointerException at org.modelmapper.internal.Errors$Converter.appliesTo(Errors.java:79) at org.modelmapper.internal.Errors.convert(Errors.java:150) at org.modelmapper.internal.Errors.format(Errors.java:122) at org.modelmapper.internal.Errors.addMessage(Errors.java:156) at org.modelmapper.internal.Errors.errorSettingValue(Errors.java:191) at org.modelmapper.internal.PropertyInfoImpl$MethodMutator.setValue(PropertyInfoImpl.java:118) at org.modelmapper.internal.MappingEngineImpl.setDestinationValue(MappingEngineImpl.java:249) at org.modelmapper.internal.MappingEngineImpl.propertyMap(MappingEngineImpl.java:180) at org.modelmapper.internal.MappingEngineImpl.typeMap(MappingEngineImpl.java:131) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:92) at org.modelmapper.internal.MappingEngineImpl.map(MappingEngineImpl.java:60) ... 113 more ------------------------- 2018-02-15T15:06:45.975+01:00: Operation count for [UPDATE_ENTITY] is [13]
Error is throw by assert notnull in https://github.com/bcvsolutions/CzechIdMng/blob/7.7.0/Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/dto/IdmIdentityDto.java#L197
But mapper wrap message "Identity state is required" to ModelMapper mapping errors and java.lang.NullPointerException even if original message is different!!
We solved this problem with remove assert not null. Thanks guys for your help.
Updated by Radek Tomiška almost 7 years ago
- Due date set to 02/22/2018
- Start date changed from 02/15/2018 to 02/22/2018
- Follows Task #978: Dto mappers - new layer added
Updated by Radek Tomiška almost 7 years ago
- Due date deleted (
02/22/2018) - Status changed from Resolved to Closed
- Start date deleted (
02/22/2018)
Actions