nullException 예외처리. UTF8로 간주.
This commit is contained in:
@@ -115,17 +115,24 @@ public class ApiRequestBodyFilter extends OncePerRequestFilter {
|
|||||||
adapterGrpName = stdMsgInfo.gAdapterGroupName();
|
adapterGrpName = stdMsgInfo.gAdapterGroupName();
|
||||||
|
|
||||||
adptUri = findAdptUri(apiUri, HttpDynamicInAdapterManager.getInstance(), adapterGrpName);
|
adptUri = findAdptUri(apiUri, HttpDynamicInAdapterManager.getInstance(), adapterGrpName);
|
||||||
} catch (Exception e) {
|
|
||||||
adptUri = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
AdapterGroupVO adapterGroupVO = AdapterManager.getInstance().getAdapterGroupVO( adptUri.getAdptGrpName());
|
AdapterGroupVO adapterGroupVO = AdapterManager.getInstance().getAdapterGroupVO( adptUri.getAdptGrpName());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( adapterGroupVO == null ) {
|
if( adapterGroupVO == null ) {
|
||||||
return Charset.defaultCharset().name();
|
return Charset.defaultCharset().name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return StringUtils.isNotBlank(adapterGroupVO.getMessageEncode()) ? adapterGroupVO.getMessageEncode() : Charset.defaultCharset().name(); //서버 jvm file.encoding 확인, file.encoding=utf-8 주고있음.
|
return StringUtils.isNotBlank(adapterGroupVO.getMessageEncode()) ? adapterGroupVO.getMessageEncode() : Charset.defaultCharset().name(); //서버 jvm file.encoding 확인, file.encoding=utf-8 주고있음.
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("Received a transaction with an unknown interface ID", e);
|
||||||
|
return Charset.defaultCharset().name();//utf-8
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user