728x90
반응형
[에러 메시지]
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the nsCustOrderInfo.selectTotalAndAgreeCntCounts-InlineParameterMap.
--- Check the statement (query failed).
--- Cause: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
1. 원인
xml 파일 내 select문에 세미콜론(;)이 포함되어 있어 생긴 에러였다.
2. 해결
기존 코드
<select id="selectA" resultClass="java.util.HashMap">
SELECT A
FROM ABC
WHERE id = 100;
</select>
수정 코드
<select id="selectA" resultClass="java.util.HashMap">
SELECT A
FROM ABC
WHERE id = 100
</select>
세미콜론을 제거했다.
728x90
반응형
'[Project] > 업무일지' 카테고리의 다른 글
[Java] 화면에 custcnt 데이터 반환 되지 않는 이슈 해결 (0) | 2024.07.18 |
---|---|
[Java] NumberFormatException: For input string: "null" (1) | 2024.07.18 |
[Java] NullPointerException (0) | 2024.07.17 |
[Java/XML/SQL/Oracle] RuntimeException, IllegalArgumentException (0) | 2024.07.12 |
[Java/Java Swing] ArrayIndexOutOfBoundsException (0) | 2024.07.12 |