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

LDAPConnectionPool.getConnFromPool could lead to ArrayIndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Rank:
      1|hznzuf:
    • Support Ticket IDs:

      Description

      LDAPConnectionPool.getConnFromPool() increments currentConnectionCount when pool hasn't reached its max size. However, this variable 'currentConnectionCount' can go out of synch because it's not synchronized and may cause ArrayIndexOutOfBoundsException.

      java.lang.ArrayIndexOutOfBoundsException: 10
      at com.sun.identity.common.LDAPConnectionPool.getConnFromPool(LDAPConnectionPool.java:477)
      at com.sun.identity.common.LDAPConnectionPool.getConnection(LDAPConnectionPool.java:441)
      at com.sun.identity.common.LDAPConnectionPool.getConnection(LDAPConnectionPool.java:398)
      at com.sun.identity.sm.ldap.SMDataLayer.getConnection(SMDataLayer.java:126)
      at com.sun.identity.sm.ldap.SMSLdapObject.getConnection(SMSLdapObject.java:723)
      at com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:283)
      at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:698)
      at com.sun.identity.sm.CachedSMSEntry.refresh(CachedSMSEntry.java:168)
      at com.sun.identity.sm.CachedSMSEntry.isNewEntry(CachedSMSEntry.java:345)
      at com.sun.identity.sm.ServiceSchemaManagerImpl.isValid(ServiceSchemaManagerImpl.java:135)
      at com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:601)
      at com.sun.identity.sm.ServiceSchemaManager.<init>(ServiceSchemaManager.java:116)
      at com.sun.identity.sm.ServiceSchemaManager.<init>(ServiceSchemaManager.java:80)
      :

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sachiko Sachiko Wallace
              Reporter:
              sachiko Sachiko Wallace
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: