nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='memberaddr', mode=IN, javaType=class j-----

이태규·2022년 4월 1일
0

spring

목록 보기
36/64

Fri Apr 01 10:08:41 KST 2022
There was an unexpected error (type=Internal Server Error, status=500).
nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='memberaddr', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #3 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #3 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.h2.jdbc.JdbcSQLDataException: Serialization failed, cause: "java.io.NotSerializableException: com.example.dto.MemberAddrDTO" [90026-200]
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='memberaddr', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #3 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #3 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.h2.jdbc.JdbcSQLDataException: Serialization failed, cause: "java.io.NotSerializableException: com.example.dto.MemberAddrDTO" [90026-200]
	at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
"UPDATE MEMBERADDR SET UADDRESSS = #
{memberaddr.uaddresss},UPOSTCODE=#{memberaddr.upostcode} 
WHERE UCODE=#{memberaddr} AND UEMAIL= #{memberaddr.uemail}"
"UPDATE MEMBERADDR SET UADDRESSS = #
{memberaddr.uaddresss},UPOSTCODE=#{memberaddr.upostcode} WHERE 
UCODE=#{memberaddr.ucode} AND UEMAIL= #{memberaddr.uemail}"

memberaddr.ucode를 해야하는데 ucode를 뺴먹음

profile
한 걸음씩 나아가자

0개의 댓글