- 浏览: 1866940 次
- 性别:
- 来自: 合肥
文章分类
- 全部博客 (514)
- OPEN (41)
- WARN (33)
- EXPER (16)
- RESOURCE (7)
- TOOL (4)
- DWR (10)
- Struts1.x (10)
- Ibtais (18)
- MyEclipse (30)
- Sql Server (64)
- Tomcat (7)
- APACHE (4)
- JSP (18)
- SERVLET (6)
- ENGLISH (0)
- ECSide (8)
- JasperReports (7)
- JAVA (24)
- JS (42)
- XML (26)
- CVS (8)
- Mind (1)
- JQUERY (2)
- IBATIS (6)
- PROJECT (0)
- STRUTS2 (0)
- PROXOOL (0)
- SPRING (4)
- Hibernate (0)
- SSI (0)
- JBPM (11)
- FLEX (3)
- JSON (2)
- GWT (1)
- jeecms v3 (1)
- Flash (2)
- DATA (1)
- ORACLE (3)
- 查询oracle 中逗号分隔字符串中所有值 (1)
最新评论
-
小小西芹菜:
GoEasy web三步轻松实现web实时推送1. 引入goe ...
服务器推送技术 java -
kg_1997:
这个方法太棒了,可以不用to_date函数,实在是棒!!!
java/oracle日期处理 -
wodesunday:
:idea:
SQL的分段统计查询语句 -
wodesunday:
引用
SQL的分段统计查询语句 -
BlueSkator:
讲的有点浅,没有深入进去
tomcat需要的重新发布和重启服务器的几种情况
在操作休假功能时,错误:
ERROR [http-8080-3] - 执行:class com.ving.xzfw.persistence.impl.CaseDaoImpl.getList()方法出错!
ERROR [http-8080-3] - SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];
--- The error occurred in com/ving/xzfw/persistence/sqlmap/Case.xml.
--- The error occurred while applying a result map.
--- Check the Case.getList-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: net.sf.cglib.beans.BulkBeanException; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/ving/xzfw/persistence/sqlmap/Case.xml.
--- The error occurred while applying a result map.
--- Check the Case.getList-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: net.sf.cglib.beans.BulkBeanException
ERROR [http-8080-3] - case.getList()失败
ERROR [http-8080-3] - 错误发生在:HolidayDaoSerivice.insertHoliday(Holiday holi)方法中!
ERROR [http-8080-3] - 调用updateOrInsert方法失败
分析:
这个错误指出resultMap里有问题。说错误发生在设置某一个属性的时候,出现null!
但没有指明那个属性(也就是对应的字段)。
看下配置文件
<resultMap id="HolidayResult" class="HolidayObject">
<result property="holiId" column="holiid"/>
<result property="holiType" column="holiType"/>
<result property="holiStartDate" column="holistartDate"/>
<result property="holiEndDate" column="holiendDate"/>
<result property="holiName" column="holiname"/>
<result property="holiRemark" column="holiremark" nullValue=""/>
</resultMap>
</sql>
验证:
很简单在sql server里写一条sql 语句:select * from T_holiday
执行后发现remark字段有的为空,O(∩_∩)O~,找到问题根结啦。
解决:
<result property="holiRemark" column="holiremark" nullValue=""/>
完结!呵呵,只要报错,就能找到问题原因
ERROR [http-8080-3] - 执行:class com.ving.xzfw.persistence.impl.CaseDaoImpl.getList()方法出错!
ERROR [http-8080-3] - SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];
--- The error occurred in com/ving/xzfw/persistence/sqlmap/Case.xml.
--- The error occurred while applying a result map.
--- Check the Case.getList-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: net.sf.cglib.beans.BulkBeanException; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/ving/xzfw/persistence/sqlmap/Case.xml.
--- The error occurred while applying a result map.
--- Check the Case.getList-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: net.sf.cglib.beans.BulkBeanException
ERROR [http-8080-3] - case.getList()失败
ERROR [http-8080-3] - 错误发生在:HolidayDaoSerivice.insertHoliday(Holiday holi)方法中!
ERROR [http-8080-3] - 调用updateOrInsert方法失败
分析:
这个错误指出resultMap里有问题。说错误发生在设置某一个属性的时候,出现null!
但没有指明那个属性(也就是对应的字段)。
看下配置文件
<resultMap id="HolidayResult" class="HolidayObject">
<result property="holiId" column="holiid"/>
<result property="holiType" column="holiType"/>
<result property="holiStartDate" column="holistartDate"/>
<result property="holiEndDate" column="holiendDate"/>
<result property="holiName" column="holiname"/>
<result property="holiRemark" column="holiremark" nullValue=""/>
</resultMap>
</sql>
验证:
很简单在sql server里写一条sql 语句:select * from T_holiday
执行后发现remark字段有的为空,O(∩_∩)O~,找到问题根结啦。
解决:
<result property="holiRemark" column="holiremark" nullValue=""/>
完结!呵呵,只要报错,就能找到问题原因
发表评论
-
Eclipse中HashMap/Hashtable出现警告Type safety本篇文章来源于:开发学院 http://edu.codepub.com 原文
2010-08-03 13:08 2188症状: Type safety: The method pu ... -
Content is not allowed in prolog.
2010-08-03 10:51 4215读取XML时出现错误: 2010-08-03 10:52:2 ... -
进程被死锁
2010-07-16 11:45 2366错误: 引用 2010-07-15 11 ... -
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2010-05-13 20:11 1292tomcat启动报错,发现错误版本 、 严重: Error d ... -
Oracle: ORA-00911: 无效字符
2010-04-22 10:41 6818Oracle: java.sql.SQLException: ... -
解决 无法解析导入 javax.servlet.ServletContextEvent
2010-02-09 11:24 5267启动tomcat报错了: 严重: Error configu ... -
...NeedsRefreshException问题分析
2010-02-07 16:44 3821com.opensymphony.oscache.base. ... -
JVMTI_ERROR_NULL_POINTER(100)
2010-01-27 16:49 1945JDWP exit error JVMTI_ERROR_NUL ... -
Couldn't perform the operation prepareCall
2010-01-08 09:43 5443[code="sql"]- ... -
tomcat ClassNotFoundException
2010-01-05 10:49 1190严重: Exception starting filter ... -
javax.servlet.servletexception cannot find actionmappings or actionformbeans col
2010-01-03 11:22 1732异常:javax.servlet.ServletExcepti ... -
错误1111
2010-01-02 14:28 1900org.springframework.jdbc.Un ... -
Cannot resolve reference to bean 'pingFenRecService' while setting bean property
2010-01-02 11:23 5239玩转SSI时重启服务器报错,郁闷啦,怎么可能呢?还报配置出错. ... -
解决为'MM_CURSOR' 的游标已存在问题
2009-12-09 14:45 3845今天写了个存储过程,使用了两个游标,在数据库里实现嵌套多层循环 ... -
TOMCAT 6 警告:Parameters:Invalid chunk ignored 的解决
2009-12-08 11:04 1608编写程序后,重启tomcat,出现警告:Parameters: ... -
解决:sql 排序规则不一致问题
2009-12-03 13:48 4675把程序部署到服务器上 ... -
Ibatis : Attribute "*" must be declared for element type "result".
2009-11-25 16:29 4249整合一Ibatis,竟然报错了! Caused by: com ... -
在建立与服务器的连接时出错。在连接到 sql server 2005 时 在默认的设置下 sql server 不允许进行远程连
2009-11-24 15:21 43853今天连接数据库时突然 ... -
Ibatis :The error occurred while applying a parameter map.
2009-11-18 10:03 23308项目需求变更在修改源程序时,要涉及数据库变动,大刀阔斧一般之后 ... -
Myeclipse:resource is out of sync with the file system的解决办法
2009-11-13 17:50 3920引用在eclipse中,启动run on server时报错: ...
相关推荐
ibatis实现原理解析
我们在使用ibatis进行数据库操作时,有时会遇到一些莫名其妙的问题。因为ibatis的报错信息比较含蓄,哪怕一个小小的问题,也会乱费我们很 多的时间去查错。
ibatis学习 ibatis总结 ibatis ibatis ibatis
ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料ibatis资料
ibatis demo,ibatis例子,ibatis示例
iBATIS 级联iBATIS 级联iBATIS 级联
ibatis的原码 ibatis源码 ibatis源码 ibatis源码
ibatis代码自动生成,ibatis代码自动生成,ibatis代码自动生成,ibatis代码自动生成
Ibatis3,手册,Ibatis3手册,Ibatis3使用手册,Ibatis3参考手册
Spring与iBATIS的集成 iBATIS似乎已远离众说纷纭的OR框架之列,通常人们对非常流行的Hibernate情有独钟。但正如Spring A Developer's Notebook作者Bruce Tate 和Justin Gehtland所说的那样,与其他的OR框架相比...
ibatis api,ibatis文档,ibatis说明文档
ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南ibatis2指南
ibatis
ibatis 乱码解决 ibatis乱码 gbk iso_8859_1 乱码
《iBATIS实战》是讲述iBATIS框架的权威著作。书中既详实地介绍了iBATIS的设计理念和基础知识,也讨论了动态SQL、高速缓存、DAD框架等高级主题,还讲解了iBATIS在实际开发中的应用。《iBATIS实战》的最后给出了一个...
ibatis教程,ibatis帮助文档,ibatis学习入门
简单的Ibatis入门例子,让你踏入Ibatis大门
ibatis入门与ibatis迭代的用法
iBatis文档\ibatis.doc
最近想在最新的Spring5.0中集成ibatis(不是mybatis),发现已经不在支持SqlmapClientTemplate和SqlmapClientFactoryBean,于是搞了这个工具jar来进行支持如下配置 ...