<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><br></div><div apple-content-edited="true">Hello Everyone -</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">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) :</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">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({<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>}user), T=null, TO=null, D=[], ch=<a href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#user">http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#user</a>, o=SUCCESS, p=administrator, m=null<br>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({<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>}user), T=null, TO=null, D=[null:ADD], ch=<a href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-">http://midpoint.evolveum.com/xml/ns/public/gui/channels-</a>2#user, o=null, p=null, m=<br><b>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 {<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>}resourceRef<br>java.lang.IllegalArgumentException: Missing namespace in reference type in {<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>}resourceRef<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.util.DOMUtil.validateNonEmptyQName(DOMUtil.java:1060) ~[util-2.2.jar:na]</b><br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseReferenceValue(PrismDomProcessor.java:831) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismReference(PrismDomProcessor.java:736) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseItem(PrismDomProcessor.java:962) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:386) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:321) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainer(PrismDomProcessor.java:247) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseItem(PrismDomProcessor.java:957) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:386) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainerItems(PrismDomProcessor.java:321) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parsePrismContainer(PrismDomProcessor.java:247) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseItem(PrismDomProcessor.java:957) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.prism.dom.PrismDomProcessor.parseValueElement(PrismDomProcessor.java:612) ~[prism-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.expression.evaluator.LiteralExpressionEvaluatorFactory.parseValueElements(LiteralExpressionEvaluatorFactory.java:100) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.expression.evaluator.LiteralExpressionEvaluatorFactory.createEvaluator(LiteralExpressionEvaluatorFactory.java:71) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.expression.Expression.createEvaluator(Expression.java:131) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.expression.Expression.parse(Expression.java:92) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.expression.ExpressionFactory.createExpression(ExpressionFactory.java:84) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.expression.ExpressionFactory.makeExpression(ExpressionFactory.java:74) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.mapping.Mapping.evaluateExpression(Mapping.java:865) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.common.mapping.Mapping.evaluate(Mapping.java:446) ~[common-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.LensUtil.evaluateMapping(LensUtil.java:497) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.evaluateMapping(UserPolicyProcessor.java:448) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.collectTripleFromMapping(UserPolicyProcessor.java:354) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.collectTripleFromMappings(UserPolicyProcessor.java:344) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.collectTripleFromTemplate(UserPolicyProcessor.java:334) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.applyUserTemplate(UserPolicyProcessor.java:282) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.UserPolicyProcessor.processUserPolicy(UserPolicyProcessor.java:150) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.projector.Projector.project(Projector.java:163) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.Clockwork.click(Clockwork.java:149) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.lens.Clockwork.run(Clockwork.java:110) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.controller.ModelController.executeChanges_aroundBody2(ModelController.java:385) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.controller.ModelController$AjcClosure3.run(ModelController.java:1) [model-impl-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.6.12.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:169) [util-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>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]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.util.aspect.MidpointAspect.processModelNdc(MidpointAspect.java:79) [util-2.2.jar:na]<br><span class="Apple-tab-span" style="white-space:pre"> </span>at com.evolveum.midpoint.model.controller.ModelController.executeChanges(ModelController.java:313) [model-impl-2.2.jar:na]<br><br>I have checked my object template definition and verified that the namespace in question is there :</div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><div apple-content-edited="true"> <c:mapping<b> xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>"</b></div><div apple-content-edited="true"> xmlns:icfs="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2</a>"</div><div apple-content-edited="true"> xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-2">http://prism.evolveum.com/xml/ns/public/types-2</a>"</div><div apple-content-edited="true"> xmlns:icfc="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2</a>"</div><div apple-content-edited="true"> xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-2">http://prism.evolveum.com/xml/ns/public/query-2</a>"</div><div apple-content-edited="true"> xmlns:cap="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2">http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2</a>"</div><div apple-content-edited="true"> xmlns:apti="<a href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-2">http://midpoint.evolveum.com/xml/ns/public/common/api-types-2</a>"</div><div apple-content-edited="true"> xmlns:wfcf="<a href="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2">http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2</a>"</div><div apple-content-edited="true"> xmlns:m="<a href="http://midpoint.evolveum.com/xml/ns/public/model/model-context-2">http://midpoint.evolveum.com/xml/ns/public/model/model-context-2</a>"</div><div apple-content-edited="true"> xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"</div><div apple-content-edited="true"> xmlns:enc="<a href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>"></div><div apple-content-edited="true"> <c:expression></div><div apple-content-edited="true"> <c:value></div><div apple-content-edited="true"> <c:assignment></div><div apple-content-edited="true"> <c:construction></div><div apple-content-edited="true"> <b> <c:resourceRef oid="b8a157a0-b2ba-43f2-a410-872853f10476" type="ResourceType"/></b></div><div apple-content-edited="true"> </c:construction></div><div apple-content-edited="true"> </c:assignment></div><div apple-content-edited="true"> </c:value></div><div apple-content-edited="true"><br></div><div apple-content-edited="true">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...</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">Thanks in advance.</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">BR/Deepak</div><div apple-content-edited="true"><br></div></div><br></body></html>