[midPoint] NullPointerException
Chris Woods
chris at cmwoods.com
Thu Apr 9 09:49:22 CEST 2020
Hi Richard,
many thanks for that! I got a hint from Lukas of how to get around it
which worked nicely.
Hope you're all keeping will during these times!
Cheers,
Chris
On 2020-04-07 15:25, Richard Richter wrote:
> Hi Chris
>
> I pushed the changes, now the whole example is 4.1 compatible and
> supports our new flexible authentication.
>
> As of now it's guarded by rather not so nice "is experimental" guard,
> which is copy/pasted from midpoint master - even with util classes
> it's still multi-line construct, sorry about that.
>
> Also, current POM supports running the project from IDE (with "ide"
> Maven profile).
>
> Cheers
>
> Richard
>
> -------------------------
>
> FROM: "Chris Woods" <Chris.Woods at rohde-schwarz.com>
> TO: "midPoint General Discussion" <midpoint at lists.evolveum.com>
> SENT: Tuesday, April 7, 2020 9:45:14 AM
> SUBJECT: [midPoint] NullPointerException
>
> Hi,
>
> I have some REST webservices that were working fine under 4.0.2 using
> the Evolveum example
> https://github.com/Evolveum/midpoint-custom-rest-service/blob/master/src/main/java/com/example/midpoint/service/ExampleRestService.java
> [1] as a base.
>
> However, since trying 4.1 I get a NullPointerException in my code in
> line 360:
>
> 358 _LOGGER_.info("listAssignments called for oid {}", oid);
>
> 359 Task task = RestServiceUtil._initRequest_(mc);
>
> 360 OperationResult taskResult = task.getResult();
>
> 361 OperationResult result =
> taskResult.createSubresult(_OPERATION_LIST_ASSIGNMENTS_);
>
> Can anyone tell me what I am doing wrong, or if there are any changes
> I need to make for 4.1?
>
> Regards,
>
> Chris
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
>
> Links:
> ------
> [1]
> https://github.com/Evolveum/midpoint-custom-rest-service/blob/master/src/main/java/com/example/midpoint/service/ExampleRestService.java
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
More information about the midPoint
mailing list