There is a error

Topics: Administration, General
Feb 1, 2015 at 11:11 AM
Edited Feb 2, 2015 at 1:43 AM
Hi,
I got a problem,today I add some new content ,but when i view them, I Found that, they are not exist ,I Looked Log file ,that say "No row with the given identifier exists",then I looked my database I found that in orchard_framework_contentitemversionrecord all of my laster added contents'ContentItem_Record_id are 0,what's the mater,and how to do?
help me!
thanks a lot.
Today, I looked log file,found something :
2015-02-01 17:06:20,249 [44] NHibernate.AssertionFailure - Default - An AssertionFailure occurred - this may indicate a bug in NHibernate or in your custom types.
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-2/question/physics/166
NHibernate.AssertionFailure: collection was processed twice by flush()
2015-02-01 17:06:20,250 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - AssertionFailure thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.AssertionFailure: collection was processed twice by flush()
   在 NHibernate.Engine.Collections.PrepareCollectionForUpdate(IPersistentCollection collection, CollectionEntry entry, EntityMode entityMode, ISessionFactoryImplementor factory)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,391 [44] NHibernate.AdoNet.AbstractBatcher - Default - Could not execute command: UPDATE Orchard_Framework_ContentItemVersionRecord SET ContentItemRecord_id = null WHERE ContentItemRecord_id = ?p0
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
MySql.Data.MySqlClient.MySqlException (0x80004005): There is already an open DataReader associated with this Connection which must be closed first.
   在 MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   在 MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   在 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
   在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
