[Midpoint-dev] Exception - More than one items matching {http:// midpoint.evolveum.com/xml/ns/public/common/common-3}object in container authorization.

Prabhakara Rao Doddapaneni dp_rao at yahoo.com
Wed Nov 1 17:36:09 CET 2017


Hello All,
What causes the above exception and how to fix it?  I see this exception very frequent (not always) when i try to obtain shadow object with a given Key of value of the resource object from my java class.  The following is the stack trace:

com.evolveum.midpoint.util.exception.SystemException: More than one items matching {http://midpoint.evolveum.com/xml/ns/public/common/common-3}object in container authorization                         at com.evolveum.midpoint.prism.xjc.PrismForJAXBUtil.getContainer(PrismForJAXBUtil.java:202) ~[prism-3.5.0-SNAPSHOT.jar:na]                                                                                  at com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationType.getObject(AuthorizationType.java:172) ~[schema-3.5.0-SNAPSHOT.jar:na]                                                             at com.evolveum.midpoint.security.api.Authorization.getObject(Authorization.java:83) ~[security-api-3.5.0-SNAPSHOT.jar:na]                                                                                  at com.evolveum.midpoint.security.impl.SecurityEnforcerImpl.preProcessObjectFilterInternal(SecurityEnforcerImpl.java:866) ~[security-impl-3.5.0-SNAPSHOT.jar:na]                                            at com.evolveum.midpoint.security.impl.SecurityEnforcerImpl.preProcessObjectFilter(SecurityEnforcerImpl.java:817) ~[security-impl-3.5.0-SNAPSHOT.jar:na]                                                    at com.evolveum.midpoint.model.impl.controller.ModelController.preProcessQuerySecurity(ModelController.java:1824) ~[model-impl-3.5.0-SNAPSHOT.jar:na]                                                       at com.evolveum.midpoint.model.impl.controller.ModelController.searchObjects(ModelController.java:796) ~[model-impl-3.5.0-SNAPSHOT.jar:na]                                                                  ... 12 common frames omitted                                                                  Caused by: com.evolveum.midpoint.util.exception.SchemaException: More than one items matching {http://midpoint.evolveum.com/xml/ns/public/common/common-3}object in container authorization                         at com.evolveum.midpoint.prism.PrismContainerValue.findItemByQName(PrismContainerValue.java:691) ~[prism-3.5.0-SNAPSHOT.jar:na]                                                                             at com.evolveum.midpoint.prism.PrismContainerValue.findCreateItem(PrismContainerValue.java:597) ~[prism-3.5.0-SNAPSHOT.jar:na]                                                                              at com.evolveum.midpoint.prism.PrismContainerValue.findOrCreateContainer(PrismContainerValue.java:740) ~[prism-3.5.0-SNAPSHOT.jar:na]                                                                       at com.evolveum.midpoint.prism.xjc.PrismForJAXBUtil.getContainer(PrismForJAXBUtil.java:200) ~[prism-3.5.0-SNAPSHOT.jar:na]                                                                                  ... 19 common frames omitted
Is there an example of getting shadow object using java with the resource oid and the account object's key value in hand?
Thanks,Prabhakar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20171101/c52b0a5e/attachment.html>


More information about the midPoint-dev mailing list