-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: session is closed
PostPosted: Thu Feb 24, 2005 11:50 am 
Newbie

Joined: Fri Feb 18, 2005 2:38 am
Posts: 4
I am getting a Session is closed error

I am using the HibernateUtil class to manage the session and transaction as is Hibernate in action book.

My service classes are aslo specified in the book

It happens when I saveorupdate two different tables and continues to happen after wards. It does not happen with select.

Thanks for the help in advance

java.lang.RuntimeException: java.lang.RuntimeException: com.dhl.psr.hibernate.InfrastructureException: net.sf.hibernate.HibernateException: Session is closed
at com.dhl.psr.struts.action.SaveWeeklyUpdateAction.execute(SaveWeeklyUpdateAction.java:103)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.RuntimeException: com.dhl.psr.hibernate.InfrastructureException: net.sf.hibernate.HibernateException: Session is closed
at com.dhl.psr.services.ProjectServices.ProjectDetailSetup(ProjectServices.java:195)
at com.dhl.psr.struts.action.SaveWeeklyUpdateAction.execute(SaveWeeklyUpdateAction.java:97)
... 16 more
Caused by: com.dhl.psr.hibernate.InfrastructureException: net.sf.hibernate.HibernateException: Session is closed
at com.dhl.psr.hibernate.HibernateUtil.rollbackTransaction(HibernateUtil.java:202)
at com.dhl.psr.hibernate.HibernateUtil.commitTransaction(HibernateUtil.java:185)
at com.dhl.psr.services.ProjectServices.ProjectDetailSetup(ProjectServices.java:189)
... 17 more
Caused by: net.sf.hibernate.HibernateException: Session is closed
at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3339)
at net.sf.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:86)
at com.dhl.psr.hibernate.HibernateUtil.rollbackTransaction(HibernateUtil.java:199)
... 19 more


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 3:23 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I don't know what you are doing wrong. Please continue this discussion in the regular Hibernate User forum and include all necessary information (as mentioned in the red box).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.