永发信息网

Cause: java.sql.SQLException: 无效的列类型。急!!!!!

答案:5  悬赏:70  手机版
解决时间 2021-03-08 16:24
enterNetTime字段有值的时候不报错,是空值的时候报错。
org.springframework.jdbc.UncategorizedSQLException: (SqlMapClient operation): encountered SQLException [
--- The error occurred while applying a parameter map.
--- Check the insertNeEditionInfo-InlineParameterMap.
--- Check the parameter mapping for the 'enterNetTime' property.
--- Cause: java.sql.SQLException: 无效的列类型]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the insertNeEditionInfo-InlineParameterMap.
--- Check the parameter mapping for the 'enterNetTime' property.
--- Cause: java.sql.SQLException: 无效的列类型
(sql.PreparedStatement 48 ) {pstm-100131} PreparedStatement: SELECt distinct A.form_id, A.wf_name, A.form_name, A.form_no, A.importance, A.lastedit_time, A.form_region, A.form_region_id, A.send_time, A.end_time, A.form_status, B.fill_man, B.fill_dept FROM os_netoptimize_lst A left join os_netoptimize_dispatch B on A.form_id=B.form_id and B.process_id=0 WHERe A.form_id in (select form_id from os_form_wait_deal where wf_name=? and deal_user in ('admin','000914') ) order by send_time desc
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the insertNeEditionInfo-InlineParameterMap.
--- Check the parameter mapping for the 'enterNetTime' property.
--- Cause: java.sql.SQLException: 无效的列类型
Caused by: java.sql.SQLException: 无效的列类型
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:91)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:442)
(sql.PreparedStatement 49 ) {pstm-100131} Parameters: [netoptfile]
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:81)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:58)
(sql.PreparedStatement 50 ) {pstm-100131} Types: [java.lang.String]
最佳答案
org/gsf/ibatis/simple/bean/User.xml.
这的问题吧?
全部回答
争议那就是你把数据库的字段设置成了非空,所以当你插入空的数据进去的时候就报错了 你改下数据库让这个字段可以空
java 中 时间类型你用的那个包下面的????
string sql2="insert into caselocus(id,pmid,caseno,flowtache,status,begindate,enddate) values(?,?,?,?,?,?,?)"; 改成 string sql2="insert into caselocus(pmid,caseno,flowtache,status,begindate,enddate) values(?,?,?,?,?,?)"; //pstmt.setint(1, i); 这句去掉 这里id如果是自动增长的标识字段,那它是不能insert赋值的!
映射的类型错了吧! 你enterNetTime这个property在entity里是什么类型的?
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
怎么弄个彩铃,就是:欢迎致电陕西西凤酒的
把下面的10个字组成一个完整的诗句
塔吊安装需要报监理的工序报验单是什么?
多年未见,她给我写了封信,含泪支吾着不说话
(2012)关于钢筋混凝土单层厂房结构布置与功能
时代嘉园地址在什么地方,想过去办事
推杯换盏的意思
做过甲状腺手术会对例假有影响吗
从功能层次上,邮政通信网可划分为物理网络、
电子表格如何使用收尾法
进行上述寿命期相同的互斥方案选择时,可采用
爱奇艺缓存如何设置
信用卡应还款三千,手头只有2500在不办理分期
小米max在八月中旬内测miui9,现在是开发版系
sql语句问题,如何从数据库中返回满足一定条
推荐资讯
梦见老公成为我的新同事。
苹果6s已停用的怎么破解ID
城市自然环境条件主要包括地貌、( )、水文和
某一次函数的图像与直线y=-x+6相交于点(5,a),
全题句形转换
斯巴鲁三角臂胶套有裂纹,需要更换吗?
高中语文教学中微课的制作和使用结题报告怎么
遂宁市船山区鑫润建筑器材租赁站在什么地方啊
小刚、小明、小封三人绕环形草地练自行车。小
大山坪派出所龙透关警务室地址在什么地方,想
塘怀我想知道这个在什么地方
yeezy350v2 一共有多少双淘宝那么多销量
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?