From 63b53f9d61ffc22573167ad786fd4a8817d41008 Mon Sep 17 00:00:00 2001
From: fguigues <fguigues@localhost>
Date: Wed, 25 Mar 2009 08:51:33 +0000
Subject: [PATCH] Fix 3295 SNMP: exception displayed at startup when security-agent-file property is set to a wrong value Fix 3899 Windows : GUIs do not load the appropriated resources
---
opends/src/snmp/src/org/opends/server/snmp/SNMPClassLoaderProvider.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/opends/src/snmp/src/org/opends/server/snmp/SNMPClassLoaderProvider.java b/opends/src/snmp/src/org/opends/server/snmp/SNMPClassLoaderProvider.java
index 8f90136..af6659b 100644
--- a/opends/src/snmp/src/org/opends/server/snmp/SNMPClassLoaderProvider.java
+++ b/opends/src/snmp/src/org/opends/server/snmp/SNMPClassLoaderProvider.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2008 Sun Microsystems, Inc.
+ * Copyright 2008-2009 Sun Microsystems, Inc.
*/
package org.opends.server.snmp;
@@ -233,7 +233,9 @@
this.snmpAdaptor = this.getSnmpAdaptor(this.currentConfig);
if (this.snmpAdaptor == null) {
- throw new Exception();
+ Exception ex = new Exception(
+ ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString());
+ throw ex;
}
// Create the Usm MIB to allow user management
@@ -298,9 +300,6 @@
this.server.registerMBean(this.snmpAdaptor, snmpObjName);
} catch (Exception ex) {
- if (debugEnabled()) {
- TRACER.debugCaught(DebugLogLevel.ERROR, ex);
- }
throw new Exception(
ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString());
}
--
Gitblit v1.10.0