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

Show LiveSync errors in GUI

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: backlog
    • Component/s: None
    • Labels:
      None

      Description

      Errors that occur during LiveSync are now simply logged. They are not shown in GUI. This would be perhaps quite helpful.

      2018-08-16 18:31:43,077 [] [midPointScheduler_Worker-7] ERROR (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: Error in synchronization on resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile) for situation UNMATCHED: ExpressionEvaluationException: java.lang.IllegalStateException: Problem: jurajX in expression in mapping in inbound expression for {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}name in resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile)({.../common/common-3}input=jurajX; ) in expression in mapping in inbound expression for {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}name in resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile). Change was ResourceObjectShadowChangeDescription(objectDelta=null, currentShadow=shadow:503e6cd4-5ec7-49bb-802c-cbfa648c7208(jurajX), oldShadow=shadow:503e6cd4-5ec7-49bb-802c-cbfa648c7208(jurajX), sourceChannel=http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#liveSync, resource=resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile))
      com.evolveum.midpoint.util.exception.ExpressionEvaluationException: java.lang.IllegalStateException: Problem: jurajX in expression in mapping in inbound expression for {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}name in resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile)({.../common/common-3}input=jurajX; ) in expression in mapping in inbound expression for {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}name in resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile)
      	at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.lambda$evaluateRelativeExpression$0(AbstractValueTransformationExpressionEvaluator.java:437)
      	at com.evolveum.midpoint.util.MiscUtil.carthesian(MiscUtil.java:378)
      	at com.evolveum.midpoint.util.MiscUtil.carthesian(MiscUtil.java:368)
      	at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluateRelativeExpression(AbstractValueTransformationExpressionEvaluator.java:461)
      	at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluate(AbstractValueTransformationExpressionEvaluator.java:118)
      	at com.evolveum.midpoint.repo.common.expression.Expression.evaluateExpressionEvaluators(Expression.java:213)
      	at com.evolveum.midpoint.repo.common.expression.Expression.evaluate(Expression.java:149)
      	at com.evolveum.midpoint.model.common.mapping.MappingImpl.evaluateExpression(MappingImpl.java:1080)
      	at com.evolveum.midpoint.model.common.mapping.MappingImpl.evaluateBody(MappingImpl.java:459)
      	at com.evolveum.midpoint.model.common.mapping.MappingImpl.evaluate(MappingImpl.java:382)
      	at com.evolveum.midpoint.model.impl.lens.projector.MappingEvaluator.evaluateMapping(MappingEvaluator.java:127)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.InboundProcessor.evaluateInboundMapping(InboundProcessor.java:829)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.InboundProcessor.processInboundMappingsForProjection(InboundProcessor.java:284)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.InboundProcessor.processInboundFocal(InboundProcessor.java:214)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.InboundProcessor.processInbound(InboundProcessor.java:156)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.FocusProcessor.lambda$processFocusFocus$0(FocusProcessor.java:196)
      	at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:170)
      	at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:150)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.FocusProcessor.processFocusFocus(FocusProcessor.java:193)
      	at com.evolveum.midpoint.model.impl.lens.projector.focus.FocusProcessor.processFocus(FocusProcessor.java:126)
      	at com.evolveum.midpoint.model.impl.lens.projector.Projector.lambda$projectInternal$1(Projector.java:214)
      	at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:170)
      	at com.evolveum.midpoint.model.impl.lens.projector.Projector.projectInternal(Projector.java:212)
      	at com.evolveum.midpoint.model.impl.lens.projector.Projector.project(Projector.java:101)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:437)
      	at com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:196)
      	at com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.reactToChange(SynchronizationServiceImpl.java:913)
      	at com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.notifyChange(SynchronizationServiceImpl.java:201)
      	at com.evolveum.midpoint.provisioning.impl.ChangeNotificationDispatcherImpl.notifyChange(ChangeNotificationDispatcherImpl.java:146)
      	at com.evolveum.midpoint.provisioning.impl.ShadowCache.notifyResourceObjectChangeListeners(ShadowCache.java:2229)
      	at com.evolveum.midpoint.provisioning.impl.ShadowCache.processSynchronization(ShadowCache.java:2188)
      	at com.evolveum.midpoint.provisioning.impl.ShadowCache.synchronize(ShadowCache.java:2133)
      	at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.synchronize(ProvisioningServiceImpl.java:377)
      	at com.evolveum.midpoint.model.impl.sync.LiveSyncTaskHandler.run(LiveSyncTaskHandler.java:181)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executePlainTaskHandler(JobExecutor.java:671)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:660)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:473)
      	at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:192)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: com.evolveum.midpoint.util.exception.ExpressionEvaluationException: java.lang.IllegalStateException: Problem: jurajX in expression in mapping in inbound expression for {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}name in resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3fafe(Localhost CSVfile)
      	at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:120)
      	at com.evolveum.midpoint.model.common.expression.script.ScriptExpression.evaluate(ScriptExpression.java:106)
      	at com.evolveum.midpoint.model.common.expression.script.ScriptExpressionEvaluator.transformSingleValue(ScriptExpressionEvaluator.java:63)
      	at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.lambda$evaluateRelativeExpression$0(AbstractValueTransformationExpressionEvaluator.java:429)
      	... 39 common frames omitted
      Caused by: javax.script.ScriptException: java.lang.IllegalStateException: Problem: jurajX
      	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:324)
      	at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:72)
      	at javax.script.CompiledScript.eval(CompiledScript.java:92)
      	at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:116)
      	... 42 common frames omitted
      Caused by: java.lang.IllegalStateException: Problem: jurajX
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)
      	at Script1.run(Script1.groovy:3)
      	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:321)
      	... 45 common frames omitted
      

      See https://github.com/Evolveum/midpoint/blob/0141a4b655246d2802215142f401644037f12f00/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationServiceImpl.java#L920.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mederly Pavol Mederly
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: