Page MenuHomePhabricator

WelcomeNewbie reporting throws NHibernate exception on each report
Open, HighPublic

Description

2018-04-19 23:34:43,405 [8] ERROR Helpmebot.Services.JoinMessageService [(null)] - Exception encountered in WelcomeNewbieOnJoinEvent
NHibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: 3968, of entity: Helpmebot.Model.WelcomeLog
  at NHibernate.Engine.StatefulPersistenceContext.CheckUniqueness (NHibernate.Engine.EntityKey key, System.Object obj) [0x0002b] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate (System.Object entity, NHibernate.Engine.EntityKey key, NHibernate.Persister.Entity.IEntityPersister persister, System.Boolean useIdentityColumn, System.Object anything, NHibernate.Event.IEventSource source, System.Boolean requiresImmediateIdAccess) [0x00137] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.AbstractSaveEventListener.PerformSave (System.Object entity, System.Object id, NHibernate.Persister.Entity.IEntityPersister persister, System.Boolean useIdentityColumn, System.Object anything, NHibernate.Event.IEventSource source, System.Boolean requiresImmediateIdAccess) [0x000a6] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId (System.Object entity, System.String entityName, System.Object anything, NHibernate.Event.IEventSource source, System.Boolean requiresImmediateIdAccess) [0x0004b] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId (NHibernate.Event.SaveOrUpdateEvent event) [0x0001c] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient (NHibernate.Event.SaveOrUpdateEvent event) [0x0003d] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveEventListener.PerformSaveOrUpdate (NHibernate.Event.SaveOrUpdateEvent event) [0x0002b] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate (NHibernate.Event.SaveOrUpdateEvent event) [0x00071] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Impl.SessionImpl.FireSave (NHibernate.Event.SaveOrUpdateEvent event) [0x00022] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Impl.SessionImpl.Save (System.Object obj) [0x00015] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at Helpmebot.Services.JoinMessageService.DoWelcome (Stwalkerster.IrcClient.Model.Interfaces.IUser networkUser, System.String channel, Stwalkerster.IrcClient.Interfaces.IIrcClient client) [0x00285] in <a97c3b514f284f9081d02a188ae08133>:0 
  at Helpmebot.Services.JoinMessageService.OnJoinEvent (System.Object sender, Stwalkerster.IrcClient.Events.JoinEventArgs e) [0x00013] in <a97c3b514f284f9081d02a188ae08133>:0

Event Timeline

stwalkerster claimed this task.

Experimentally change some code, and hey! it works!

2018-07-10 23:13:39,380 [6] ERROR Helpmebot.Services.JoinMessageService [(null)] - Exception encountered in WelcomeNewbieOnJoinEvent
NHibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: 8906, of entity: Helpmebot.Model.WelcomeLog
  at NHibernate.Engine.StatefulPersistenceContext.CheckUniqueness (NHibernate.Engine.EntityKey key, System.Object obj) [0x0002b] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate (System.Object entity, NHibernate.Engine.EntityKey key, NHibernate.Persister.Entity.IEntityPersister persister, System.Boolean useIdentityColumn, System.Object anything, NHibernate.Event.IEventSource source, System.Boolean requiresImmediateIdAccess) [0x00137] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.AbstractSaveEventListener.PerformSave (System.Object entity, System.Object id, NHibernate.Persister.Entity.IEntityPersister persister, System.Boolean useIdentityColumn, System.Object anything, NHibernate.Event.IEventSource source, System.Boolean requiresImmediateIdAccess) [0x000a6] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId (System.Object entity, System.String entityName, System.Object anything, NHibernate.Event.IEventSource source, System.Boolean requiresImmediateIdAccess) [0x0004b] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId (NHibernate.Event.SaveOrUpdateEvent event) [0x0001c] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient (NHibernate.Event.SaveOrUpdateEvent event) [0x0003d] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.PerformSaveOrUpdate (NHibernate.Event.SaveOrUpdateEvent event) [0x00046] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate (NHibernate.Event.SaveOrUpdateEvent event) [0x00071] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Impl.SessionImpl.FireSaveOrUpdate (NHibernate.Event.SaveOrUpdateEvent event) [0x00022] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Impl.SessionImpl.SaveOrUpdate (System.Object obj) [0x00015] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at Helpmebot.Services.JoinMessageService.DoWelcome (Stwalkerster.IrcClient.Model.Interfaces.IUser networkUser, System.String channel, Stwalkerster.IrcClient.Interfaces.IIrcClient client) [0x00285] in <d0890297c7624e119714d0f573841d96>:0 
  at Helpmebot.Services.JoinMessageService.OnJoinEvent (System.Object sender, Stwalkerster.IrcClient.Events.JoinEventArgs e) [0x00051] in <d0890297c7624e119714d0f573841d96>:0
stwalkerster renamed this task from WelcomeNewbie reporting throws exception on each report to WelcomeNewbie reporting throws NHibernate exception on each report.Aug 24 2018, 10:52 PM