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

Fabio Pistolesi
25.14.2015 08b01c14a5ed6bcecd2ae7da76cd342d01d18fb0
OPENDJ-2456 Server startup failed while attempting to release a shared lock

Original occurrence does not seem to be reproducible.
However, log messages are a bit lean on the details, so try to gather more information for next time.
1 files modified
13 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/core/SynchronizationProviderConfigManager.java 13 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/SynchronizationProviderConfigManager.java
@@ -188,8 +188,8 @@
        {
          logger.traceException(e);
          ccr.addMessage(ERR_CONFIG_SYNCH_ERROR_INITIALIZING_PROVIDER.get(
              configuration.getJavaClass(), configuration.dn()));
          ccr.addMessage(ERR_CONFIG_SYNCH_ERROR_INITIALIZING_PROVIDER.get(configuration.dn(),
              stackTraceToSingleLineString(e)));
          ccr.setResultCode(DirectoryServer.getServerErrorResultCode());
        }
      }
@@ -277,8 +277,8 @@
      {
        logger.traceException(e);
        ccr.addMessage(ERR_CONFIG_SYNCH_ERROR_INITIALIZING_PROVIDER.get(
            configuration.getJavaClass(), configuration.dn()));
        ccr.addMessage(ERR_CONFIG_SYNCH_ERROR_INITIALIZING_PROVIDER.get(configuration.dn(),
            stackTraceToSingleLineString(e)));
        ccr.setResultCode(DirectoryServer.getServerErrorResultCode());
      }
    }
@@ -357,9 +357,8 @@
      {}
      // Handle the exception: put a message in the unacceptable reasons.
      LocalizableMessage message = ERR_CONFIG_SYNCH_ERROR_INITIALIZING_PROVIDER.get(
              className, configuration.dn());
      throw new ConfigException(message, e);
      throw new ConfigException(
          ERR_CONFIG_SYNCH_ERROR_INITIALIZING_PROVIDER.get(configuration.dn(), stackTraceToSingleLineString(e)), e);
    }
    return provider;
  }