Hi All,

Today was a day of surprises to me. One of the biggest surprise was
NHibernate not listening to me :( . Well i tried n tried to make her
(NHibernate)  to listen me but no use she was angry i dont know why so
i came up with the problem here so that i will get a solution to
pacify my dear NHibernate :)

Problem:
I created a Criteria on a Oracle table  say Table1. I retrieved data
from the table1 using the criteria for about 2-3 times and moved on to
other Criteria on another Oracle table say table2 and retrieved data.
Now if i go back to my old Criteria on table1 and try to get the data
it is throwing the below error.

Connection must be open for this operation

The inner exception is:
An exception of type 'NHibernate.ADOException' occurred in method
'DoList' of class 'Loader'

The stack trace given is:
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session,
QueryParameters queryParameters) in ..\NHibernate\Loader
\Loader.cs:line 1803

   at NHibernate.Loader.Loader.ListIgnoreQueryCache
(ISessionImplementor session, QueryParameters queryParameters) in ..
\NHibernate\Loader\Loader.cs:line 1745

   at NHibernate.Loader.Loader.List(ISessionImplementor session,
QueryParameters queryParameters, ISet querySpaces, IType[]
resultTypes) in...\NHibernate\Loader\Loader.cs:line 1739

   at NHibernate.Loader.Criteria.CriteriaLoader.List
(ISessionImplementor session) in ...\NHibernate\Loader\Criteria
\CriteriaLoader.cs:line 65

   at NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria, IList
results) in ....\NHibernate\Impl\SessionImpl.cs:line 4966

   at NHibernate.Impl.SessionImpl.Find[T](CriteriaImpl criteria)
in ....\NHibernate\Impl\SessionImpl.cs:line 4914

   at NHibernate.Impl.CriteriaImpl.List[T]() in .....\NHibernate\Impl
\CriteriaImpl.cs:line 323


I am using NHibernate 1.2 version and lazy loading.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to