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

lutoff
10.45.2007 3064b8cec96b66575e1ac1b4ee0f240dace31166
Fix for issue #1880 (Runtime Exceptions in Jmx connection code)

Runtime exception are catched an handled as an operation failure.
1 files modified
8 ■■■■■ changed files
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
@@ -156,8 +156,16 @@
      listeners.add(new HostPort(config.getListenPort()));
      rmiConnector.finalizeConnectionHandler(true, portChanged);
      try
      {
      rmiConnector.initialize();
    }
      catch (RuntimeException e)
      {
        resultCode = ResultCode.OPERATIONS_ERROR;
        messages.add(e.getMessage());
      }
    }
    // Return configuration result.
    return new ConfigChangeResult(resultCode, false, messages);