From 03f22512d6880214e1fa26676e4963d0c3d8fc35 Mon Sep 17 00:00:00 2001 From: robokaso Date: Mon, 23 Feb 2009 21:12:19 +0000 Subject: [PATCH] RESOLVED - BATCH-1094: SimpleMethodInvoker discards original exception preserve stacktrace when rethrowing --- .../batch/core/configuration/util/SimpleMethodInvoker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/util/SimpleMethodInvoker.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/util/SimpleMethodInvoker.java index d222c4416..f4325799b 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/util/SimpleMethodInvoker.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/util/SimpleMethodInvoker.java @@ -95,7 +95,7 @@ public class SimpleMethodInvoker implements MethodInvoker { return method.invoke(object, invokeArgs); } catch (Exception e) { throw new IllegalArgumentException("Unable to invoke method: [" + method + "] on object: [" + - object + "] with arguments: [" + Arrays.toString(args) + "]"); + object + "] with arguments: [" + Arrays.toString(args) + "]", e); } }