Announcement Announcement Module
Collapse
No announcement yet.
ldap:pooling throws exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ldap:pooling throws exception

    My config:
    Code:
        <ldap:context-source id="tf_3ci" url="ldap://${tf.ldap.host}:${tf.ldap.port}"
            username="anonymous" password="doyoucare" anonymous-read-only="true">
            <ldap:pooling/>
        </ldap:context-source>
    When try to run the app, it throws the following:
    Code:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'maxTotal' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericKeyedObjectPool.setMaxTotal(I)V
    PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'minIdle' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericKeyedObjectPool.setMinIdle(I)V
    From my gradle.build:
    Code:
    dependencies {
        compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
        compile 'org.springframework.ldap:spring-ldap-core:2.0.1.RELEASE'
        compile 'commons-pool:commons-pool:20030825.183949'
        ...
    }
    Am I missing something?

    Thanks,

  • #2
    I found the answer: have to use the "correct" commons-pool:

    dependencies {
    compile 'commons-collections:commons-collections:3.2'
    compile 'org.springframework.ldap:spring-ldap-core:2.0.1.RELEASE'
    compile 'org.apache.directory.studio:org.apache.commons.po ol:1.6'

    Comment

    Working...
    X