-->
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: periodically nhibernate crashes
PostPosted: Tue Aug 02, 2011 11:08 am 
Newbie

Joined: Tue Aug 02, 2011 10:38 am
Posts: 1
we use NHibernate 2.2 as ORM in our project. Everything worked fine. But recently we have got strange mistakes. They occured periodically, but not every time(!) in different simple methods. we cannot determine exactly when and why...
The most common error messages are --
a)Invalid attempt to call Read when reader is closed
b)Invalid attempt to call MetaData when reader is closed
c)timeout expired.The timeout period elapsed prior to completion of the operation or the server is not responding

Actually there are another error messages but these are more frequeantly.
What can cause such exceptions ? is it Database(MsSql 2008 in our case) server problem ?

One of this methods.
Code:
site_user dbUser = SessionContext.CreateCriteria(typeof(site_user))
                 .Add(Expression.Eq("site_user_email", userEmail)).List<site_user>().FirstOrDefault();
            return dbUser;


Should i provide any additional information ?
P.S. sorry for my bad english.


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.