I received this exception in READ operations. It appeared not only in
one particular function - sometimes here, sometimes there. Then i
turned off nhibernate logging and exceptions disappeared. But i don't
think that logging is guilty in my problems but who knows. I can see
in the stacktrace the DELETE word - what does it do there??

ERROR - SIS.CashFlow.WebApplication.Loggers.Logger -
SIS.CashFlow.Common.Exceptions.TechnicalException --->
NHibernate.StaleStateException: Unexpected row count: 0; expected: 1
   at
NHibernate.AdoNet.Expectations.BasicExpectation.VerifyOutcomeNonBatched(Int32
rowCount, IDbCommand statement)
   at NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation
expectation)
   at
NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id,
Object version, Int32 j, Object obj, SqlCommandInfo sql,
ISessionImplementor session, Object[] loadedState)
   at
NHibernate.Persister.Entity.AbstractEntityPersister.Delete(Object id,
Object version, Object obj, ISessionImplementor session)
   at NHibernate.Action.EntityDeleteAction.Execute()
   at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
   at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
   at NHibernate.Engine.ActionQueue.ExecuteActions()
   at
NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource
session)
   at
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent
event)
   at NHibernate.Impl.SessionImpl.Flush()
   at NHibernate.Transaction.AdoTransaction.Commit()
   at SIS.CashFlow.DataAccessLayer.UnitsOfWork.UnitOfWork.Commit() in
c:\TeamCity\TeamCityBuilds\SIS\CashFlow\CommitBuild
\SIS.CashFlow.DataAccessLayer\UnitsOfWork\UnitOfWork.cs:line 49

any ideas?

thanks in advance

-- 
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