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

neil_a_wilson
15.22.2007 767d37a141a0dbce46eb154f8b67a7a212b20cd8
opends/src/server/org/opends/server/core/SchemaConfigManager.java
@@ -865,6 +865,7 @@
      if (entry == null)
      {
        // The file was empty -- skip it.
        reader.close();
        return new LinkedList<Modification>();
      }
    }
@@ -891,6 +892,32 @@
      }
    }
    // If there are any more entries in the file, then print a warning message.
    try
    {
      Entry e = reader.readEntry(false);
      if (e != null)
      {
        int    msgID   = MSGID_CONFIG_SCHEMA_MULTIPLE_ENTRIES_IN_FILE;
        String message = getMessage(msgID, schemaFile, schemaDirPath);
        logError(ErrorLogCategory.SCHEMA, ErrorLogSeverity.SEVERE_WARNING,
                 message, msgID);
      }
    }
    catch (Exception e)
    {
      if (debugEnabled())
      {
        TRACER.debugCaught(DebugLogLevel.ERROR, e);
      }
      int    msgID   = MSGID_CONFIG_SCHEMA_UNPARSEABLE_EXTRA_DATA_IN_FILE;
      String message = getMessage(msgID, schemaFile, schemaDirPath,
                                  getExceptionMessage(e));
      logError(ErrorLogCategory.SCHEMA, ErrorLogSeverity.SEVERE_WARNING,
               message, msgID);
    }
    try
    {
      reader.close();