From 5aa9b8e4700a5f7f7418e23ca0b9c4e0620aeec5 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 28 Nov 2013 19:30:58 +0100 Subject: [PATCH] IDEA-116260 ISE: RPC handler object "AddOnlineUser" not found at com.intellij.ide.XmlRpcServerImpl.process --- .../src/com/intellij/ide/XmlRpcServerImpl.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/XmlRpcServerImpl.java b/platform/platform-impl/src/com/intellij/ide/XmlRpcServerImpl.java index 183f72296d33..b5a5b40b3848 100644 --- a/platform/platform-impl/src/com/intellij/ide/XmlRpcServerImpl.java +++ b/platform/platform-impl/src/com/intellij/ide/XmlRpcServerImpl.java @@ -85,7 +85,7 @@ public class XmlRpcServerImpl implements XmlRpcServer { @Override public boolean process(@NotNull String path, @NotNull FullHttpRequest request, @NotNull ChannelHandlerContext context, @Nullable Map handlers) throws IOException { - if (!(path.isEmpty() || (path.length() == 1 && path.charAt(0) == '/') || path.equalsIgnoreCase("/RPC2"))) { + if (!(path.isEmpty() || (path.length() == 1 && path.charAt(0) == '/') || path.equalsIgnoreCase("/rpc2"))) { return false; } @@ -136,16 +136,12 @@ public class XmlRpcServerImpl implements XmlRpcServer { return handler; } - IllegalStateException exception; if (dot > -1) { - exception = new IllegalStateException("RPC handler object \"" + handlerName + "\" not found"); + throw new IllegalStateException("RPC handler object \"" + handlerName + "\" not found"); } else { - exception = new IllegalStateException("RPC handler object not found for \"" + methodName); + throw new IllegalStateException("RPC handler object not found for \"" + methodName); } - - LOG.error(exception); - throw exception; } private static Object invokeHandler(@NotNull Object handler, XmlRpcServerRequest request) throws Throwable {