summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntje Fuhrmann2013-02-12 05:52:27 (EST)
committerSven Rottstock2013-03-11 04:54:25 (EDT)
commitd9aea63d969ec974f2d02ed7548f07ad50d11e41 (patch)
treee389ff45199635ab9da1607e73177f1235bd6e7f
parent4ced699c877fdafc76f0b19832a0dc79b86244f6 (diff)
downloadorg.eclipse.stardust.engine-d9aea63d969ec974f2d02ed7548f07ad50d11e41.zip
org.eclipse.stardust.engine-d9aea63d969ec974f2d02ed7548f07ad50d11e41.tar.gz
org.eclipse.stardust.engine-d9aea63d969ec974f2d02ed7548f07ad50d11e41.tar.bz2
Jira-ID: CRNT-26779
sysconsole not giving proper reason of failure git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/engine@62922 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--stardust-engine-base/src/main/java/org/eclipse/stardust/common/reflect/Reflect.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/stardust-engine-base/src/main/java/org/eclipse/stardust/common/reflect/Reflect.java b/stardust-engine-base/src/main/java/org/eclipse/stardust/common/reflect/Reflect.java
index 9da80d7..8471070 100644
--- a/stardust-engine-base/src/main/java/org/eclipse/stardust/common/reflect/Reflect.java
+++ b/stardust-engine-base/src/main/java/org/eclipse/stardust/common/reflect/Reflect.java
@@ -12,6 +12,7 @@ package org.eclipse.stardust.common.reflect;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.*;
@@ -341,6 +342,13 @@ public class Reflect
return ctor.newInstance(args);
}
}
+ catch (InvocationTargetException e)
+ {
+ Throwable targetException = e.getTargetException();
+ Throwable t = targetException != null ? targetException : e;
+ throw new InternalException("Cannot instantiate class '" + clazz.getName()
+ + "'.", t);
+ }
catch (Exception e)
{
throw new InternalException("Cannot instantiate class '" + clazz.getName()