#
adrian.libotean
I've created a custom website with a number of custom modules and everything went fine until we first released it for a real life test. When two or more users are accessing the website there are lot of crashes from NHibernate:
2006-06-28 19:07:21,998 [5692] ERROR NHibernate.StaleObjectStateException [(null)] <(null)> - An operation failed due to stale data
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
2006-06-28 19:07:21,998 [5692] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
at NHibernate.Persister.AbstractEntityPersister.Check(Int32 rows, Object id)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Object oldVersion, Object obj, SqlString sqlUpdateString, ISessionImplementor session)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Object[] oldFields, Object oldVersion, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledUpdate.Execute()
at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)
at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
2006-06-28 19:07:25,664 [5692] ERROR NHibernate.StaleObjectStateException [(null)] <(null)> - An operation failed due to stale data
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
2006-06-28 19:07:25,664 [5692] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
at NHibernate.Persister.AbstractEntityPersister.Check(Int32 rows, Object id)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Object oldVersion, Object obj, SqlString sqlUpdateString, ISessionImplementor session)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Object[] oldFields, Object oldVersion, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledUpdate.Execute()
at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)
at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
Does enybody know what this is all about? Thanks.
2006-06-28 19:07:21,998 [5692] ERROR NHibernate.StaleObjectStateException [(null)] <(null)> - An operation failed due to stale data
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
2006-06-28 19:07:21,998 [5692] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
at NHibernate.Persister.AbstractEntityPersister.Check(Int32 rows, Object id)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Object oldVersion, Object obj, SqlString sqlUpdateString, ISessionImplementor session)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Object[] oldFields, Object oldVersion, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledUpdate.Execute()
at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)
at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
2006-06-28 19:07:25,664 [5692] ERROR NHibernate.StaleObjectStateException [(null)] <(null)> - An operation failed due to stale data
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
2006-06-28 19:07:25,664 [5692] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction for Cuyahoga.Core.Domain.Node instance with identifier: 1
at NHibernate.Persister.AbstractEntityPersister.Check(Int32 rows, Object id)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Object oldVersion, Object obj, SqlString sqlUpdateString, ISessionImplementor session)
at NHibernate.Persister.EntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Object[] oldFields, Object oldVersion, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledUpdate.Execute()
at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)
at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
Does enybody know what this is all about? Thanks.