Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6178

Error when deleting task result repeatedly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Hogwarts

    • Subscription:
      Internal

      Description

      1. Create a "empty" recompute task e.g. by recomputing members of an empty organization
      2. Wait until the task finishes
      3. Open the task
      4. Click on "Clean up task results" button - there will be green success message
      5. Click on this button again - there will be an error message:

      com.evolveum.midpoint.util.exception.SystemException: Cannot marshall property value PPV(null): marshaller returned null while converting property result in ObjectDelta(TaskType:d0402ee0-1e4b-44fb-816e-f90eec3f1fb4,MODIFY: PropertyDeltaImpl( / {.../common/common-3}result, DELETE), PropertyDeltaImpl( / {.../common/common-3}resultStatus, DELETE))
      	at com.evolveum.midpoint.repo.sql.helpers.BaseHelper.handleGeneralCheckedException(BaseHelper.java:174)
      	at com.evolveum.midpoint.repo.sql.SqlAuditServiceImpl.lambda$auditAttempt$1(SqlAuditServiceImpl.java:470)
      	at org.hibernate.jdbc.WorkExecutor.executeWork(WorkExecutor.java:37)
      	at org.hibernate.internal.SessionImpl$1.accept(SessionImpl.java:2323)
      	at org.hibernate.internal.SessionImpl$1.accept(SessionImpl.java:2320)
      	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.coordinateWork(JdbcCoordinatorImpl.java:320)
      	at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2342)
      	at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2327)
      	at com.evolveum.midpoint.repo.sql.SqlAuditServiceImpl.auditAttempt(SqlAuditServiceImpl.java:426)
      	at com.evolveum.midpoint.repo.sql.SqlAuditServiceImpl.audit(SqlAuditServiceImpl.java:103)
      	at com.evolveum.midpoint.init.AuditServiceProxy.audit(AuditServiceProxy.java:84)
      	at jdk.internal.reflect.GeneratedMethodAccessor676.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at com.evolveum.midpoint.util.aspect.MidpointInterceptor.invoke(MidpointInterceptor.java:32)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
      	at com.sun.proxy.$Proxy146.audit(Unknown Source)
      	at com.evolveum.midpoint.model.impl.util.AuditHelper.audit(AuditHelper.java:90)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.auditEvent(Clockwork.java:1433)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.audit(Clockwork.java:1263)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:569)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:204)
      	at com.evolveum.midpoint.model.impl.controller.ModelController.executeChangesNonRaw(ModelController.java:421)
      	at com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:389)
      	at com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:334)
      	at jdk.internal.reflect.GeneratedMethodAccessor683.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at com.evolveum.midpoint.util.aspect.MidpointInterceptor.invoke(MidpointInterceptor.java:32)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
      	at com.sun.proxy.$Proxy149.executeChanges(Unknown Source)
      	at jdk.internal.reflect.GeneratedMethodAccessor683.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:521)
      	at com.sun.proxy.$Proxy236.executeChanges(Unknown Source)
      	at com.evolveum.midpoint.web.page.admin.server.PageTask.saveTaskChanges(PageTask.java:409)
      	at com.evolveum.midpoint.web.page.admin.server.PageTask.saveTaskChanges(PageTask.java:390)
      	at com.evolveum.midpoint.web.page.admin.server.PageTask.access$600(PageTask.java:79)
      	at com.evolveum.midpoint.web.page.admin.server.PageTask$11.onClick(PageTask.java:378)
      	at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:85)
      	at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:127)
      	at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:598)
      	at org.apache.wicket.core.request.handler.ListenerRequestHandler.internalInvoke(ListenerRequestHandler.java:306)
      	at org.apache.wicket.core.request.handler.ListenerRequestHandler.invoke(ListenerRequestHandler.java:280)
      	at org.apache.wicket.core.request.handler.ListenerRequestHandler.invokeListener(ListenerRequestHandler.java:222)
      	at org.apache.wicket.core.request.handler.ListenerRequestHandler.respond(ListenerRequestHandler.java:208)
      	at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:914)
      	at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)
      	at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:282)
      	at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)
      	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)
      	at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:275)
      	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
      	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at com.evolveum.midpoint.web.util.MidPointProfilingServletFilter.doFilter(MidPointProfilingServletFilter.java:85)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
      	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:84)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:276)
      	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
      	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at com.evolveum.midpoint.web.security.filter.MidpointAnonymousAuthenticationFilter.doFilter(MidpointAnonymousAuthenticationFilter.java:90)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:155)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at com.evolveum.midpoint.web.security.filter.RedirectForLoginPagesWithAuthenticationFilter.doFilterInternal(RedirectForLoginPagesWithAuthenticationFilter.java:39)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:100)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter$VirtualFilterChain.doFilter(MidpointAuthFilter.java:289)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter.processingOfAuthenticatedRequest(MidpointAuthFilter.java:243)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter.doFilterInternal(MidpointAuthFilter.java:180)
      	at com.evolveum.midpoint.web.security.filter.MidpointAuthFilter.doFilter(MidpointAuthFilter.java:98)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at com.evolveum.midpoint.web.security.filter.TranslateExeptionFilter.doFilterInternal(TranslateExeptionFilter.java:30)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:155)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
      	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
      	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
      	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
      	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)
      	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at com.evolveum.midpoint.web.boot.TrailingSlashRedirectingFilter.doFilterInternal(TrailingSlashRedirectingFilter.java:60)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      	at com.evolveum.midpoint.web.boot.NodeIdHeaderValve.invoke(NodeIdHeaderValve.java:46)
      	at com.evolveum.midpoint.web.boot.TomcatRootValve.invoke(TomcatRootValve.java:62)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: com.evolveum.midpoint.repo.sql.util.DtoTranslationException: Cannot marshall property value PPV(null): marshaller returned null while converting property result in ObjectDelta(TaskType:d0402ee0-1e4b-44fb-816e-f90eec3f1fb4,MODIFY: PropertyDeltaImpl( / {.../common/common-3}result, DELETE), PropertyDeltaImpl( / {.../common/common-3}resultStatus, DELETE))
      	at com.evolveum.midpoint.repo.sql.data.audit.RObjectDeltaOperation.toRepo(RObjectDeltaOperation.java:354)
      	at com.evolveum.midpoint.repo.sql.SqlAuditServiceImpl.lambda$auditAttempt$1(SqlAuditServiceImpl.java:467)
      	... 161 common frames omitted
      Caused by: com.evolveum.midpoint.util.exception.SchemaException: Cannot marshall property value PPV(null): marshaller returned null while converting property result in ObjectDelta(TaskType:d0402ee0-1e4b-44fb-816e-f90eec3f1fb4,MODIFY: PropertyDeltaImpl( / {.../common/common-3}result, DELETE), PropertyDeltaImpl( / {.../common/common-3}resultStatus, DELETE))
      	at com.evolveum.midpoint.schema.DeltaConvertor.toObjectDeltaType(DeltaConvertor.java:213)
      	at com.evolveum.midpoint.schema.DeltaConvertor.toObjectDeltaTypeXml(DeltaConvertor.java:231)
      	at com.evolveum.midpoint.repo.sql.data.audit.RObjectDeltaOperation.toRepo(RObjectDeltaOperation.java:307)
      	... 162 common frames omitted
      Caused by: com.evolveum.midpoint.util.exception.SchemaException: Cannot marshall property value PPV(null): marshaller returned null while converting property result
      	at com.evolveum.midpoint.schema.DeltaConvertor.toItemDeltaTypes(DeltaConvertor.java:383)
      	at com.evolveum.midpoint.schema.DeltaConvertor.toObjectDeltaType(DeltaConvertor.java:211)
      	... 164 common frames omitted
      Caused by: com.evolveum.midpoint.util.exception.SchemaException: Cannot marshall property value PPV(null): marshaller returned null
      	at com.evolveum.midpoint.prism.impl.marshaller.PrismMarshaller.serializePropertyValue(PrismMarshaller.java:485)
      	at com.evolveum.midpoint.prism.impl.marshaller.PrismMarshaller.marshalItemValue(PrismMarshaller.java:215)
      	at com.evolveum.midpoint.prism.impl.marshaller.PrismMarshaller.marshalPrismValueAsRoot(PrismMarshaller.java:106)
      	at com.evolveum.midpoint.prism.impl.marshaller.PrismSerializerImpl.serialize(PrismSerializerImpl.java:122)
      	at com.evolveum.midpoint.schema.DeltaConvertor.toXNode(DeltaConvertor.java:423)
      	at com.evolveum.midpoint.schema.DeltaConvertor.addModValues(DeltaConvertor.java:398)
      	at com.evolveum.midpoint.schema.DeltaConvertor.toItemDeltaTypes(DeltaConvertor.java:381)
      	... 165 common frames omitted 

      Similar error occurs when double clicking on clearing environmental stats button.

      The problem is that there is a DELETE delta with the value of null. It should be either REPLACE (to no values) or no delta at all.

        Attachments

          Activity

            People

            Assignee:
            mederly Pavol Mederly
            Reporter:
            mederly Pavol Mederly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: