Service Virtualization

Tech Tips: Unexpected response from server: 409 / Conflict Error in DevTest Registry Log

  • 1.  Tech Tips: Unexpected response from server: 409 / Conflict Error in DevTest Registry Log

    Posted 01-20-2020 04:59 PM

    Issue/Introduction:
    Seeing this error in the Registry log for every user when starting the Registry:

    2019-06-24 19:40:05,348Z (14:40) [main] ERROR com.ca.ad.sv.iam.admin.UserAddProcessor - HttpResponseException adding user:[vra002]
    org.keycloak.authorization.client.util.HttpResponseException: Unexpected response from server: 409 / Conflict
    at com.ca.ad.sv.iam.admin.AdminHttpMethod.execute(AdminHttpMethod.java:68)
    at com.ca.ad.sv.iam.admin.IAMAdminProcessor.addUser(IAMAdminProcessor.java:104)
    at com.ca.ad.sv.iam.admin.UserAddProcessor.addSingleUser(UserAddProcessor.java:70)
    at com.ca.ad.sv.iam.admin.UserAddProcessor.adminTask(UserAddProcessor.java:42)
    at com.ca.ad.sv.iam.admin.UserAddProcessor.adminTask(UserAddProcessor.java:20)
    at com.ca.ad.sv.iam.admin.IAMAdminProcessor.execute(IAMAdminProcessor.java:45)
    at com.ca.devtest.acl.internal.IAMUtil.pushLocalUsersToIAM(IAMUtil.java:164)
    at com.ca.devtest.acl.internal.IAMUtil.pushDevTestACLInfoToIAM(IAMUtil.java:66)
    at com.itko.lisa.coordinator.TestRegistryImpl.main(TestRegistryImpl.java:2277)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)

    We have hundreds of users and these ERROR messages take alot up in the log.

    They do not seem to affect DevTest functionality, but would like to know how to suppress them.


    Cause:
    A possible reason for HttpResponseException adding user exception is a '409' which indicates the user wasn't added because it was already defined in IAM.

    When we migrate from an older version of DevTest to 10.5 version. there will be a call to push all local IAM users in the database. Since the users were already present it printed in the logs.


    Environment:
    Release : 10.5
    Component : CA Application Test


    Resolution:
    Open a support case and refer to Defect DE422513.




    ------------------------------
    Technical Support Engineer III
    Broadcom, Inc
    ------------------------------