首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

could not read next row of results这个是什么原因啊解决方案

2012-01-10 
could not read next row of results这个是什么原因啊org.hibernate.exception.GenericJDBCException: cou

could not read next row of results这个是什么原因啊
org.hibernate.exception.GenericJDBCException: could not read next row of results
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
完全不知道那边错了!郁闷

[解决办法]
你现在数据库里面是不是没有数据啊,所以说你要在你这个方法加上
try{}
 catch (EmptyResultDataAccessException ex) {
return null;
}
你加上试试看

热点排行