From 1fcb6b747af286f34b8a69857f5fa4f26720ce1d Mon Sep 17 00:00:00 2001 From: Gregory Shrago Date: Thu, 10 Mar 2011 04:53:22 +0300 Subject: [PATCH] IDEA-64219 JPA-QL Console use DataSource connection information --- platform/util/src/com/intellij/execution/rmi/RemoteObject.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java index 7ddb088747e6..b912b50b820d 100644 --- a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java +++ b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java @@ -104,6 +104,7 @@ public class RemoteObject implements Remote, Unreferenced { if (foreignException) { final RuntimeException wrapper = new RuntimeException(ex.toString()); wrapper.setStackTrace(ex.getStackTrace()); + wrapper.initCause(wrapException(ex.getCause())); ex = wrapper; } return ex;