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

Valery Kharseko
23 hours ago d410901a08f760f7a199c29d67b30179ccc6da8b
Log JMX RMI connector startup failure at error level (#699)

Co-authored-by: Maxim Thomas <maxim.thomas@gmail.com>
2 files modified
13 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/protocols/jmx/RmiConnector.java 8 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/protocol.properties 5 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/protocols/jmx/RmiConnector.java
@@ -17,6 +17,9 @@
 */
package org.opends.server.protocols.jmx;
import static org.opends.messages.ProtocolMessages.*;
import static org.opends.server.util.StaticUtils.*;
import java.io.IOException;
import java.net.InetAddress;
import java.rmi.RemoteException;
@@ -182,6 +185,11 @@
    {
      logger.traceException(e);
      logger.error(ERR_JMX_CONNHANDLER_CANNOT_START_RMI_CONNECTOR,
          jmxConnectionHandler.getComponentEntryDN(),
          jmxConnectionHandler.getListenPort(),
          getExceptionMessage(e));
      throw new RuntimeException("Error while starting the RMI module : "
          + e.getMessage());
    }
opendj-server-legacy/src/messages/org/opends/messages/protocol.properties
@@ -13,7 +13,7 @@
# Copyright 2006-2009 Sun Microsystems, Inc.
# Portions Copyright 2013-2016 ForgeRock AS.
# Portions copyright 2013-2014 Manuel Gaupp
# Portions Copyright 2026 3A Systems LLC.
#
@@ -731,6 +731,9 @@
ERR_JMX_INSUFFICIENT_PRIVILEGES_439=You do not have sufficient \
 privileges to establish the connection through JMX. At least JMX_READ \
 privilege is required
ERR_JMX_CONNHANDLER_CANNOT_START_RMI_CONNECTOR_1537=The JMX connection \
 handler defined in configuration entry %s was unable to start the JMX \
 RMI connector on port %d: %s
ERR_INTERNALCONN_NO_SUCH_USER_440=User %s does not exist in the directory
ERR_INTERNALOS_CLOSED_441=This output stream has been closed
ERR_INTERNALOS_INVALID_REQUEST_442=The provided LDAP message had an \