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

floblanc
08.52.2009 94d6c71da47c98f38b3a474a5418ba9125b1f46e
Fix issue 3700: When the creation of a workflow element fails, the full stack trace is displayed in the error message 
1 files modified
11 ■■■■ changed files
opends/src/server/org/opends/server/workflowelement/WorkflowElementConfigManager.java 11 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/WorkflowElementConfigManager.java
@@ -22,13 +22,13 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2007-2008 Sun Microsystems, Inc.
 *      Copyright 2007-2009 Sun Microsystems, Inc.
 */
package org.opends.server.workflowelement;
import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString;
import java.lang.reflect.InvocationTargetException;
import static org.opends.messages.ConfigMessages.*;
import java.lang.reflect.Method;
@@ -471,10 +471,15 @@
    }
    catch (Exception e)
    {
      Throwable t = e;
      if (e instanceof InvocationTargetException && e.getCause() != null) {
        t = e.getCause();
      }
      Message message =
        ERR_CONFIG_WORKFLOW_ELEMENT_CANNOT_INITIALIZE.get(
            className, String.valueOf(configuration.dn()),
            stackTraceToSingleLineString(e));
            t.getMessage());
      throw new InitializationException(message);
    }
  }