[midPoint] DeltaBuilder.deltaFor issue mP 3.8, 3.9

Lubomir Odlevak odlevak.lubomir at gmail.com
Thu Mar 28 17:32:05 CET 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190328/edf9e939/attachment.htm>


More information about the midPoint mailing list