From 19ecbed00007de1a0d5ff09afc12d0cbae7e37b2 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 28 Apr 2009 15:08:52 +0000
Subject: [PATCH] Fix a typo in one of the SNMP error messages.
---
opendj-sdk/opends/src/messages/messages/protocol.properties | 12 ++++++++++--
opendj-sdk/opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java | 10 +++++++---
2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/opendj-sdk/opends/src/messages/messages/protocol.properties b/opendj-sdk/opends/src/messages/messages/protocol.properties
index a8ec346..ed569e5 100644
--- a/opendj-sdk/opends/src/messages/messages/protocol.properties
+++ b/opendj-sdk/opends/src/messages/messages/protocol.properties
@@ -1384,9 +1384,9 @@
SEVERE_ERR_SNMP_CONNHANDLER_TRAPS_DESTINATION_1463=Traps Destination %s is \
an unknown host. Traps will not be sent to this destination
SEVERE_ERR_SNMP_CONNHANDLER_NO_OPENDMK_JARFILES_1464=You do not have the \
- appropriated OpenDMK jar files to enable the SNMP Connection Handler. \
+ appropriate OpenDMK jar files to enable the SNMP Connection Handler. \
Please go under http://opendmk.dev.java.net and set the \
- ds-cfg-opendmk-jarfile configuration parameter to set the full path \
+ opendmk-jarfile configuration parameter to set the full path \
of the required jdmkrt.jar file. The SNMP connection Handler didn't started
SEVERE_ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION_1465=Cannot initialize the \
SNMP Connection Handler. Please check the configuration attributes
@@ -1404,3 +1404,11 @@
Connection Handler: %s
MILD_ERR_LDAP_UNSUPPORTED_PROTOCOL_VERSION_1505=The Directory Server does not \
support LDAP protocol version %d. This connection will be closed
+SEVERE_ERR_SNMP_CONNHANDLER_OPENDMK_JARFILES_DOES_NOT_EXIST_1506=The specified \
+ OpenDMK jar file '%s' could not be found. Verify that the value set in the \
+ opendmk-jarfile configuration parameter of the SNMP connection handler is the \
+ valid path to the jdmkrt.jar file and that the file is accessible
+SEVERE_ERR_SNMP_CONNHANDLER_OPENDMK_JARFILES_NOT_OPERATIONAL_1507=The required \
+ classes could not be loaded using jar file '%s'. Verify that the jar file \
+ is not corrupted
+
diff --git a/opendj-sdk/opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java b/opendj-sdk/opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java
index 412942b..37b4200 100644
--- a/opendj-sdk/opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java
+++ b/opendj-sdk/opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2008 Sun Microsystems, Inc.
+ * Copyright 2008-2009 Sun Microsystems, Inc.
*/
package org.opends.server.snmp;
@@ -126,7 +126,9 @@
}
if (!fullpathFile.exists()) {
- Message message = ERR_SNMP_CONNHANDLER_NO_OPENDMK_JARFILES.get();
+ Message message =
+ ERR_SNMP_CONNHANDLER_OPENDMK_JARFILES_DOES_NOT_EXIST.get(
+ fullpathFile.getAbsolutePath());
logError(message);
return;
}
@@ -137,7 +139,9 @@
this.currentConfig.getListenPort()));
if (!this.isOperational(fullpathFile)) {
- Message message = ERR_SNMP_CONNHANDLER_NO_OPENDMK_JARFILES.get();
+ Message message =
+ ERR_SNMP_CONNHANDLER_OPENDMK_JARFILES_NOT_OPERATIONAL.get(
+ fullpathFile.getAbsolutePath());
logError(message);
return;
}
--
Gitblit v1.10.0