[midPoint] NullPointerException
Richard Richter
virgo at evolveum.com
Tue Apr 7 15:25:18 CEST 2020
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 | https://github.com/Evolveum/midpoint-custom-rest-service/blob/master/src/main/java/com/example/midpoint/service/ExampleRestService.java ] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200407/7924f27a/attachment.htm>
More information about the midPoint
mailing list