[Error] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping 부적합한 열 유형: 1111

2024. 1. 11. 02:03·Error


✅ 오류
→org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='productContents', 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 #2 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 부적합한 열 유형: 1111

✅ 문제원인

→ MyBatis가 데이터베이스 열에 대한 매핑 문제로 인해 SQL 문을 실행하지 못할 때 발생

  1. 넘어가는 데이터 타입이 다를 경우
  2. Map을 파라미터로 넘겼을 시에 해당 맵안에 파라미터가 Null일 경우
  3. request 파라미터 값이 없을 경우
  4. form id & name 값 미지정시
  5. ajax를 사용했을 겨우에 value가 하나라도 null일 경우.


✅ 해결방법
→ 오타였습니다..!

'Error' 카테고리의 다른 글

[Error] java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig  (0) 2024.01.20
[Error] Port 80 required by Tomcat v9.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port  (0) 2024.01.17
[Error] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]을(를) 시작하지 못했습니다.  (0) 2024.01.17
[Error] org.springframework.beans.factory.BeanCreationException  (0) 2024.01.15
[Error] Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:  (0) 2024.01.11
'Error' 카테고리의 다른 글
  • [Error] Port 80 required by Tomcat v9.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port
  • [Error] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]을(를) 시작하지 못했습니다.
  • [Error] org.springframework.beans.factory.BeanCreationException
  • [Error] Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
Naah
Naah
  • Naah
    blueprint
    Naah
  • 전체
    오늘
    어제
    • 분류 전체보기 (7)
      • Spring Data JPA (0)
      • Error (7)
      • Next.js (0)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 글쓰기
    • manage
  • 링크

  • 공지사항

  • 인기 글

  • 태그

  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
Naah
[Error] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping 부적합한 열 유형: 1111
상단으로

티스토리툴바