idnRuleUtil : Method not Found

Hi all,

We are currently working on an identity attribute rule which uses the " findIdentitiesBySearchableIdentityAttribute" method from idnRuleUtil.

Despite multiple redeployment, we are still getting the below error :
image

The code snippet associated with the error is as follow:
findIdentities = idn.findIdentitiesBySearchableIdentityAttribute("normalizednamesurname", "Equals", identityNormalizedNameSurname);

What could be the cause of the error? Could it be linked to the absence of the parameter “sortAttribute” despite the documentation clearly stating that it is optional?

Thank you for your insight.

Hi @Augjm

Yes, exception says method is not found but cannot rely on that. I could see there is parse exception.

Method is available, would you be able to put your code here masking the sensitive data, I can have a look.

Thanks
Krish

Hello @Augjm , just curious if you already tried supplying the “sortAttribute” method argument and see if it is working for you?
You can use ‘uid’ or ‘name’ OOTB attributes for “sortAttribute” as they are searchable by default.

For your question, yes it is optional parameter but it could be possible that there is no method overloading defined and hence passing 3 arguments is giving you the error.

You are passing 3 arguments to the method and if you refer to javadoc you will see the method needs 4 parameters. Hence you are getting the error as it cannot find a method with 3 parameters (oveloaded method).

Thank to all of you for your reply.
We’re currently testing the rule after adding the “sortAttribute” parameter.

I personally find the java doc poorly worded for this method. It clearly states that the default ordering will be based on “uid” if nothing is specified.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.