From 96122d787f109fbd955f41a347b05588f4b31452 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 29 Aug 2013 21:56:13 +0000
Subject: [PATCH] Partial fix for OPENDJ-1112: LoadBalancing connection factories need better diagnostic messages
---
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java
index 97c5093..5abac02 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractLoadBalancingAlgorithm.java
@@ -170,8 +170,8 @@
synchronized (listenerLock) {
try {
listener.handleConnectionFactoryOffline(factory, error);
- } catch (Throwable t) {
- handleListenerException(t);
+ } catch (RuntimeException e) {
+ handleListenerException(e);
}
}
@@ -197,8 +197,8 @@
synchronized (listenerLock) {
try {
listener.handleConnectionFactoryOnline(factory);
- } catch (Throwable t) {
- handleListenerException(t);
+ } catch (RuntimeException e) {
+ handleListenerException(e);
}
}
@@ -216,10 +216,10 @@
}
}
- private void handleListenerException(Throwable t) {
+ private void handleListenerException(RuntimeException e) {
if (DEBUG_LOG.isLoggable(Level.SEVERE)) {
DEBUG_LOG.log(Level.SEVERE,
- "A run-time error occurred while processing a load-balancer event", t);
+ "A run-time error occurred while processing a load-balancer event", e);
}
}
}
--
Gitblit v1.10.0