mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
28.08.2009 d0c162ca0a9bcb9ad333b8684ea1f26d0aa8ac3d
Fix a typo in one of the SNMP error messages.

Add two new error messages to be more specific about the error that occurred when loading the openDMK jar file.
2 files modified
22 ■■■■ changed files
opends/src/messages/messages/protocol.properties 12 ●●●● patch | view | raw | blame | history
opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java 10 ●●●● patch | view | raw | blame | history
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
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;
        }