From 1889e757dfa1da9bfbc4008404f3d9045a901048 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Fri, 17 Aug 2012 21:51:28 +0400 Subject: [PATCH] EA-38362 - EE: RemoteProcessSupport.acquire --- .../com/intellij/execution/rmi/RemoteProcessSupport.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java b/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java index 2e5306315a6c..2acb8dde4a7a 100644 --- a/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java +++ b/platform/lang-impl/src/com/intellij/execution/rmi/RemoteProcessSupport.java @@ -129,7 +129,13 @@ public abstract class RemoteProcessSupport { } if (ref.isNull()) throw new RuntimeException("Unable to acquire remote proxy for: " + getName(target)); RunningInfo info = ref.get(); - if (info.handler == null) throw new ExecutionException(info.name); + if (info.handler == null) { + String message = info.name; + if (message != null && message.startsWith("ERROR: transport error 202:")) { + message = "Unable to start java process in debug mode: -Xdebug parameters are already in use."; + } + throw new ExecutionException(message); + } return acquire(info); }