Issue with IdP Connection pool configuration
Amit Dongaonkar
amitd at nitssolutions.com
Mon Sep 7 14:52:36 UTC 2020
Hello Shib Users,
I have IdP 3.4 installed and I just tried to uncomment the ldap connection
pool settings in the ldap.properties file.
Just uncommenting those and restarting the service throws the following
error. Not sure why the IdP takes the value 300 set for prune period in the
file as 0
service: shibboleth.AttributeResolverService
last reload attempt: 2020-09-07T14:23:44Z
last failure cause:
net.shibboleth.utilities.java.support.service.ServiceException:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'myLDAP': Cannot create inner bean '(inner
bean)#614a2080' of type [org.ldaptive.pool.PooledConnectionFactory]
while setting bean property 'connectionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#614a2080': Cannot create inner
bean '(inner bean)#79445c3f' of type
[net.shibboleth.idp.attribute.resolver.spring.dc.ldap.impl.LDAPDataConnectorParser$V2Parser]
while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#79445c3f': Invocation of init
method failed; nested exception is java.lang.IllegalStateException:
Prune period 0 must be greater than zero
My ldap.properties configuration is as follows:
# LDAP pool configuration, used for both authn and DN resolution
idp.pool.LDAP.minSize = 3
idp.pool.LDAP.maxSize = 10
idp.pool.LDAP.validateOnCheckout = false
idp.pool.LDAP.validatePeriodically = true
idp.pool.LDAP.validatePeriod = 300
idp.pool.LDAP.prunePeriod = 300
idp.pool.LDAP.idleTime = 600
idp.pool.LDAP.blockWaitTime = 3000
idp.pool.LDAP.failFastInitialize = false
Any suggestions / pointers will be appreciated.
Thanks and Regards,
*Amit Dongaonkar*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20200907/696c4cb5/attachment.htm>
More information about the users
mailing list