From 003531d1be38a2abd2b875452da1a752273576a2 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 14 Jun 2007 15:46:00 +0000
Subject: [PATCH] cleanup : suppress a few TODO comments by throwing exception and logging proper error message in case of unlikely failures.

---
 opends/src/server/org/opends/server/messages/ReplicationMessages.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ReplicationMessages.java b/opends/src/server/org/opends/server/messages/ReplicationMessages.java
index 85f2e53..bd671fe 100644
--- a/opends/src/server/org/opends/server/messages/ReplicationMessages.java
+++ b/opends/src/server/org/opends/server/messages/ReplicationMessages.java
@@ -415,12 +415,20 @@
     CATEGORY_MASK_SYNC | SEVERITY_MASK_SEVERE_ERROR | 58;
 
   /**
-   * Eception durin rename of a conflicting entry.
+   * Exception during rename of a conflicting entry.
    */
   public static final int MSGID_EXCEPTION_RENAME_CONFLICT_ENTRY =
     CATEGORY_MASK_SYNC | SEVERITY_MASK_SEVERE_ERROR | 59;
 
   /**
+   * The JVM does not support UTF8. This is required to serialize
+   * the changes and store them in the database.
+   */
+  public static final int MSGID_CHANGELOG_UNSUPPORTED_UTF8_ENCODING =
+    CATEGORY_MASK_SYNC | SEVERITY_MASK_SEVERE_ERROR | 60;
+
+
+  /**
    * Register the messages from this class in the core server.
    *
    */
@@ -575,5 +583,9 @@
         "An error happened trying the rename a conflicting entry : ");
     registerMessage(MSGID_EXCEPTION_RENAME_CONFLICT_ENTRY,
         "An Exception happened when trying the rename a conflicting entry : ");
+    registerMessage(MSGID_CHANGELOG_UNSUPPORTED_UTF8_ENCODING,
+        "The JVM does not support UTF-8. This is required to be able to "
+        + "encode the changes in the database. "
+        + "This replication server will now shutdown");
   }
 }

--
Gitblit v1.10.0