Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-10657

No reason is logged when shutting down an embedded OpenDJ instance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 13.0.0, 13.5.0
    • Fix Version/s: 14.0.0
    • Component/s: embedded, install
    • Labels:
    • Rank:
      1|hzsy9r:
    • Support Ticket IDs:

      Description

      During a normal install of OpenAM with embedded configuration, OpenDJ will log a shutdown but end abruptly at "reason provided for the shutdown was".

      [15/Feb/2017:14:13:45 +0000] category=CORE severity=NOTICE msgID=org.opends.messages.core.139 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerShutdown, alert ID org.opends.messages.core-141): The Directory Server has started the shutdown process. The shutdown was initiated by an instance of class com.sun.identity.setup.EmbeddedOpenDS and the reason provided for the shutdown was
      

      EmbeddedOpenDS.java is not using the reason parameter.

          /**
           * Gracefully shuts down the embedded OpenDJ instance.
           *
           * @param reason string representing reason why shutdown was called.
           * @throws Exception on encountering errors.
           */
          public static void shutdownServer(String reason) throws Exception {
              Debug debug = Debug.getInstance(SetupConstants.DEBUG_NAME);
              if (isStarted()) {
                  debug.message("EmbeddedOpenDS.shutdown server...");
                  DirectoryServer.shutDown(
                          "com.sun.identity.setup.EmbeddedOpenDS",
                          LocalizableMessage.EMPTY);
                  int sleepcount = 0;
                  while (DirectoryServer.isRunning() && (sleepcount < 60)) {
                      sleepcount++;
                      Thread.sleep(1000);
                  }
                  serverStarted = false;
                  debug.message("EmbeddedOpenDS.shutdown server success.");
              }
          }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.dunn Andrew Dunn [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: