type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Servlet execution threw an exception
root cause java.lang.OutOfMemoryError: Java heap space
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
root cause java.lang.OutOfMemoryError: Java heap space
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
解决方案 »
- 导入Excel中的一批数据和数据库中数据比较
- JSP页面打开以后乱码
- ext4 tabpanel页签的问题
- java ssi开发,怎么从网站的首页跳转到java的后台,再跳转到首页?
- 有一个excel文件,点击一jsp页面上的按钮,把其中的数据导入到mysql中,怎么实现,急呀。。。。。。。。。。。
- 像大家请教Structs里Select标签
- 数据更新问题
- java 数据库连接类设计问题
- 配完Tomcat和SQLServer连接池时,执行SQL语句时抛出一异常,请教!
- 关于html:file标签的问题?缓存?
- 为什么我在Windows下做的jsp项目放到Linux下就变得很慢呢?
- 在windows xp上,搜索c:\windows目录(包括子目录)中是否包含有java.exe文件,如果有,请打印出所有java.exe的完整路径。我想实现这个功
{
Configuration config = new Configuration().configure();
SessionFactory sf = config.buildSessionFactory();
Session session = sf.openSession();
Transaction tx = session.beginTransaction();
try
{
session.save(object);
tx.commit();
session.close();
return true;
} catch (HibernateException e)
{
e.printStackTrace();
tx.rollback();
return false;
}
}
session我关闭了的呀.
可能要在finally里面去关闭吧
但是我程序执行的时候没有出错呀
session.close()应该被执行吧