From 881d2598eda8ec9a22e20edb6aff931d6c9f0399 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Wed, 22 Mar 2023 10:21:03 +0000 Subject: [PATCH] Closes gh-30160 --- .../org/springframework/orm/jpa/SharedEntityManagerCreator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java b/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java index 1b0446511744..911bbf3ba330 100644 --- a/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java +++ b/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java @@ -430,7 +430,7 @@ else if (targetClass.isInstance(proxy)) { entry.setValue(storedProc.getOutputParameterValue(key.toString())); } } - catch (IllegalArgumentException ex) { + catch (RuntimeException ex) { entry.setValue(ex); } }