From 2bef37c86aff8ef25256dc4f1a2488cba327de43 Mon Sep 17 00:00:00 2001 From: 25W0075 <25W0075@P9801Z.kjbank.dom> Date: Wed, 17 Dec 2025 11:13:56 +0900 Subject: [PATCH 1/7] =?UTF-8?q?=EC=88=98=EC=A0=95=20FOR=20TEST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/HttpClientAccessTokenServiceWithBase64NiceOn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java index d960c82..6890c9c 100644 --- a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java +++ b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java @@ -241,7 +241,7 @@ public class HttpClientAccessTokenServiceWithBase64NiceOn implements HttpClientA OAuth2AccessTokenVO accessToken = new OAuth2AccessTokenVO(); try (CloseableHttpResponse response = httpClient.execute(httpPost)) { if (response.getCode() != 200) { - throw new Exception("NiceOn token receive status fail value= " + response.getCode()); + throw new Exception("NiceOn TOKEN receive status fail value== " + response.getCode()); } logger.info("HttpClientAccessTokenServiceWithBase64NiceOn==>" + response.getCode()); From 6d7e14a50e8d9ad65ffb31a6d8f5866ed86d012d Mon Sep 17 00:00:00 2001 From: 25W0075 <25W0075@P9801Z.kjbank.dom> Date: Wed, 17 Dec 2025 11:33:31 +0900 Subject: [PATCH 2/7] =?UTF-8?q?=EC=88=98=EC=A0=95=20test=EC=9C=84=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/HttpClientAccessTokenServiceWithBase64NiceOn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java index 6890c9c..5fef85f 100644 --- a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java +++ b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java @@ -248,7 +248,7 @@ public class HttpClientAccessTokenServiceWithBase64NiceOn implements HttpClientA HttpEntity entity = response.getEntity(); String responseString = EntityUtils.toString(entity, encode); - logger.debug("Base64NiceOn oauthToken RECV = [" + responseString + "]"); + logger.debug("Base64NiceOn oauthToken RECV == [" + responseString + "]"); if (StringUtils.isNotBlank(responseString)) { From 14b70a5addf6b5747c2d1b4455db4f17ec7e2178 Mon Sep 17 00:00:00 2001 From: 25W0075 <25W0075@P9801Z.kjbank.dom> Date: Wed, 17 Dec 2025 11:45:14 +0900 Subject: [PATCH 3/7] =?UTF-8?q?test=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/HttpClientAccessTokenServiceWithBase64NiceOn.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java index 5fef85f..e694f6f 100644 --- a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java +++ b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java @@ -120,7 +120,8 @@ public class HttpClientAccessTokenServiceWithBase64NiceOn implements HttpClientA formParams.add(new BasicNameValuePair("scope", oAuthCredentialVo.getScope())); formParams.add(new BasicNameValuePair("grant_type", oAuthCredentialVo.getGrantType())); - String postParameters = "client_id=" + oAuthCredentialVo.getClientId() + "&client_secret=" + oAuthCredentialVo.getClientSecret() + "&scope=" + oAuthCredentialVo.getScope() + "&grant_type=" + oAuthCredentialVo.getGrantType(); + //String postParameters = "client_id=" + oAuthCredentialVo.getClientId() + "&client_secret=" + oAuthCredentialVo.getClientSecret() + "&scope=" + oAuthCredentialVo.getScope() + "&grant_type=" + oAuthCredentialVo.getGrantType(); + String postParameters = "grant_type=" + oAuthCredentialVo.getGrantType() + "&scope=" + oAuthCredentialVo.getScope(); // mTLS config with default connection parameters From 908d314576da15159f740c17d4c117ae14c3f41d Mon Sep 17 00:00:00 2001 From: 25W0075 <25W0075@P9801Z.kjbank.dom> Date: Wed, 17 Dec 2025 13:34:48 +0900 Subject: [PATCH 4/7] =?UTF-8?q?test=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/HttpClientAccessTokenServiceWithBase64NiceOn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java index e694f6f..8c4a102 100644 --- a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java +++ b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithBase64NiceOn.java @@ -201,7 +201,7 @@ public class HttpClientAccessTokenServiceWithBase64NiceOn implements HttpClientA HttpPost httpPost = new HttpPost(uri); //httpPost.setEntity(new UrlEncodedFormEntity(formParams, charset)); httpPost.setEntity(new StringEntity(postParameters, StandardCharsets.UTF_8)); - httpPost.setHeader("Content-Type", contentType+" charset=" + encode); + httpPost.setHeader("Content-Type", contentType+";charset=" + encode); //HTTP HEADER에 client id, client secret를 base64Encode 한 후 추가 String cId = oAuthCredentialVo.getClientId(); From 3901c92c94909a800ddd67d399e56216a221e418 Mon Sep 17 00:00:00 2001 From: 25W0075 <25W0075@P9801Z.kjbank.dom> Date: Fri, 19 Dec 2025 14:14:08 +0900 Subject: [PATCH 5/7] =?UTF-8?q?productcd=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/http/client/impl/HttpClient5AdapterServiceRest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java index 48a27bd..26be9b2 100644 --- a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java +++ b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java @@ -729,7 +729,7 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp private void setNiceOnAuthHeaders(HttpUriRequestBase method, String auth) throws Exception { method.setHeader("Authorization", String.format("%s %s", AccessTokenVO.BEARER_TYPE, auth)); // 나이스지키미 format임 - method.setHeader("ProductID", "2303345072"); + method.setHeader("ProductID", "2303102120"); //method.setHeader("Authorization", // String.format("%s %s", AccessTokenVO.BEARER_TYPE, accessToken.getAccessToken())); } From 9a2b077b5ec2d934e9b3044a868e161c1ec31d09 Mon Sep 17 00:00:00 2001 From: 25W0075 <25W0075@P9801Z.kjbank.dom> Date: Tue, 23 Dec 2025 09:37:45 +0900 Subject: [PATCH 6/7] =?UTF-8?q?bearer=EC=B2=A0=EC=9E=90=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/http/client/impl/HttpClient5AdapterServiceRest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java index d0e92da..c38af50 100644 --- a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java +++ b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java @@ -725,7 +725,7 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp */ private void setNiceOnAuthHeaders(HttpUriRequestBase method, String auth) throws Exception { method.setHeader("Authorization", - String.format("%s %s", AccessTokenVO.BEARER_TYPE, auth)); // 나이스지키미 format임 + String.format("%s %s", "bearer", auth)); // 나이스지키미 format임 String productId = PropManager.getInstance().getProperty("NiceOnProperty","productId.value"); method.setHeader("ProductID", productId); //method.setHeader("Authorization", From c0f69ce4a25155d51db6b25a06e1091047a4167b Mon Sep 17 00:00:00 2001 From: yunjy-hp Date: Tue, 30 Dec 2025 14:32:38 +0900 Subject: [PATCH 7/7] =?UTF-8?q?[=EA=B8=B4=EA=B8=89!]=20retEaiMsg=20null=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20FIX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eai/inbound/processor/RequestProcessor.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java b/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java index cff816c..9fa3073 100644 --- a/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java +++ b/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java @@ -1274,8 +1274,14 @@ public class RequestProcessor extends RequestProcessorSupport { } //응답 전 표준 전문의 로직 처리 필요 한 경우를 위해 호출 - standardManager.getMessageCoordinator().coordinateBeforeResponse(retEaiMsg.getStandardMessage(), vo, prop, inboundCharset); - + try{ + if(EAIMessageKeys.SYNC_SVC.equals(svcTsmtUsgTp) && retEaiMsg != null){ + standardManager.getMessageCoordinator().coordinateBeforeResponse(retEaiMsg.getStandardMessage(), vo, prop, inboundCharset); + } + }catch(Exception e){ + logger.error("coordinateBeforeResponse failed.", e); + } + // 10. 응답 거래로그 Logging if(EAIMessageKeys.SYNC_SVC.equals(svcTsmtUsgTp) && STDMessageKeys.SEND_RECV_CD_SEND.equals(returnType) ) {