일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- letterspacing
- java
- servicename
- http
- 스레드 덤프
- 오블완
- JDBC
- ibatis
- MariaDB
- 티스토리챌린지
- Tomcat
- 프로세스
- cmd
- service name
- 컨트롤러
- 스레드
- Database
- MySQL
- oracle
- 영상편집
- 안드로이드 스튜디오
- httpservletreqeust
- SID
- Docker
- HTML
- 키보드
- 톰캣
- wsdl
- Linux
- API
- Today
- Total
블로그 이름
[Spring] NestedSQLException 에러 본문
쿼리 조회가 안된다.
문법 예외라고 한다.
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: 경로 [/blazeds]의 컨텍스트 내의 서블릿 [...Servlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the 쿼리명-InlineParameterMap.
--- Check the statement (query failed).
--- Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE DATE_FORMAT(IFNULL(licenseDateFrom, NOW()), '%Y%m%d') <= DATE_FORMAT(NO...' at line 1]을(를) 발생시켰습니다.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE DATE_FORMAT(IFNULL(licenseDateFrom, NOW()), '%Y%m%d') <= DATE_FORMAT(NO...' at line 1
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
쿼리 확인해보니 WHERE 절이 두 개 들어가 있었다.
AND로 수정하여 해결했다.
'개발 > 오류' 카테고리의 다른 글
NoClassDefFoundError 오류 (0) | 2024.03.06 |
---|---|
415에러 (0) | 2024.02.14 |
ORA-28001: the password has expired (0) | 2024.02.02 |
ng start 시작 오류 An unhandled exception occurred: listen EADDRNOTAVAIL: address not available (2) | 2024.01.25 |
[Spring] Context initialization failed 에러 (0) | 2022.06.08 |