<div dir="auto">hi, try to return also __NAME__ =UID<div dir="auto"><br></div><div dir="auto">Gustav</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 Dec 2017 20:54, "Wojciech Staszewski" <<a href="mailto:wojciech.staszewski@diagnostyka.pl">wojciech.staszewski@diagnostyka.pl</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
There is a resource (DB, scripted), where __UID__ is generated by<br>
autoincrement<br>
and there is no __NAME__ attribute.<br>
Outbound Mapping of attributes: fullName, emailAddress and telephoneNumber.<br>
<br>
That means a simple addressbook. I cannot imagine more simple resource.<br>
The only "sophisticated" thing is a "vcf" field, where I have to piece<br>
together vcard from the attribs. Nevermind.<br>
<br>
But when I assign an account in this resource to user, midPoint gives me<br>
an error:<br>
<br>
2017-12-11 20:30:44,218 [] [Thread-253] ERROR<br>
(com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor): Error executing<br>
changes for (account (default) on<br>
resource:5e3ba8fa-4cab-4dd1-<wbr>abed-2f97425d5a08(Global addressbook)): null<br>
java.lang.<wbr>NullPointerException: null<br>
        at<br>
com.evolveum.midpoint.schema.<wbr>util.ShadowUtil.<wbr>determineShadowStringName(<wbr>ShadowUtil.java:658)<br>
~[schema-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.schema.<wbr>util.ShadowUtil.<wbr>determineShadowName(<wbr>ShadowUtil.java:628)<br>
~[schema-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.LensUtil.<wbr>createObjectDeltaOperation(<wbr>LensUtil.java:1166)<br>
~[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor.<wbr>executeDelta(ChangeExecutor.<wbr>java:870)<br>
~[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor.<wbr>executeChanges(ChangeExecutor.<wbr>java:342)<br>
~[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.lambda$<wbr>processSecondary$0(Clockwork.<wbr>java:630)<br>
[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.LensUtil.<wbr>partialExecute(LensUtil.java:<wbr>1254)<br>
~[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.LensUtil.<wbr>partialExecute(LensUtil.java:<wbr>1241)<br>
~[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.<wbr>processSecondary(Clockwork.<wbr>java:628)<br>
[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.click(<wbr>Clockwork.java:474)<br>
[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.run(<wbr>Clockwork.java:197)<br>
[model-impl-3.6.1.jar:na]<br>
        at<br>
com.evolveum.midpoint.model.<wbr>impl.controller.<wbr>ModelController.<wbr>executeChanges(<wbr>ModelController.java:572)<br>
~[model-impl-3.6.1.jar:na]<br>
        at sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke0(Native Method)<br>
~[na:1.8.0_121]<br>
        at<br>
sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke(<wbr>NativeMethodAccessorImpl.java:<wbr>62)<br>
~[na:1.8.0_121]<br>
        at<br>
sun.reflect.<wbr>DelegatingMethodAccessorImpl.<wbr>invoke(<wbr>DelegatingMethodAccessorImpl.<wbr>java:43)<br>
~[na:1.8.0_121]<br>
        at java.lang.reflect.Method.<wbr>invoke(Method.java:498) ~[na:1.8.0_121]<br>
        at<br>
org.apache.wicket.proxy.<wbr>LazyInitProxyFactory$<wbr>JdkHandler.invoke(<wbr>LazyInitProxyFactory.java:507)<br>
~[wicket-ioc-7.6.0.jar:7.6.0]<br>
        at com.sun.proxy.$Proxy159.<wbr>executeChanges(Unknown Source) ~[na:na]<br>
        at<br>
com.evolveum.midpoint.web.<wbr>component.progress.<wbr>ProgressReporter.lambda$<wbr>executeChangesAsync$0(<wbr>ProgressReporter.java:187)<br>
~[classes/:na]<br>
        at java.lang.Thread.run(Thread.<wbr>java:745) ~[na:1.8.0_121]<br>
<br>
<br>
Despite that, the record in the addressbook database is created and<br>
every fields are correctly filled, but no projection in midPoint goes<br>
after it.<br>
The Create script returns "newUid" correctly.<br>
Any ideas? Thanks! WS.<br>
______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
</blockquote></div></div>