Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
If a Connection fails on credentials, the LdapConnection is not closed and is not in the pool.
I modified the makeObject() function in PoolableLdapConnectionFactory.java to this and it does the trick.
public Object makeObject() throws Exception
{
LOG.debug("creating a LDAP connection");
LdapNetworkConnection connection = new LdapNetworkConnection(config);
try
catch (Exception e1) {
try
catch (Exception e2) {
}
throw e1;
}
return connection;
}
Attachments
Issue Links
- is cloned by
-
DIRAPI-97 Unreliable LdapConnectionPool: org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server, the connection is invalid
- Closed
- relates to
-
DIRAPI-97 Unreliable LdapConnectionPool: org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server, the connection is invalid
- Closed