Cause: java.sql.SQLException: 无效的列类型: 1111] with root cause-ORACEL

严重: Servlet.service() for servlet [spring] in context with path [/*****] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='ENTERPRISE_NAME', 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 null for parameter #13 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111] with root cause
java.sql.SQLException: 无效的列类型: 1111
	at oracle.jdbc.driver.OracleStatement.getInternalType(OracleStatement.java:3978)

排查:

Cause: java.sql.SQLException: 无效的列类型: 1111] with root cause-ORACEL_第1张图片

原因是插入名称时,ENTERPRISE_NAME字段传递了null导致mybatis报错。

解决方法为:

Cause: java.sql.SQLException: 无效的列类型: 1111] with root cause-ORACEL_第2张图片

你可能感兴趣的:(Cause:,SQL,Oracle)