博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iBatis中报 java.sql.SQLException: 无效的列类型异常
阅读量:7044 次
发布时间:2019-06-28

本文共 2240 字,大约阅读时间需要 7 分钟。

错误信息

description The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17004];   --- The error occurred while applying a parameter map.  --- Check the ess.viewApply.getEssPersonalInfoList-InlineParameterMap.  --- Check the parameter mapping for the 'DEPT_NO' property.  --- Cause: java.sql.SQLException: 无效的列类型; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   --- The error occurred while applying a parameter map.  --- Check the ess.viewApply.getEssPersonalInfoList-InlineParameterMap.  --- Check the parameter mapping for the 'DEPT_NO' property.  --- Cause: java.sql.SQLException: 无效的列类型    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)    com.ait.web.filter.UserAuthenFilter.doFilter(UserAuthenFilter.java:77)    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

关键点XML SQL

参数传值

{interLanguage=zh, interCpnyID=C11, orderField=, orderDirection=asc, specialParam=special,  AR_SUPERVISIOR_INFO=30044292, userNo=36911,  deptNo=C114, ADMIN_ID=30044292, CREATED_BY=30044292, UPDATED_BY=30044292, PERSON_ID=30044292, CPNY_ID=C11}

public class ViewApplySerImpl implements ViewApplySer {

 Line 55 paramMap.put("DEPT_NO", admin.getDeptNo());

问题点

黄色部分参数名称不对应

故改之

转载于:https://www.cnblogs.com/cici-new/archive/2013/01/25/2876450.html

你可能感兴趣的文章
Hystrix降级技术解析-Fallback
查看>>
Windows XP 禁用防火墙、系统升级、系统还原指南
查看>>
让你的电脑变成wifi
查看>>
xshell 隧道透传
查看>>
zabbix-server添加zabbix-proxy
查看>>
iostat命令找不到
查看>>
外观模式
查看>>
我的友情链接
查看>>
Angular2 AoT编译以及Rollup摇树优化
查看>>
ReactJS 学习资料汇总
查看>>
IIS权限应该怎么给?
查看>>
SpringMVC 拦截器和过滤器的区别&&Struts2拦截器和过滤器的区别
查看>>
Access:collating sort order SortOrder[2052(0)]
查看>>
Spark算子:RDD基本转换操作(1)–map、flagMap、distinct
查看>>
我的友情链接
查看>>
shell学习(二)变量
查看>>
Delphi随机数
查看>>
[置顶] webservice系列3---chain
查看>>
hibernate XML配置文件》cfg
查看>>
ExtJS2.0实用简明教程 - ExtJS的组件
查看>>