2015-02-01 17:06:20,395 [44] NHibernate.Util.ADOExceptionReporter - Default - There is already an open DataReader associated with this Connection which must be closed first.
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
2015-02-01 17:06:20,395 [44] NHibernate.Event.Default.AbstractFlushingEventListener - Default - Could not synchronize database state with session
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.Exceptions.GenericADOException: could not delete collection: [Orchard.ContentManagement.Records.ContentItemRecord.Versions#510][SQL: UPDATE Orchard_Framework_ContentItemVersionRecord SET ContentItemRecord_id = null WHERE ContentItemRecord_id = ?p0] ---> MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.
   在 MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   在 MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   在 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
   在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   --- 内部异常堆栈跟踪的结尾 ---
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   在 NHibernate.Action.CollectionRemoveAction.Execute()
   在 NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
   在 NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
   在 NHibernate.Engine.ActionQueue.ExecuteActions()
   在 NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
2015-02-01 17:06:20,396 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - GenericADOException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.Exceptions.GenericADOException: could not delete collection: [Orchard.ContentManagement.Records.ContentItemRecord.Versions#510][SQL: UPDATE Orchard_Framework_ContentItemVersionRecord SET ContentItemRecord_id = null WHERE ContentItemRecord_id = ?p0] ---> MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.
   在 MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   在 MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   在 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
   在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   --- 内部异常堆栈跟踪的结尾 ---
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   在 NHibernate.Action.CollectionRemoveAction.Execute()
   在 NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
   在 NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
   在 NHibernate.Engine.ActionQueue.ExecuteActions()
   在 NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,402 [31] NHibernate.AdoNet.AbstractBatcher - Default - Could not execute command: UPDATE Orchard_Tags_ContentTagRecord SET TagsPartRecord_id = null WHERE TagsPartRecord_id = ?p0
 http://www.wkong.com.cn/chapters/gaosan/yilun/2-4/question/physics/508
MySql.Data.MySqlClient.MySqlException (0x80004005): There is already an open DataReader associated with this Connection which must be closed first.
   在 MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   在 MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   在 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
   在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
Feb 2, 2015 at 1:45 AM
2015-02-01 17:06:20,403 [31] NHibernate.Util.ADOExceptionReporter - Default - There is already an open DataReader associated with this Connection which must be closed first.
 http://www.wkong.com.cn/chapters/gaosan/yilun/2-4/question/physics/508
2015-02-01 17:06:20,403 [31] NHibernate.Event.Default.AbstractFlushingEventListener - Default - Could not synchronize database state with session
 http://www.wkong.com.cn/chapters/gaosan/yilun/2-4/question/physics/508
NHibernate.Exceptions.GenericADOException: could not delete collection: [Orchard.Tags.Models.TagsPartRecord.Tags#531][SQL: UPDATE Orchard_Tags_ContentTagRecord SET TagsPartRecord_id = null WHERE TagsPartRecord_id = ?p0] ---> MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.
   在 MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   在 MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   在 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
   在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   --- 内部异常堆栈跟踪的结尾 ---
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   在 NHibernate.Action.CollectionRemoveAction.Execute()
   在 NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
   在 NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
   在 NHibernate.Engine.ActionQueue.ExecuteActions()
   在 NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
2015-02-01 17:06:20,404 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - GenericADOException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.Exceptions.GenericADOException: could not delete collection: [Orchard.Tags.Models.TagsPartRecord.Tags#531][SQL: UPDATE Orchard_Tags_ContentTagRecord SET TagsPartRecord_id = null WHERE TagsPartRecord_id = ?p0] ---> MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.
   在 MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
   在 MySql.Data.MySqlClient.MySqlCommand.Throw(Exception ex)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   在 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
   在 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   --- 内部异常堆栈跟踪的结尾 ---
   在 NHibernate.Persister.Collection.AbstractCollectionPersister.Remove(Object id, ISessionImplementor session)
   在 NHibernate.Action.CollectionRemoveAction.Execute()
   在 NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
   在 NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
   在 NHibernate.Engine.ActionQueue.ExecuteActions()
   在 NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,421 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: Found shared references to a collection: Orchard.ContentManagement.Records.ContentItemRecord.Versions
   在 NHibernate.Engine.Collections.ProcessReachableCollection(IPersistentCollection collection, CollectionType type, Object entity, ISessionImplementor session)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,459 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: Found shared references to a collection: Orchard.ContentManagement.Records.ContentItemRecord.Versions
   在 NHibernate.Engine.Collections.ProcessReachableCollection(IPersistentCollection collection, CollectionType type, Object entity, ISessionImplementor session)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,534 [31] NHibernate.AssertionFailure - Default - An AssertionFailure occurred - this may indicate a bug in NHibernate or in your custom types.
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.AssertionFailure: collection was processed twice by flush()
Feb 2, 2015 at 1:46 AM
2015-02-01 17:06:20,535 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: Orchard.Taxonomies.Models.TermsPartRecord.Terms
   在 NHibernate.Engine.Collections.ProcessDereferencedCollection(IPersistentCollection coll, ISessionImplementor session)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushCollections(IEventSource session)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,536 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - AssertionFailure thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.AssertionFailure: collection was processed twice by flush()
   在 NHibernate.Engine.Collections.PrepareCollectionForUpdate(IPersistentCollection collection, CollectionEntry entry, EntityMode entityMode, ISessionFactoryImplementor factory)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,560 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: Found shared references to a collection: Orchard.Tags.Models.TagsPartRecord.Tags
   在 NHibernate.Engine.Collections.ProcessReachableCollection(IPersistentCollection collection, CollectionType type, Object entity, ISessionImplementor session)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,612 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: Found shared references to a collection: Orchard.Tags.Models.TagsPartRecord.Tags
   在 NHibernate.Engine.Collections.ProcessReachableCollection(IPersistentCollection collection, CollectionType type, Object entity, ISessionImplementor session)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,633 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: Orchard.Taxonomies.Models.TermsPartRecord.Terms
   在 NHibernate.Engine.Collections.ProcessDereferencedCollection(IPersistentCollection coll, ISessionImplementor session)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushCollections(IEventSource session)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
Feb 2, 2015 at 1:47 AM
2015-02-01 17:06:20,670 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: Found shared references to a collection: Orchard.ContentManagement.Records.ContentItemRecord.Versions
   在 NHibernate.Engine.Collections.ProcessReachableCollection(IPersistentCollection collection, CollectionType type, Object entity, ISessionImplementor session)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,720 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: Found shared references to a collection: Orchard.ContentManagement.Records.ContentItemRecord.Versions
   在 NHibernate.Engine.Collections.ProcessReachableCollection(IPersistentCollection collection, CollectionType type, Object entity, ISessionImplementor session)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,736 [31] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - HibernateException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: Orchard.Roles.Models.RoleRecord.RolesPermissions
   在 NHibernate.Engine.Collections.ProcessDereferencedCollection(IPersistentCollection coll, ISessionImplementor session)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushCollections(IEventSource session)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:20,737 [44] NHibernate.AssertionFailure - Default - An AssertionFailure occurred - this may indicate a bug in NHibernate or in your custom types.
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.AssertionFailure: collection was processed twice by flush()
2015-02-01 17:06:20,738 [44] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - AssertionFailure thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-3/question/physics/1427
NHibernate.AssertionFailure: collection was processed twice by flush()
   在 NHibernate.Engine.Collections.PrepareCollectionForUpdate(IPersistentCollection collection, CollectionEntry entry, EntityMode entityMode, ISessionFactoryImplementor factory)
   在 NHibernate.Event.Default.FlushVisitor.ProcessCollection(Object collection, CollectionType type)
   在 NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues(Object[] values, IType[] types)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event)
   在 NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)
   在 NHibernate.Event.Default.DefaultAutoFlushEventListener.OnAutoFlush(AutoFlushEvent event)
   在 NHibernate.Impl.SessionImpl.AutoFlushIfRequired(ISet`1 querySpaces)
   在 NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.CriteriaImpl.List(IList results)
   在 NHibernate.Impl.CriteriaImpl.List[T]()
   在 Orchard.ContentManagement.DefaultContentManager.GetManyImplementation(QueryHints hints, Action`2 predicate)
   在 Orchard.ContentManagement.DefaultContentManager.GetMany[T](IEnumerable`1 ids, VersionOptions options, QueryHints hints)
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<InitializerTermsLoader>b__15(IEnumerable`1 value)
   在 Orchard.ContentManagement.Utilities.LazyField`1.GetValue()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
2015-02-01 17:06:31,540 [27] Orchard.DisplayManagement.Implementation.DefaultDisplayManager - Default - KeyNotFoundException thrown from Action`1 by System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, Orchard.Framework, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null]]
 http://www.wkong.com.cn/chapters/gaosan/yilun/3-2/question/physics/166
System.Collections.Generic.KeyNotFoundException: 给定关键字不在字典中。
   在 Orchard.Taxonomies.Handlers.TermsPartHandler.<>c__DisplayClass1b.<>c__DisplayClass23.<InitializerTermsLoader>b__19(TermContentItem x)
   在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   在 Orchard.Taxonomies.Shapes.<Discover>b__15(ShapeDisplayingContext displaying)
   在 Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger)
Developer
Feb 2, 2015 at 7:59 PM
Is this something you can reliably reproduce with a clean Orchard installation without any third party modules? If so, could you provide the repro steps?
Feb 5, 2015 at 4:29 AM
As usual, but when I came after the published content