[midPoint] Null Pointer Exception - create account

Pálos Gustáv gustav.palos at evolveum.com
Tue Dec 12 08:29:42 CET 2017


hi, try to return also __NAME__ =UID

Gustav

On 11 Dec 2017 20:54, "Wojciech Staszewski" <
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
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20171212/e6ba87b2/attachment.htm>


More information about the midPoint mailing list