[midPoint] RE. Missing namespace in object template
Deepak Natarajan
dnataraj at trilobytesystems.com
Tue Oct 29 17:41:44 CET 2013
Hello Everyone -
I'm getting a strange error when I create a new user in midpoint - which triggers usage of the default user template (I can attach the entire log if needed) :
2013-10-29 16:27:34,049 [WEB] [http-bio-8080-exec-1] INFO (com.evolveum.midpoint.audit.log): 2013-10-29T16:27:34.048+0000 eid=1383064054049-0-1, et=CREATE_SESSION, es=REQUEST, sid=78ADEEEB6BDC34BA7A7020E30E9EA273, tid=1383064054046-0-1, toid=null, hid=localhost, I=ObjectType:00000000-0000-0000-0000-000000000002({http://midpoint.evolveum.com/xml/ns/public/common/common-2a}user), T=null, TO=null, D=[], ch=http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#user, o=SUCCESS, p=administrator, m=null
2013-10-29 16:30:32,823 [MODEL] [http-bio-8080-exec-10] INFO (com.evolveum.midpoint.audit.log): 2013-10-29T16:30:32.821+0000 eid=1383064232821-0-1, et=ADD_OBJECT, es=REQUEST, sid=null, tid=1383064232795-0-1, toid=null, hid=null, I=ObjectType:00000000-0000-0000-0000-000000000002({http://midpoint.evolveum.com/xml/ns/public/common/common-2a}user), T=null, TO=null, D=[null:ADD], ch=http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#user, o=null, p=null, m=
2013-10-29 16:30:32,965 [MODEL] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.common.mapping.Mapping): Error evaluating mapping in object template mapping in objectTemplate:c0c010c0-d34d-b33f-f00d-777111111111(Default User Template) while processing user user:null(0ef6733a-e6f5-4d23-8139-579bb2af3a43): Missing namespace in reference type in {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}resourceRef
java.lang.IllegalArgumentException: Missing namespace in reference type in {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}resourceRef
at com.evolveum.midpoint.util.DOMUtil.validateNonEmptyQName(DOMUtil.java:1060) ~[util-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseReferenceValue(PrismDomProcessor.java:831) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismReference(PrismDomProcessor.java:736) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseItem(PrismDomProcessor.java:962) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:386) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:321) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainer(PrismDomProcessor.java:247) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseItem(PrismDomProcessor.java:957) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:386) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:321) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainer(PrismDomProcessor.java:247) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseItem(PrismDomProcessor.java:957) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseValueElement(PrismDomProcessor.java:612) ~[prism-2.2.jar:na]
at com.evolveum.midpoint.common.expression.evaluator.LiteralExpressionEvaluatorFactory.parseValueElements(LiteralExpressionEvaluatorFactory.java:100) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.expression.evaluator.LiteralExpressionEvaluatorFactory.createEvaluator(LiteralExpressionEvaluatorFactory.java:71) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.expression.Expression.createEvaluator(Expression.java:131) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.expression.Expression.parse(Expression.java:92) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.expression.ExpressionFactory.createExpression(ExpressionFactory.java:84) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.expression.ExpressionFactory.makeExpression(ExpressionFactory.java:74) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.mapping.Mapping.evaluateExpression(Mapping.java:865) ~[common-2.2.jar:na]
at com.evolveum.midpoint.common.mapping.Mapping.evaluate(Mapping.java:446) ~[common-2.2.jar:na]
at com.evolveum.midpoint.model.lens.LensUtil.evaluateMapping(LensUtil.java:497) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.evaluateMapping(UserPolicyProcessor.java:448) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.collectTripleFromMapping(UserPolicyProcessor.java:354) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.collectTripleFromMappings(UserPolicyProcessor.java:344) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.collectTripleFromTemplate(UserPolicyProcessor.java:334) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.applyUserTemplate(UserPolicyProcessor.java:282) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.processUserPolicy(UserPolicyProcessor.java:150) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.projector.Projector.project(Projector.java:163) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.Clockwork.click(Clockwork.java:149) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.lens.Clockwork.run(Clockwork.java:110) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.controller.ModelController.executeChanges_aroundBody2(ModelController.java:385) [model-impl-2.2.jar:na]
at com.evolveum.midpoint.model.controller.ModelController$AjcClosure3.run(ModelController.java:1) [model-impl-2.2.jar:na]
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.6.12.jar:na]
at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:169) [util-2.2.jar:na]
at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$wrapSubsystem(MidpointAspect.java:1) [util-2.2.jar:na]
at com.evolveum.midpoint.util.aspect.MidpointAspect.processModelNdc(MidpointAspect.java:79) [util-2.2.jar:na]
at com.evolveum.midpoint.model.controller.ModelController.executeChanges(ModelController.java:313) [model-impl-2.2.jar:na]
I have checked my object template definition and verified that the namespace in question is there :
<c:mapping xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-2a"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-2"
xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-2"
xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-2"
xmlns:wfcf="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2"
xmlns:m="http://midpoint.evolveum.com/xml/ns/public/model/model-context-2"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
<c:expression>
<c:value>
<c:assignment>
<c:construction>
<c:resourceRef oid="b8a157a0-b2ba-43f2-a410-872853f10476" type="ResourceType"/>
</c:construction>
</c:assignment>
</c:value>
This is a midpoint 2.2 installation on windows server 2008 on Apache Tomcat 7.0 (Java 7). The EXACT same resourceRef namespace works for me elsewhere on my Mac OS X Installation. I'm lost...
Thanks in advance.
BR/Deepak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20131029/f967a5e2/attachment.htm>
More information about the midPoint
mailing list