Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Issue in calling the java jar method in user update rule.

saimeghana
Regular Contributor
Regular Contributor

Hi Team,

We have a java jar method which will update the displayname, trying to call the java jar method using the user update rule, rule is getting triggered but there are no updates in user profile, checked the logs no error in logs and the same java jar method if we run in job control panel it will update the user attributes.

attaching the rule screen shot

 

Please find the below attached logs.

Thanks,

saimeghana

 

7 REPLIES 7

Rishi
Saviynt Employee
Saviynt Employee

In the logs it says there is error while invoking the custom jar:
Error: \n","stream":"stdout","time":"2023-06-12T05:13:28.587267987Z"}"
"ecm-worker","2023-06-12T05:13:28.985+00:00","{"log":"java.lang.NoSuchMethodException: net.adecco.saviynt.service.AdeccoSaviyntService.generateDisplayname(java.lang.String)\n"

Please confirm if the jar was uploaded.

rushikeshvartak
All-Star
All-Star

After every jar upload server restart from backend is required. ui restart does not work for jar upload


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

saimeghana
Regular Contributor
Regular Contributor

Hi Rushikeshvartak,

Issue got resolved.

Thanks,

Saimeghana

I hope its all about jar not loaded on server & server restart fixed that


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikeshvartak,

This issue is resolved when we gave trigger as "Trigger when user is updated from import".

Now we are facing an issue like in user update rule if we gave the trigger point as "Trigger when user is created from API call's", rule is getting triggered, but saviynt attribute is not updating to user.

Thanks,

Saimeghana

Dave
Community Manager
Community Manager

Hi @saimeghana - Please reply with the Solution to help other users who may have a similar question.  Thank you!

saimeghana
Regular Contributor
Regular Contributor

Hi Team,

solution is used the below passing the (string userjson) in method

public void generateDisplayname(String userJson) {

System.out.println("userJson data : " + userJson);}

Thanks,

saimeghana