Skip to content

Instantly share code, notes, and snippets.

Qingyu Zhou qingfx

View GitHub Profile
@qingfx
qingfx / orchard-error-2016.04.07.log
Created Apr 8, 2016
Call stack of Nhibernate IdentifierGenerationException when posting a comment
View orchard-error-2016.04.07.log
2016-04-07 17:31:57,469 [10] Orchard.ContentManagement.DefaultContentManager - Default - IdentifierGenerationException thrown from IContentHandler by Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator [http://localhost:30321/OrchardLocal/Comments/Comment/Create?ReturnUrl=http:%2F%2Flocalhost:30321%2FOrchardLocal%2Fsadfadf]
NHibernate.Id.IdentifierGenerationException: attempted to assign id from null one-to-one property: ContentItemRecord
at NHibernate.Id.ForeignGenerator.Generate(ISessionImplementor sessionImplementor, Object obj)
at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object entity, String entityName, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)
at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent event)
at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent event)
at NHibernate.Event.Default.DefaultSaveOrUpda
You can’t perform that action at this time.