From: Roger (JIRA) <nh...@gm...> - 2011-05-03 18:46:57
|
[ http://216.121.112.228/browse/NHE-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roger closed NHE-11. -------------------- Resolution: External Issue Assignee: Roger The stack trace says that the problem (probably) is caused in NHV. Closing this issue. Please report it to NHV instead. > Using Validator and Envers together > ----------------------------------- > > Key: NHE-11 > URL: http://216.121.112.228/browse/NHE-11 > Project: NHibernate.Envers > Issue Type: Bug > Components: Core > Affects Versions: 1.0 alpha 2 > Reporter: Jochen Jonckheere > Assignee: Roger > Priority: Blocker > > When I try to use NHibernate.Envers and NHibernate.Validator in the same project I get the following exception. > Mesage: Object reference not set to an instance of an object. > StackTrace: > at NHibernate.Validator.Engine.SystemTypeExtensions.ShouldNeedValidation(Type clazz) > at NHibernate.Validator.Engine.ValidatorEngine.GetClassValidator(Type entityType) > at NHibernate.Validator.Engine.ValidatorEngine.AddValidator(Type entityType, IValidatableSubElementsInspector inspector) > at NHibernate.Validator.Event.ValidatePreInsertEventListener.Initialize(Configuration cfg) > at NHibernate.Event.EventListeners.InitializeListeners(Configuration cfg, Object[] list) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Event\EventListeners.cs:line 618 > at NHibernate.Event.EventListeners.InitializeListeners(Configuration cfg) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Event\EventListeners.cs:line 592 > at NHibernate.Cfg.Configuration.GetInitializedEventListeners() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Cfg\Configuration.cs:line 1189 > at NHibernate.Cfg.Configuration.BuildSessionFactory() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Cfg\Configuration.cs:line 1246 > at ....Installers.NHibernateInstaller.SessionFactoryFactory(INHibernateConfigurator nHibernateConfigurator, INHibernateEnversConfigurator nHibernateEnversConfigurator) in ...\Installers\NHibernateInstaller.cs:line 81 > Here's the part of the code that throws the exception: > // Build the NHibernate Configuration > var nHibernateConfiguration = nHibernateConfigurator.Configure(); > > // Initialize NHibernate Validator > nHibernateConfiguration.Initialize(); > > // Initialize NHibernate Envers > nHibernateConfiguration.IntegrateWithEnvers(nHibernateEnversConfigurator.Configure()); > // Build the SessionFactory > _factory = nHibernateConfiguration.BuildSessionFactory(); > More info on: https://groups.google.com/d/topic/nhusers/gu9Gf5TrD_U/discussion -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |