Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-5585

ConnectionPool throws NullPointerException when connect() invoked after close()

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.5.0
    • Component/s: core apis
    • Labels:
      None
    • Story Points:
      0

      Description

      A NullPointerException is thrown by CachedConnectionPool when connect() is invoked while the pool has been {{close()}}d

      Caused by: java.lang.NullPointerException: subscribeActual failed
      at io.reactivex.Single.subscribe(Single.java:3101)
      at io.reactivex.internal.operators.single.SingleMap.subscribeActual(SingleMap.java:34)
      at io.reactivex.Single.subscribe(Single.java:3096)
      at io.reactivex.internal.operators.single.SingleObserveOn.subscribeActual(SingleObserveOn.java:35)
      at io.reactivex.Single.subscribe(Single.java:3096)
      at io.reactivex.internal.operators.single.SingleDoFinally.subscribeActual(SingleDoFinally.java:46)
      at io.reactivex.Single.subscribe(Single.java:3096)
      at io.reactivex.Single.subscribe(Single.java:3082)
      at org.forgerock.opendj.ldap.LdapConnectionFactory.getConnectionAsync(LdapConnectionFactory.java:363)
      at org.forgerock.opendj.ldap.LdapConnectionFactory.getConnection(LdapConnectionFactory.java:370)
      at com.sun.identity.sm.ldap.SMSLdapObject.getConnection(SMSLdapObject.java:992)
      at com.sun.identity.sm.ldap.SMSLdapObject.executeWithRetry(SMSLdapObject.java:968)
      at com.sun.identity.sm.ldap.SMSLdapObject.executeWithRetryAndAutoClose(SMSLdapObject.java:946)
      at com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:276)
      at com.sun.identity.sm.SmsWrapperObject.read(SmsWrapperObject.java:128)
      at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:578)
      at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:570)
      at com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:359)
      at com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:345)
      at com.sun.identity.sm.CreateServiceConfig.checkBaseNodesForOrg(CreateServiceConfig.java:383)
      at com.sun.identity.sm.CreateServiceConfig.checkBaseNodesForOrg(CreateServiceConfig.java:372)
      at com.sun.identity.sm.ServiceConfigManager.createOrganizationConfig(ServiceConfigManager.java:316)
      at org.forgerock.openam.core.rest.sms.SmsDataStoreConfigProvider.createServiceEntry(SmsDataStoreConfigProvider.java:176)
      at org.forgerock.openam.core.rest.sms.SmsDataStoreConfigProvider.createService(SmsDataStoreConfigProvider.java:171)
      at org.forgerock.openam.core.rest.sms.SmsDataStoreConfigProvider.handleServiceCreation(SmsDataStoreConfigProvider.java:136)
      at org.forgerock.openam.core.rest.sms.SmsDataStoreConfigProvider.handleUpdate(SmsDataStoreConfigProvider.java:97)
      ... 140 more
      Caused by: java.lang.IllegalStateException: CachedConnectionPool is already closed
      at org.forgerock.opendj.ldap.CachedConnectionPool.connect0(CachedConnectionPool.java:502)
      at org.forgerock.opendj.ldap.CachedConnectionPool.access$1500(CachedConnectionPool.java:55)
      at org.forgerock.opendj.ldap.CachedConnectionPool$1.subscribeActual(CachedConnectionPool.java:418)
      at io.reactivex.Single.subscribe(Single.java:3096)
      ... 165 more

        Attachments

          Activity

            People

            • Assignee:
              ylecaillez Yannick Lecaillez
              Reporter:
              ylecaillez Yannick Lecaillez
              Dev Assignee:
              Yannick Lecaillez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: