From b157d7c608416121a2a7bdc374f73bfaa5f9052b Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 9 Jan 2007 14:08:51 +0000 Subject: [PATCH] * Prevent UI freeze because of unhandle exception * Make sure CacheReset is always run on client --- client/src/org/compiere/apps/ProcessCtl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/ProcessCtl.java b/client/src/org/compiere/apps/ProcessCtl.java index 3558793328..6572b6970d 100644 --- a/client/src/org/compiere/apps/ProcessCtl.java +++ b/client/src/org/compiere/apps/ProcessCtl.java @@ -245,7 +245,7 @@ public class ProcessCtl extends Thread rs.close(); pstmt.close(); } - catch (SQLException e) + catch (Exception e) { m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure") + " " + e.getLocalizedMessage(), true); unlock(); @@ -447,7 +447,11 @@ public class ProcessCtl extends Thread { log.fine(m_pi.toString()); boolean started = false; - if (DB.isRemoteProcess()) + + //CacheReset must execute on client + boolean resetCache = CacheReset.class.getName().equals(m_pi.getClassName()); + + if (DB.isRemoteProcess() && !resetCache) { Server server = CConnection.get().getServer(); try