[OPENDJ-5585] ConnectionPool throws NullPointerException when connect() invoked after close() Created: 16/Oct/18  Updated: 08/Nov/19  Resolved: 17/Oct/18

Status: Done
Project: OpenDJ
Component/s: core apis
Affects Version/s: 6.5.0
Fix Version/s: 6.5.0

Type: Bug Priority: Major
Reporter: Yannick Lecaillez Assignee: Yannick Lecaillez
Resolution: Fixed Votes: 0
Labels: None

Story Points: 0
Dev Assignee: Yannick Lecaillez

 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


 Comments   
Comment by Matthew Swift [ 07/Nov/19 ]

Moved to closed state because the fixVersion has already been released.

Generated at Mon Oct 26 19:06:14 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.