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
10 ■■■■■ changed files
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java 10 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
@@ -156,7 +156,15 @@
      listeners.add(new HostPort(config.getListenPort()));
      rmiConnector.finalizeConnectionHandler(true, portChanged);
      rmiConnector.initialize();
      try
      {
        rmiConnector.initialize();
      }
      catch (RuntimeException e)
      {
        resultCode = ResultCode.OPERATIONS_ERROR;
        messages.add(e.getMessage());
      }
    }
    // Return configuration result.