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

extra space in the CTS 's connection string " openam.internal.example.com:50389" cause OpenDJ-SDK log to grow

    Details

    • Sprint:
      AM Sustaining Sprint 53
    • Story Points:
      1
    • Support Ticket IDs:
    • Verified Version/s:
    • Needs QA verification:
      Yes

      Description

      #1. Install a default OpenAM embedded 13.5.0
      #2. Go to Admin GUI and edit the CTS configuration and modify to Store Mode : External Token Store

      #3. Go to External Store Configuration

      Add a space in front of hostname for the connection string(s)

      Restart OpenAM

      You will observe the following repeated errors.

      Notice that there is a space between host=' openam.internal.example.com:50389'

      Attempting reconnect to offline factory 'CachedConnectionPool(size=0[in:0 + out:0 + pending:0], maxSize=1, blocked=0, factory=LDAPConnectionFactory(provider=`Grizzly, host=' openam.internal.example.com', port=50389, options=org.forgerock.util.Options@24c5e81e))'
      org.forgerock.opendj.ldap.CachedConnectionPool:07/18/2017 12:49:57:188 PM SGT: Thread[OpenDJ LDAP SDK Default Scheduler,5,main]: TransactionId[d15d4c35-4846-47a3-91b9-15aa59c1b3a7-24]
      Connection attempt failed: availableConnections=0, maxPoolSize=1
      org.forgerock.opendj.ldap.LoadBalancer:07/18/2017 12:49:57:211 PM SGT: Thread[OpenDJ LDAP SDK Default Scheduler,5,main]: TransactionId[d15d4c35-4846-47a3-91b9-15aa59c1b3a7-24]
      Attempting reconnect to offline factory 'CachedConnectionPool(size=0[in:0 + out:0 + pending:0], maxSize=10, blocked=0, factory=LDAPConnectionFactory(provider=`Grizzly, host=' openam.internal.example.com', port=50389, options=org.forgerock.util.Options@2d6a0627))'
      org.forgerock.opendj.ldap.CachedConnectionPool:07/18/2017 12:49:57:212 PM SGT: Thread[OpenDJ LDAP SDK Default Scheduler,5,main]: TransactionId[d15d4c35-4846-47a3-91b9-15aa59c1b3a7-24]
      Connection attempt failed: availableConnections=0, maxPoolSize=10
      

       

      #1. What is really perplexing is that, after the restart, the OpenAM admin UI -> CTS connection string(s) has actually trimmed that space but the errors still continue in the opendj-sdk log. So you can't really observe the problem from the admin UI 's configuration.

      #2. For multiple CTS hostnames, it is important not to leave space in between the commas.

      Workaround : Redo the CTS 's connection string(s) input but leave no space in between the commas.

       

       

        Attachments

          Activity

            People

            • Assignee:
              sachiko Sachiko Wallace
              Reporter:
              sam.phua Sam Phua
              QA Assignee:
              Filip Kubáň [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: