[midPoint] Null Pointer Exception - create account
Wojciech Staszewski
wojciech.staszewski at diagnostyka.pl
Tue Dec 12 08:49:13 CET 2017
I forgot to mention: I did it already.
But the problem was elsewhere...
I had Update script empty. Shame on me.
After writing update script, everything went good. Shame on me once more...
Regards, WS
W dniu 12.12.2017 o 08:29, Pálos Gustáv pisze:
> hi, try to return also __NAME__ =UID
>
> Gustav
>
> On 11 Dec 2017 20:54, "Wojciech Staszewski" <wojciech.staszewski at diagnostyka.pl <mailto:wojciech.staszewski at diagnostyka.pl>> wrote:
>
> Hello!
>
> There is a resource (DB, scripted), where __UID__ is generated by
> autoincrement
> and there is no __NAME__ attribute.
> Outbound Mapping of attributes: fullName, emailAddress and telephoneNumber.
>
> That means a simple addressbook. I cannot imagine more simple resource.
> The only "sophisticated" thing is a "vcf" field, where I have to piece
> together vcard from the attribs. Nevermind.
>
> But when I assign an account in this resource to user, midPoint gives me
> an error:
>
> 2017-12-11 20:30:44,218 [] [Thread-253] ERROR
> (com.evolveum.midpoint.model.impl.lens.ChangeExecutor): Error executing
> changes for (account (default) on
> resource:5e3ba8fa-4cab-4dd1-abed-2f97425d5a08(Global addressbook)): null
> java.lang.NullPointerException: null
> at
> com.evolveum.midpoint.schema.util.ShadowUtil.determineShadowStringName(ShadowUtil.java:658)
> ~[schema-3.6.1.jar:na]
> at
> com.evolveum.midpoint.schema.util.ShadowUtil.determineShadowName(ShadowUtil.java:628)
> ~[schema-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.LensUtil.createObjectDeltaOperation(LensUtil.java:1166)
> ~[model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta(ChangeExecutor.java:870)
> ~[model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeChanges(ChangeExecutor.java:342)
> ~[model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.Clockwork.lambda$processSecondary$0(Clockwork.java:630)
> [model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.LensUtil.partialExecute(LensUtil.java:1254)
> ~[model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.LensUtil.partialExecute(LensUtil.java:1241)
> ~[model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.Clockwork.processSecondary(Clockwork.java:628)
> [model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:474)
> [model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:197)
> [model-impl-3.6.1.jar:na]
> at
> com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:572)
> ~[model-impl-3.6.1.jar:na]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.8.0_121]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[na:1.8.0_121]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.8.0_121]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
> at
> org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:507)
> ~[wicket-ioc-7.6.0.jar:7.6.0]
> at com.sun.proxy.$Proxy159.executeChanges(Unknown Source) ~[na:na]
> at
> com.evolveum.midpoint.web.component.progress.ProgressReporter.lambda$executeChangesAsync$0(ProgressReporter.java:187)
> ~[classes/:na]
> at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_121]
>
>
> Despite that, the record in the addressbook database is created and
> every fields are correctly filled, but no projection in midPoint goes
> after it.
> The Create script returns "newUid" correctly.
> Any ideas? Thanks! WS.
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
> http://lists.evolveum.com/mailman/listinfo/midpoint <http://lists.evolveum.com/mailman/listinfo/midpoint>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
More information about the midPoint
mailing list