From 3b279354f7509f594ae02ef6044fd250b011b7c2 Mon Sep 17 00:00:00 2001 From: Hyung-Gyu Ryoo Date: Thu, 14 Oct 2021 10:19:23 +0900 Subject: [PATCH] [CBRD-24063] Fix "Cannot communicate with the broker" error (#22) http://jira.cubrid.org/browse/CBRD-24063 This PR fixes a regression caused by 3807c2b. In ExecuteThreadStatus.DESTROY status, UServerSideConnection.close(I) also be called, and It causes "Cannot communicate with the broker" error at the end of calling Java Stored procedure. --- src/jdbc/cubrid/jdbc/jci/UServerSideConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jdbc/cubrid/jdbc/jci/UServerSideConnection.java b/src/jdbc/cubrid/jdbc/jci/UServerSideConnection.java index 637f329..e157f03 100644 --- a/src/jdbc/cubrid/jdbc/jci/UServerSideConnection.java +++ b/src/jdbc/cubrid/jdbc/jci/UServerSideConnection.java @@ -200,7 +200,7 @@ protected void closeInternal() { new Class[] {}, this.curThread, new Object[] {}); - if (currentStatus == CALL) { + if (currentStatus != INVOKE) { disconnect(); UJCIUtil.invoke( "com.cubrid.jsp.ExecuteThread",