读书人

could not read next row of results这

发布时间: 2012-01-10 21:26:51 作者: rapoo

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;
}
你加上试试看

读书人网 >J2EE开发

热点推荐