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); }