From d410901a08f760f7a199c29d67b30179ccc6da8b Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Mon, 06 Jul 2026 07:30:49 +0000
Subject: [PATCH] Log JMX RMI connector startup failure at error level (#699)

---
 opendj-server-legacy/src/messages/org/opends/messages/protocol.properties            |    5 ++++-
 opendj-server-legacy/src/main/java/org/opends/server/protocols/jmx/RmiConnector.java |    8 ++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/jmx/RmiConnector.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/jmx/RmiConnector.java
index bf17de9..fa14fa0 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/jmx/RmiConnector.java
+++ b/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());
     }
diff --git a/opendj-server-legacy/src/messages/org/opends/messages/protocol.properties b/opendj-server-legacy/src/messages/org/opends/messages/protocol.properties
index bc92b6b..8d3518e 100644
--- a/opendj-server-legacy/src/messages/org/opends/messages/protocol.properties
+++ b/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 \

--
Gitblit v1.10.0