<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=641217
1. --- Cause: java.sql.SQLException: 无效的列类型; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
原因:
某个字段的插入值为空
解决方法:
将该字段的数值添加进去,或者将格式转化为动态的sql
2.
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/kompakar/queue/transfusion/dao/ibatis/map/HisInfo.xml.
--- The error occurred while applying a parameter map.
--- Check the getPatientInfoByClinicNo-InlineParameterMap.
--- Check the statement (query failed).
--- Cause: java.sql.SQLException: ORA-01002: 读取违反顺序
ORA-02063: 紧接着line(源于DBLINKFGHIS)
Caused by: java.sql.SQLException: ORA-01002: 读取违反顺序
ORA-02063: 紧接着line(源于DBLINKFGHIS)
原因:
在不应该提交事务的地方,主动提交了事务。用DBLINK方式连接另一个数据库,在IBATIS中必须声明为事务。
解决方法:
将这个方法声明为事务。
3.
错误码:
com.ibatis.common.beans.ProbeException: There is no READABLE property named 'tAlarmlogId' in class 'com.kompakar.queue.transfusion.bo.TAlarmLogBO'
错误原因:
BO文件中定义的变量,中间有大写的,所以在匹配中出错。--准确的说,是ibatis中的第二个字母不能大写
解决方法:
将BO文件中的所有变量名都修改为小写。
4.org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mraServiceTarget' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'patientMedicalAlertDAO' of bean class [com.kompakar.ehealth.service.impl.mra.MRAService]: Bean property 'patientMedicalAlertDAO' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'patientMedicalAlertDAO' of bean class [com.kompakar.ehealth.service.impl.mra.MRAService]: Bean property 'patientMedicalAlertDAO' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:831)
原因:在service中配置了property,但是在具体的service实现类中,却没有声明该property,以及没有实现相应的set和get方法(bean的方法)。
解决方案:
在service的实现类中,增加该属性字段的声明和set、get方法
5、17:12:14,796 ERROR eHealthActionServlet:68 - class com.kompakar.ehealth.common.frame.communicate.eHealthActionServlet Exception occured in performing process(HttpServletRequest request, HttpServletResponse response).
javax.servlet.ServletException: There is no statement named WardMstr-getAllwardList in this SqlMap.
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at com.kompakar.ehealth.common.frame.communicate.eHealthActionServlet.process(eHealthActionServlet.java:64)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
可能原因:
A、在相应的sqlmap配置文件真的没有 “WardMstr-getAllwardList ”
B、在sqlmap配置文件中, 没有引用对应表的配置xml文件。
解决方法:
修改sqlmap相应的配置文件。
6、在sqlmap中,特殊字符需要用 <![CDATA[ ]]>符号将特殊字符括起来
分享到:
相关推荐
IBatis学习笔记以及使用心得IBatis学习笔记以及使用心得IBatis学习笔记以及使用心得IBatis学习笔记以及使用心得IBatis学习笔记以及使用心得IBatis学习笔记以及使用心得
ibatis的错误总结
ibatis 乱码解决 ibatis乱码 gbk iso_8859_1 乱码
iBATIS缓存的使用方法
ibatis学习 ibatis总结 ibatis ibatis ibatis
我们在使用ibatis进行数据库操作时,有时会遇到一些莫名其妙的问题。因为ibatis的报错信息比较含蓄,哪怕一个小小的问题,也会乱费我们很 多的时间去查错。
ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料
ibatis 使用手册:ibatis 开发指南、ibatis sql maps、ibatis sql maps 入门教程。
ibatis 相关使用文档及安装包ibatis 相关使用文档及安装包
Ibatis.net学习例子以及使用教程书,简单易学
ibatis教程 主要是对这个软件的入门的介绍和如何加载和使用
使用Ibatis对数据库的访问,实现增删改查的操作 ;
ibatis简易使用ibatis简易使用ibatis简易使用
本工程用于研究Ibatis和MySQL结合使用的方法 本工程编码方式:UTF-8 须执行的SQL语句: CREATE DATABASE `test`; USE `test`; DROP TABLE IF EXISTS `student`; CREATE TABLE `student` ( `id` char(36) NOT NULL...
ibatis
ibatis demo,ibatis例子,ibatis示例
修改ibatis不用重启的方法
iBATIS 级联iBATIS 级联iBATIS 级联
ibatis 用HashMap解决Ibatis未知列名和列数的查询结果的resultClass映射
Ibatis3,手册,Ibatis3手册,Ibatis3使用手册,Ibatis3参考手册