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