From f3f9f37cd05c81867e2852746b169132d8f1b598 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 01 Jul 2016 14:30:12 +0000
Subject: [PATCH] Partial OPENDJ-2625 Convert all code that uses JNDI to use the SDK instead

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCli.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCli.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCli.java
index ef673b3..205c870 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCli.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/status/StatusCli.java
@@ -325,17 +325,17 @@
           if (!controlInfo.getServerDescriptor().getExceptions().isEmpty()) {
             return ReturnCode.ERROR_INITIALIZING_SERVER.get();
           }
-        } catch (NamingException ne) {
+        } catch (NamingException |IOException e) {
           // This should not happen but this is useful information to
           // diagnose the error.
           println();
-          println(INFO_ERROR_READING_SERVER_CONFIGURATION.get(ne));
+          println(INFO_ERROR_READING_SERVER_CONFIGURATION.get(e));
           return ReturnCode.ERROR_INITIALIZING_SERVER.get();
-        } catch (ConfigReadException cre) {
+        } catch (ConfigReadException e) {
           // This should not happen but this is useful information to
           // diagnose the error.
           println();
-          println(cre.getMessageObject());
+          println(e.getMessageObject());
           return ReturnCode.ERROR_INITIALIZING_SERVER.get();
         }
       } else {

--
Gitblit v1.10.0