From e24804a9de2898416d5607f4ffead64808d46ecd Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 08 Nov 2007 11:01:30 +0000
Subject: [PATCH] Fix for issue 2575.
---
opends/src/ads/org/opends/admin/ads/util/ServerLoader.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/opends/src/ads/org/opends/admin/ads/util/ServerLoader.java b/opends/src/ads/org/opends/admin/ads/util/ServerLoader.java
index 8ca9732..4fa3c75 100644
--- a/opends/src/ads/org/opends/admin/ads/util/ServerLoader.java
+++ b/opends/src/ads/org/opends/admin/ads/util/ServerLoader.java
@@ -34,6 +34,7 @@
import javax.naming.AuthenticationException;
import javax.naming.NamingException;
import javax.naming.NoPermissionException;
+import javax.naming.TimeLimitExceededException;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapName;
@@ -124,7 +125,9 @@
ldapUrl = getLdapUrl(serverProperties);
}
lastException = new TopologyCacheException(
- TopologyCacheException.Type.TIMEOUT, null, trustManager, ldapUrl);
+ TopologyCacheException.Type.TIMEOUT,
+ new TimeLimitExceededException("Timeout reading server: "+ldapUrl),
+ trustManager, ldapUrl);
LOG.log(Level.WARNING, "Timeout reading server: "+ldapUrl);
}
super.interrupt();
--
Gitblit v1.10.0