-->
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.  [ 1 post ] 
Author Message
 Post subject: Session was disposed of or closed
PostPosted: Fri Oct 03, 2008 7:57 am 
Newbie

Joined: Fri Oct 03, 2008 7:47 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:1.2.0

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:2008-09-28 19:49:01,592 [8] FATAL Nes.Dots.Application.Service.ServiceInterceptor [RetrieveUserByLoginCredentials] [[property{User}] - Exception
Message: Session was disposed of or closed
Object name: 'ISession'. Stack Trace: at NHibernate.Impl.SessionImpl.ErrorIfClosed()
at NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
at NHibernate.Impl.CriteriaImpl.List(IList results)
at NHibernate.Impl.CriteriaImpl.List[T]()
at Nes.Dots.Application.Domain.Persistence.DataMapper.List[T](Criteria criteria)
at Nes.Dots.Application.Service.SecurityService.PopulatePostedUserWithDetails(User user)
at Nes.Dots.Application.Service.SecurityService.GetUser(IList`1 userList)
at Nes.Dots.Application.Service.SecurityService.RetrieveUserByLoginCredentials(User contextUser, LoginCredentials loginCredentialsToVerify)
at Spring.DynamicReflection.Method_RetrieveUserByLoginCredentials_f0b6e9b3b8744fdaad803453a6a032e3.Invoke(Object target, Object[] args)
at Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments)
at Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint()
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at Nes.Dots.Application.Service.ServiceInterceptor.Invoke(IMethodInvocation invocation)


Name and version of the database you are using:Microsoft SQL Server 2000

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?
We are currently having this error and are not sure if it is caused by spring not initialising our objects properly and just nhibernate not able to cope with the website load.

Read this: http://hibernate.org/42.html


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

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.