Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- vscode
- EFCore
- ViewModel
- minimalAPI
- .net
- lazy loading
- dbContext
- 상속
- ORM
- c#
- LINQ
- extraParams
- Request
- mac
- extjs
- scanner
- Store
- 명시적외래키
- a604mu
- wifi안됨
- JSON
- cpu불안들어옴
- intellij
- Config
- 코드프로그래머스
- JavaScript
- c#코딩의기술실전편
- React
- error
- 스냅잘찍음
Archives
- Today
- Total
ejyoo's 개발 노트
org.apache.ibatis.exceptions.PersistenceException: 본문
BackEnd/Java Exception 처리
org.apache.ibatis.exceptions.PersistenceException:
ejyoovV 2021. 5. 30. 12:17발생 사유
쿼리에서 실행해야 할 ParameterType 매핑 시 매핑이 제대로 되지 않아 발생
원인
DAO에서 쿼리 실행 시 파라미터를 넘겨주지 않았음.
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='pwd', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 부적합한 열 유형: 1111
### The error may exist in kr/or/ddit/mybatis/Member-Mapper.xml
### The error may involve Member-Mapper.updateMember-Inline
### The error occurred while setting parameters
### SQL: update member set ,pwd = ? ,email = ? ,phone = ? where id = ?
### Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='pwd', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 부적합한 열 유형: 1111