diff --git a/src/main/java/com/eactive/eai/outbound/DefaultProcess.java b/src/main/java/com/eactive/eai/outbound/DefaultProcess.java index 1a9edda..bcf7933 100644 --- a/src/main/java/com/eactive/eai/outbound/DefaultProcess.java +++ b/src/main/java/com/eactive/eai/outbound/DefaultProcess.java @@ -704,6 +704,18 @@ public abstract class DefaultProcess extends Process { Object responseObj = adapterErrorMessageHandler.generateNonStandardErrorResponseMessage(inboudnAdapterGroupName, inboudnAdapterName, this.callProp, this.tgtTranObject, this.resEaiMsg); if(responseObj != null) { resStandardMessage.setBizData(responseObj, inboundAdapterGroupVO.getMessageEncode()); + } else { + if ((com.eactive.eai.adapter.Keys.IF_STANDARD.equals(this.adptrMsgPtrnCd) + ||com.eactive.eai.adapter.Keys.IF_SUBSTANDARD.equals(this.adptrMsgPtrnCd))) { + String errorCode = mapper.getErrorCode(resStandardMessage); + String errorMsg = StringUtils.trim(mapper.getErrorMsg(resStandardMessage)); + String errorDesc = StringUtils.trim(resStandardMessage.findItemValue("MSG.MAIN_MSG.outp_msg_desc")); + this.resEaiMsg.setRspErr("RECEAIINA001", String.format("[%s] %s (%s)", errorCode, errorMsg, errorDesc)); + return; + } else { + this.resEaiMsg.setRspErr("RECEAIINA001", "비표준 오류 응답 수신"); + return; + } } this.resEaiMsg.setRspErrCd(EAIMessageKeys.BWK_FAILMSG_CODE, false);