diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java index e5aab90f2..d77cf0bbf 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java @@ -701,6 +701,7 @@ public abstract class RepositoryFactorySupport try { return composition.invoke(invocationMulticaster, method, arguments); } catch (Exception ex) { + if (ex instanceof InvocationTargetException) { throw ((InvocationTargetException) ex).getTargetException(); }