My mayor preocupation is this name: MutableSessionFactory -- Fabio Maulo
El 29/08/2010, a las 15:03, George Mauer <[email protected]> escribió: After a recent refactoring NHibernate 2.1.2.4 started throwing a KeyNotFoundException when the SessionFactory is being configured. No other information is supplied, not even the key that is not found. The stacktrace is pasted below. Clearly some mapping registration is going wrong. What exactly are my options for tracking down the error? Compiling NH from source would be a huge hassle since we use other libraries that depend on specific versions for it (such as NH.Linq). at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at NHibernate.Cfg.Configuration.Mapping.GetPersistentClass(String className) at NHibernate.Cfg.Configuration.Mapping.GetIdentifierType(String className) at NHibernate.Type.EntityType.GetIdentifierType(IMapping factory) at NHibernate.Type.EntityType.GetIdentifierOrUniqueKeyType(IMapping factory) at NHibernate.Persister.Entity.AbstractPropertyMapping.InitIdentifierPropertyPaths(String path, EntityType etype, String[] columns, IMapping factory) at NHibernate.Persister.Entity.AbstractPropertyMapping.InitPropertyPaths(String path, IType type, String[] columns, String[] formulaTemplates, IMapping factory) at NHibernate.Persister.Entity.AbstractEntityPersister.InitOrdinaryPropertyPaths(IMapping mapping) at NHibernate.Persister.Entity.AbstractEntityPersister.InitPropertyPaths(IMapping mapping) at NHibernate.Persister.Entity.AbstractEntityPersister.PostConstruct(IMapping mapping) at NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(PersistentClass persistentClass, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping mapping) at NHibernate.Persister.PersisterFactory.CreateClassPersister(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping cfg) at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) at NHibernate.Cfg.Configuration.BuildSessionFactory() at PCS.Data.NHibernate.MutableSessionFactory.CreateSessionFactory() in W:\PCS\GeorgeDev\Src\PCS\PCS.Data.NHibernate \MutableSessionFactory.cs:line 27 -- 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. -- 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.
