@@ -415,7 +415,7 @@ public class ConnectionManager<C extends AbstractLdapConfiguration> implements C
}catch(RuntimeExceptione){
try{
connection.close();
}catch(IOExceptione1){
}catch(Exceptione1){
LOG.error("Error closing conection (error handling of a bind of a new connection): {1}",e.getMessage(),e);
}
// This is always connection failed, even if other error is indicated.
...
...
@@ -469,7 +469,7 @@ public class ConnectionManager<C extends AbstractLdapConfiguration> implements C
}catch(LdapExceptione){
try{
connection.close();
}catch(IOExceptione1){
}catch(Exceptione1){
LOG.error("Error closing conection (handling error during creation of a new connection): {1}",e.getMessage(),e);
}
RuntimeExceptionprocessedException=LdapUtil.processLdapException("Unable to connect to LDAP server "+configuration.getHost()+":"+configuration.getPort(),e);
...
...
@@ -582,7 +582,7 @@ public class ConnectionManager<C extends AbstractLdapConfiguration> implements C
}catch(RuntimeExceptione){
try{
connection.close();
}catch(IOExceptione1){
}catch(Exceptione1){
LOG.error("Error closing conection (error handling of a bind of a new connection): {1}",e1.getMessage(),e1);
}
// This is a special runAs situation. We really want to throw the real error here.
...
...
@@ -632,7 +632,7 @@ public class ConnectionManager<C extends AbstractLdapConfiguration> implements C
// For example connections that were created for runAs feature.
try{
connection.close();
}catch(IOExceptione){
}catch(Exceptione){
LOG.error("Error closing special connection: {0}",e.getMessage(),e);