Defect #546
closedTwo changes in one commit AUDIT
100%
Description
Project has encountered a persistent error in the method getNameChangedColumns, in synchronization throw error EntityNotFoundException.
For now just catch errror. Get better solution for get actual entity in this method.
commit:
https://github.com/bcvsolutions/CzechIdMng/commit/2af4d55c6e7d7b9bf117507e3770ee430ef8ab4a
Updated by Vít Švanda over 7 years ago
- Priority changed from Normal to High
- Target version set to Diamond (7.4.0)
Updated by Ondřej Kopr over 7 years ago
Try simulate same behavior as on project: Synchronization, Synchronization from system that create from database import.
Updated by Ondřej Kopr over 7 years ago
On project i can simulate this behavior:
2017-07-04 15:26:30.631 INFO 32527 --- [nio-8009-exec-2] i.c.n.s.i.DefaultEmailNotificationSender : Adding email notification to queue [eu.bcvsolutions.idm.core.notification.api.dto.IdmNotificationLogDto[ id=61a53202-49cb-48e1-8e00-1c6841778bbb ]] 2017-07-04 15:26:30.678 INFO 32527 --- [nio-8009-exec-2] e.b.i.c.n.service.impl.DefaultEmailer : Test mode for emailer is enabled. Email [eu.bcvsolutions.idm.core.notification.api.dto.IdmEmailLogDto[ id=f4f2207e-37ee-4b55-9045-4ff920b9b875 ]] will be logged only. 2017-07-04 15:26:40.141 INFO 32527 --- [nio-8009-exec-7] e.b.i.c.n.s.i.DefaultNotificationManager : Sending notification [eu.bcvsolutions.idm.core.notification.api.dto.IdmNotificationLogDto[ id=7e39af2d-064a-4528-b89d-fddee012133a ]] 2017-07-04 15:26:40.146 INFO 32527 --- [nio-8009-exec-7] i.c.n.s.i.DefaultEmailNotificationSender : Adding email notification to queue [eu.bcvsolutions.idm.core.notification.api.dto.IdmNotificationLogDto[ id=7e39af2d-064a-4528-b89d-fddee012133a ]] 2017-07-04 15:26:40.173 INFO 32527 --- [nio-8009-exec-7] e.b.i.c.n.service.impl.DefaultEmailer : Test mode for emailer is enabled. Email [eu.bcvsolutions.idm.core.notification.api.dto.IdmEmailLogDto[ id=a0056a7c-0b18-4d1a-ae52-8a3cad8eaf15 ]] will be logged only. 2017-07-04 15:34:08.869 INFO 32527 --- [nio-8009-exec-7] .e.p.AopkOrgCreateCheckLdapCodeProcessor : Empty organization type, continuing. 2017-07-04 15:34:08.984 INFO 32527 --- [nio-8009-exec-7] e.b.i.c.m.s.impl.DefaultAuditService : Audit service entity not found. Method [getNameChangedColumns] javax.persistence.EntityNotFoundException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmTreeType with id 9afeec3e-5b4e-4805-9783-88934251a222 at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$JpaEntityNotFoundDelegate.handleEntityNotFound(EntityManagerFactoryBuilderImpl.java:183) at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:262) at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:176) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:286) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:185) at eu.bcvsolutions.idm.core.model.entity.IdmTreeType_$$_jvst660_2b.equals(IdmTreeType_$$_jvst660_2b.java) at eu.bcvsolutions.idm.core.model.service.impl.DefaultAuditService.getNameChangedColumns(DefaultAuditService.java:209) at sun.reflect.GeneratedMethodAccessor1742.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:302) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy328.getNameChangedColumns(Unknown Source)
Updated by Ondřej Kopr over 7 years ago
- Priority changed from High to Normal
- % Done changed from 0 to 30
This problem is definitely by importing some data via DB inserts. For previous revision did not exists some attributes. I can try to get this attribute from another resource (directly from repositories and etc.).
Updated by Ondřej Kopr over 7 years ago
- Status changed from In Progress to Closed
- % Done changed from 30 to 100
I close this ticket, problem is only when import some entities trough sql imports.