[midPoint] Live Sync Error, synchronize is still UNKNOWN during cleanup

Jason Everling jeverling at bshp.edu
Fri Sep 1 15:33:30 CEST 2017


I ended up getting to the cause or at least it is working now, and for some
reason it worked before with it for a year straight without fail. It was
the last else statement in my sync script, I went ahead and removed it and
now live sync works. The statement is below, which is 86-89 left over from
the sample when I first setup the scriptedsql resource.

log.ok("Sync script: found "+result.size()+" events to sync")
return result;
} else { // action not implemented
log.error("Sync script: action '"+action+"' is not implemented in this
script")
return null;
}

JASON

On Thu, Aug 31, 2017 at 8:00 PM, Jason Everling <jeverling at bshp.edu> wrote:

> Our sql server had crashed and the live sync task in midpoint failed
> because the resource was down but now I cannot get live sync to work again.
>
> I have ran a full reconcile on the resource, no errors or problems,
> deleted the original live sync task and still get this same error. Deleted
> the live sync token also.
>
> Any ideas, logs at trace/debug do not give any insights. I can send fresh
> debug logs but the logs contain student information so I would rather send
> off list.
>
> Internal Error: Subresult com.evolveum.midpoint.provisio
> ning.ucf.api.ConnectorInstance.fetchChanges of operation
> com.evolveum.midpoint.provisioning.api.ProvisioningService.synchronize is
> still UNKNOWN during cleanup; during handling of exception
> java.lang.NullPointerException
>
> 2017-08-31 19:48:31,054 [] [midPointScheduler_Worker-8] ERROR
> (com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl):
> Synchronization error: unexpected problem: null
> java.lang.NullPointerException: null
>     at com.evolveum.midpoint.provisioning.ucf.impl.
> ConnectorInstanceIcfImpl.getChangesFromSyncDeltas(
> ConnectorInstanceIcfImpl.java:2541) ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.ucf.impl.
> ConnectorInstanceIcfImpl.fetchChanges(ConnectorInstanceIcfImpl.java:2054)
> ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.
> fetchChanges(ResourceObjectConverter.java:1458)
> ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.impl.ShadowCache.
> synchronize(ShadowCache.java:1067) ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.
> synchronize(ProvisioningServiceImpl.java:426) ~[provisioning-impl-3.2.jar:
> na]
>     at com.evolveum.midpoint.model.impl.sync.LiveSyncTaskHandler.
> run(LiveSyncTaskHandler.java:187) [model-impl-3.2.jar:na]
>     at com.evolveum.midpoint.task.quartzimpl.execution.
> JobExecutor.executeHandler(JobExecutor.java:479)
> [task-quartz-impl-3.2.jar:na]
>     at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.
> executeRecurrentTask(JobExecutor.java:359) [task-quartz-impl-3.2.jar:na]
>     at com.evolveum.midpoint.task.quartzimpl.execution.
> JobExecutor.execute(JobExecutor.java:162) [task-quartz-impl-3.2.jar:na]
>     at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> [quartz-2.1.3.jar:na]
>     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
> [quartz-2.1.3.jar:na]
> 2017-08-31 19:48:31,055 [] [midPointScheduler_Worker-8] ERROR
> (com.evolveum.midpoint.model.impl.sync.LiveSyncTaskHandler): Live Sync:
> Internal Error:
> java.lang.IllegalStateException: Subresult com.evolveum.midpoint.
> provisioning.ucf.api.ConnectorInstance.fetchChanges of operation
> com.evolveum.midpoint.provisioning.api.ProvisioningService.synchronize is
> still UNKNOWN during cleanup; during handling of exception
> java.lang.NullPointerException
>     at com.evolveum.midpoint.schema.result.OperationResult.
> cleanupResult(OperationResult.java:1274) ~[schema-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.util.ProvisioningUtil.
> recordFatalError(ProvisioningUtil.java:419) ~[provisioning-impl-3.2.jar:
> na]
>     at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.
> synchronize(ProvisioningServiceImpl.java:452) ~[provisioning-impl-3.2.jar:
> na]
>     at com.evolveum.midpoint.model.impl.sync.LiveSyncTaskHandler.
> run(LiveSyncTaskHandler.java:187) ~[model-impl-3.2.jar:na]
>     at com.evolveum.midpoint.task.quartzimpl.execution.
> JobExecutor.executeHandler(JobExecutor.java:479)
> [task-quartz-impl-3.2.jar:na]
>     at com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.
> executeRecurrentTask(JobExecutor.java:359) [task-quartz-impl-3.2.jar:na]
>     at com.evolveum.midpoint.task.quartzimpl.execution.
> JobExecutor.execute(JobExecutor.java:162) [task-quartz-impl-3.2.jar:na]
>     at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> [quartz-2.1.3.jar:na]
>     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
> [quartz-2.1.3.jar:na]
> Caused by: java.lang.NullPointerException: null
>     at com.evolveum.midpoint.provisioning.ucf.impl.
> ConnectorInstanceIcfImpl.getChangesFromSyncDeltas(
> ConnectorInstanceIcfImpl.java:2541) ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.ucf.impl.
> ConnectorInstanceIcfImpl.fetchChanges(ConnectorInstanceIcfImpl.java:2054)
> ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.
> fetchChanges(ResourceObjectConverter.java:1458)
> ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.impl.ShadowCache.
> synchronize(ShadowCache.java:1067) ~[provisioning-impl-3.2.jar:na]
>     at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.
> synchronize(ProvisioningServiceImpl.java:426) ~[provisioning-impl-3.2.jar:
> na]
>     ... 6 common frames omitted
>
>
>
> JASON
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170901/fc777f2f/attachment.htm>


More information about the midPoint mailing list