From 3ad25dcd1a9b95b9b3639d9163c2cf58e558689f Mon Sep 17 00:00:00 2001 From: Maksim Date: Tue, 18 Feb 2020 19:21:05 +0800 Subject: [PATCH] =?UTF-8?q?RPC=E8=B0=83=E7=94=A8=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=81=9A=E6=8A=BD=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/EnvChangeEntrance.java | 2 +- .../src/main/java/com/fr/design/env/RemoteWorkspace.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java b/designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java index 209efaf7ed..8945b53fba 100644 --- a/designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java +++ b/designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java @@ -279,7 +279,7 @@ public class EnvChangeEntrance { } return noExistServiceSet; } catch (Exception e){ - e.printStackTrace(); + FineLoggerFactory.getLogger().error(e.getMessage(),e); return null; } } diff --git a/designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java b/designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java index 570f1a4db3..bdd954b865 100644 --- a/designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java +++ b/designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java @@ -1,6 +1,7 @@ package com.fr.design.env; import com.fr.design.i18n.Toolkit; +import com.fr.rpc.ExceptionMethod; import com.fr.stable.AssistUtils; import com.fr.workspace.WorkContext; import com.fr.workspace.Workspace; @@ -83,11 +84,11 @@ public class RemoteWorkspace implements Workspace { } @Override - public T get(Class type, Method defaultMethod){ - if(defaultMethod != null) { + public T get(Class type, ExceptionMethod exceptionMethod){ + if(exceptionMethod != null) { WorkObjectPool objectPool = client.getPool(); if (objectPool instanceof WorkspaceProxyPool) { - return ((WorkspaceProxyPool) objectPool).get(type, defaultMethod); + return ((WorkspaceProxyPool) objectPool).get(type, exceptionMethod); }else { return client.getPool().get(type); }