Actions
Defect #3181
closedReport GeneralEntityExport doesn't work in EAV values agenda
Start date:
08/02/2022
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
Usecase we want generating report GeneralEntityExport for all users that has one of eav values. Generating was started with the filter:
null For filtering is used filter: [attributeId=6f10473a-0195-4beb-a2e9-56af1f95fc71, addOwnerDto=true]
And ended with the error:
Aug 2 15:51:25 ******** czechidm[6116]: java.lang.NullPointerException: null Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.io.FileInputStream.<init>(FileInputStream.java:149) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.rpt.report.general.AbstractEntityExport.finishReport(AbstractEntityExport.java:123) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.rpt.report.general.AbstractEntityExport.end(AbstractEntityExport.java:176) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.rpt.report.general.AbstractEntityExport.end(AbstractEntityExport.java:46) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.notifyEnd(AbstractLongRunningTaskExecutor.java:297) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.notifyLongRunningTask(DefaultEntityEventManager.java:987) Aug 2 15:51:25 ******** czechidm[6116]: #011at jdk.internal.reflect.GeneratedMethodAccessor2187.invoke(Unknown Source) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.lang.reflect.Method.invoke(Method.java:566) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:261) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:179) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.transaction.event.ApplicationListenerMethodTransactionalAdapter.onApplicationEvent(ApplicationListenerMethodTransactionalAdapter.java:71) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:373) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.publishEvent(DefaultEntityEventManager.java:415) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.lambda$completeEvent$13(DefaultEntityEventManager.java:1549) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.completeEvent(DefaultEntityEventManager.java:1547) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.model.service.impl.DefaultEntityEventManager.completeEvent(DefaultEntityEventManager.java:953) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor.call(AbstractLongRunningTaskExecutor.java:277) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.scheduler.api.service.AbstractLongRunningTaskExecutor$$FastClassBySpringCGLIB$$f9eae371.invoke(<generated>) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.rpt.report.general.GeneralEntityExport$$EnhancerBySpringCGLIB$$2c4a5bd.call(<generated>) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) Aug 2 15:51:25 ******** czechidm[6116]: #011at eu.bcvsolutions.idm.core.config.DelegatingTransactionContextRunnable.run(DelegatingTransactionContextRunnable.java:39) Aug 2 15:51:25 ******** czechidm[6116]: #011at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:84) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) Aug 2 15:51:25 ******** czechidm[6116]: #011at java.base/java.lang.Thread.run(Thread.java:829)
Updated by Tomáš Doischer over 2 years ago
- Status changed from New to In Progress
- Target version set to 13.0.0
Updated by Tomáš Doischer over 2 years ago
- Sprint set to Sprint 12.3-1 (srp 03 - srp 17)
Updated by Tomáš Doischer over 2 years ago
- % Done changed from 0 to 60
I managed to fix this. The import now works but it exports form values (not their owners; this is not an identity agenda but a form value agenda so you only have identity ids).
I wrote a test but it fails in the strange way and will need some more work.
PR (draft): https://github.com/bcvsolutions/CzechIdMng/pull/244
Updated by Tomáš Doischer over 2 years ago
- Sprint changed from Sprint 12.3-1 (srp 03 - srp 17) to Sprint 12.3-2 (srp 17 - srp 31)
Updated by Tomáš Doischer over 2 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Tomáš Doischer to Roman Kučera
- % Done changed from 60 to 80
Test fixed.
PR: https://github.com/bcvsolutions/CzechIdMng/pull/244
@kucerar, can you give me feedback?
Updated by Roman Kučera over 2 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Roman Kučera to Tomáš Doischer
- % Done changed from 80 to 100
LGTM, merged
Updated by Tomáš Doischer almost 2 years ago
- Status changed from Resolved to Closed
Actions