[midPoint] DeltaBuilder.deltaFor issue mP 3.8, 3.9
Pavol Mederly
mederly at evolveum.com
Thu Mar 28 18:29:56 CET 2019
Hello Lubomir,
the message is "*java.lang.IllegalStateException: Conflicts watchers
leaking: reached limit of 10*" - with (almost) 100% certainty I can say
this is not related to the particular code snippet, namely with the
delta creation.
What looks suspicious is the fact that you are explicitly modifying an
object from within object template.
Maybe you get a cycle (modification-in-modification) there.
Best regards,
Pavol Mederly
Software developer
evolveum.com
On 28.03.2019 17:32, Lubomir Odlevak wrote:
> I have tested the following code snippet and it works in MP 3.7.2. But
> It seems that doesn't work in MP 3.8, 3.9 . Any suggestions how to fix
> it ?
>
> <objectTemplate>
> <mapping>
> ...
> def delta = DeltaBuilder.deltaFor(UserType.class,
> midpoint.getPrismContext()).item(UserType.F_DESCRIPTION).add("new_description").asObjectDelta(user.getOid())
>
> midpoint.modifyObject(delta);
> ...
> </mapping>
> </objectTemplate>
>
> I have got following error message in mP version 3.8, 3.9:
>
> om.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
> java.lang.IllegalStateException: Conflicts watchers leaking: reached
> limit of 10:
> [ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false},
> ConflictWatcherImpl{oid='cbf2cf23-d027-4eed-8dc8-7a289a15d47d',
> initialized=true, expectedVersion=194, hasConflict=false,
> objectDeleted=false}] in (old) expression in mapping in template
> mapping 'null' in
> objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User Template
> (FTE,OTHER,C,TE)) in (old) expression in mapping in template mapping
> 'null' in objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User
> Template (FTE,OTHER,C,TE)) in (old) expression in mapping in template
> mapping 'null' in
> objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User Template
> (FTE,OTHER,C,TE)) in (old) expression in mapping in template mapping
> 'null' in objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User
> Template (FTE,OTHER,C,TE)) in (old) expression in mapping in template
> mapping 'null' in
> objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User Template
> (FTE,OTHER,C,TE)) in (old) expression in mapping in template mapping
> 'null' in objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User
> Template (FTE,OTHER,C,TE)) in (old) expression in mapping in template
> mapping 'null' in
> objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User Template
> (FTE,OTHER,C,TE)) in (old) expression in mapping in template mapping
> 'null' in objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User
> Template (FTE,OTHER,C,TE)) in (old) expression in mapping in template
> mapping 'null' in
> objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User Template
> (FTE,OTHER,C,TE)) in (new) expression in mapping in template mapping
> 'null' in objectTemplate:00000000-780b-43cf-8e00-d9889f4ff478(User
> Template (FTE,OTHER,C,TE))
>
> Thanks
> Lubomir Odlevak
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190328/c485c89b/attachment.htm>
More information about the midPoint
mailing list