CreateUser operation throws NoSuchElementException from Risk Authentication
search cancel

CreateUser operation throws NoSuchElementException from Risk Authentication

book

Article ID: 405915

calendar_today

Updated On:

Products

CA Risk Authentication CA Advanced Authentication CA Advanced Authentication - Risk Authentication (RiskMinder / RiskFort)

Issue/Introduction

The CreateUser operation throws a NoSuchElementException when using the Risk Authentication SDK (arcot-riskfort-issuance.jar):

{"timestamp":"2025-07-16T16:13:58.192+01","level":"WARN","thread":"main","logger":"com.test.afm.controller.InitializeDefaultUserCustom","message":"exception thrown trying to create RiskFort user ErrCode:9::Message:java.util.NoSuchElementException: Could not create a validated object, cause: ValidateObject failed","context":"default"}
{"timestamp":"2025-07-16T16:13:58.193+01","level":"DEBUG","thread":"main","logger":"com.arcot.riskfortissuanceAPI.UserRepositoryServiceImpl","message":"Entering create user with additionalInputs.","context":"default"}
{"timestamp":"2025-07-16T16:13:58.193+01","level":"DEBUG","thread":"main","logger":"com.arcot.riskfortissuanceAPI.UserRepositoryServiceImpl","message":"Create user called with properties null","context":"default"}
{"timestamp":"2025-07-16T16:13:58.193+01","level":"DEBUG","thread":"main","logger":"com.arcot.riskfortissuanceAPI.UserRepositoryServiceImpl","message":"CreateUser: XML Request [<POLICYREQ><VERSION>1.7</VERSION><MESSAGEID>500</MESSAGEID><CLIENTTXNID>clienttxnid</CLIENTTXNID><USERID><username></USERID><GROUP>orgname</GROUP></POLICYREQ>]","context":"default"}
{"timestamp":"2025-07-16T16:13:58.202+01","level":"WARN","thread":"main","logger":"com.arcot.core.pool.PoolManager","message":"Exception occurred while borrowing object","context":"default","exception":"java.util.NoSuchElementException: Could not create a validated object, cause: ValidateObject failed

Environment

Symantec Risk Authentication 9.1.5 CP1

Resolution

SDK arcot-riskfort-issuance.jar works as expected with Risk Authentication Server 9.1.5.1.

Below is a sample implementation for reference:

UserRepManager.initialize(config);
UserRepositoryService userRepService = UserRepManager.getGrpUserRepService();
User user = UserManager.getNewUserObject("username", "orgname");
userRepService.create(user, null);
UserRepManager.release();