org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter.
来源:互联网 发布:手机淘宝店铺海报图片 编辑:程序博客网 时间:2024/04/29 06:47
工具:STS
错误:------- 就是设置的参数为NULL了
org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nullable parameters. Cause: java.sql.SQLException: 无效的列类型: 1111
; uncategorized SQLException for SQL []; SQL state [99999]; error code [17004]; 无效的列类型: 1111; nested exception is java.sql.SQLException: 无效的列类型: 1111
xml: //我这是动态赋值的,列字段也是不固定的
<insert id="saveValues" parameterType="String">
<![CDATA[
INSERT INTO ${sdeUserName}.${sdeLayerName}(objectid,#{file}) values (V_BOOKMARK_SEQ.nextVal,${upSql})
]]>
</insert>
错误的DAO: public void saveValues(String sdeUserName,String sdeLayerName,String file, String upSql);
正确的DAO: public void saveValues(@Param("sdeUserName") String sdeUserName, @Param("sdeLayerName") String sdeLayerName, @Param("file") String file,@Param("upSql") String upSql);
不加@Param关键字,xml参数就收不到数据
- org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter.
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.UncategorizedSQLException:
- org.springframework.jdbc.UncategorizedSQLException:
- org.springframework.jdbc.UncategorizedSQLException
- org.springframework.jdbc.UncategorizedSQLException
- 异常org.springframework.jdbc.UncategorizedSQLException: Hibernate operation
- org.springframework.jdbc.UncategorizedSQLException 错误解决
- org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLExcepti
- Ibatis 报:org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized S
- org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER
- spring更新clob报错:org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL
- org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for
- mysql 保存手机输入法的数据报错org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback
- org.springframework.jdbc.UncategorizedSQLException: 不允许从数据类型 varbinary 到 date 的隐式转换
- Mybatis报了Error setting null parameter问题解决
- Error setting null for parameter #10 with JdbcType OTHER .
- 我的投资案例-序-继往开来的一篇
- Android-->AndroidManifest.xml 文件 <meta-data> 使用方法
- web 前端学习网站 收集
- java编程思想向上转型例子
- Hibernate主键生成策略
- org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter.
- 网页设计图片素材网站 收集
- Android AsyncTask完全解析
- iOS 旋转木马效果【优化版】
- leetcode-Kth Largest Element in an Array
- 第十一周项目6二叉树算法(图示)
- Ionic 2.0 Alpha版本发布了
- 新手安装cocoapods OSX EI captain
- IntelliJ IDEA 编写spark项目