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

jvergara
11.56.2009 d9c030fe499b0c596023e50577b30158e6c5b7c3
Fix for issue 3925 (dsreplication is broken)
Check that the ClassLoaderProvider is not enabled before enabling it.
2 files modified
12 ■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java 7 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 5 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
@@ -125,7 +125,7 @@
    super();
    /* Do some initialization required to use the administration framework
     * classes.  Note that this is not done in the installer code because
     * classes.  Note that this is not done in the uninstaller code because
     * when the basic configuration of the server is performed (using
     * ConfigureDS) this initialization is done.
     */
@@ -133,7 +133,10 @@
    //  Bootstrap definition classes.
    try
    {
      ClassLoaderProvider.getInstance().enable();
      if (!ClassLoaderProvider.getInstance().isEnabled())
      {
        ClassLoaderProvider.getInstance().enable();
      }
    }
    catch (Throwable t)
    {
opendj-sdk/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java
@@ -396,7 +396,10 @@
        // Bootstrap definition classes.
        try
        {
          ClassLoaderProvider.getInstance().enable();
          if (!ClassLoaderProvider.getInstance().isEnabled())
          {
            ClassLoaderProvider.getInstance().enable();
          }
          // Switch off class name validation in client.
          ClassPropertyDefinition.setAllowClassValidation(false);