Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-14318

Adding External Data Store is throwing Error on Create, may be okay thereafter (TBD)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.5.0
    • Fix Version/s: None
    • Component/s: console
    • Labels:
    • Support Ticket IDs:

      Description

      Adding Secondary Configurations to the amDataStoreService throws an error on Create but seems to be okay thereafter.  

      How to reproduce the issue

      1. OOTB AM 6.5.0.0 and external DS (I'm using ForgeRock Directory Services 6.0.0)
      2. Goto CONFIGURE > Global Services > External Data Stores, Secondary Configurations TAB!
      3. Click Add a Secondary Configuration
      4. Give it a NAME! and fill out the information for an external DS (see screenshot) and enable Use SSL.
      5. Click on Create
      Expected behaviour
      No errors and Secondary Configuration is added gracefully and the user is returned to 
      the amDataStoreService settings page.
      Current behaviour
      Error in the XUI:
      
      Failed to create root realm for data store DataStoreId{id='NAME!'} for 1 or 2 seconds.
      Followed with a "Internal Server Error" pop-up for 1 or 2 seconds and remains on the [Cancel] [Create] page.
      Error in CoreSystem:
      
      frRest:01/24/2019 10:35:03:211 AM PST: Thread[http-nio-8443-exec-2,5,main]: TransactionId[5ce60164-8a78-46d0-a27b-73cc8bab2781-25640]
      ERROR: SmsGlobalDataStoreConfigProvider.createInstance: Unable to load SMS schema for data store
      org.forgerock.json.resource.InternalServerErrorException: Failed to create root realm for data store DataStoreId{id='36778-reproman'}
      at org.forgerock.openam.core.rest.sms.SmsGlobalDataStoreConfigProvider.ensureRootRealmStructureIsPresent(SmsGlobalDataStoreConfigProvider.java:267)
      at org.forgerock.openam.core.rest.sms.SmsGlobalDataStoreConfigProvider.createInstance(SmsGlobalDataStoreConfigProvider.java:169)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...

      Work around

      n/a as this may be cosmetic as after the error, the Secondary Configurations page displays the additional Configuration Instances (see screenshot)

      Note: When the user goes back to the CONFIGURE > Global Services page, the link to External Data Stores is not displayed (the link is missing!) until the user refreshes the page (or goes back and FW: to refresh).

       

        Attachments

        1. 1-36778-Add_New_Config_Configuration.png
          1-36778-Add_New_Config_Configuration.png
          2.43 MB
        2. 1-36778-reproman.png
          1-36778-reproman.png
          71 kB
        3. 2-36778-Error_On_Clicking_Create.png
          2-36778-Error_On_Clicking_Create.png
          777 kB
        4. 2-36778-reproman-AfterCancel.png
          2-36778-reproman-AfterCancel.png
          73 kB
        5. 3-36778-OnClickingCreateAgain-Exists.png
          3-36778-OnClickingCreateAgain-Exists.png
          775 kB
        6. 4-36778-OnCancel-back-to-TAB.png
          4-36778-OnCancel-back-to-TAB.png
          97 kB
        7. Configuration
          6 kB
        8. CoreSystem
          12 kB
        9. IdRepo
          0.7 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ashley.hale Ashley Hale
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: