hibernate内存溢出:java.lang.StackOverflowError
java.lang.StackOverflowError
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
at com.rs.common.core.dao.UserDaoImpl.queryUserById(UserDaoImpl.java:35)
.......
解决方案:
这种很常见的错误..一定是你自己方法调用自己.. 造成堆栈 溢出..仔细检查自己写的程序..
还有一种就是递归,如果没有退出条件..也将造成堆栈溢出的异常..