[ http://216.121.112.228/browse/NHV-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21242#action_21242 ]
Dario Quintana commented on NHV-117:
------------------------------------
Thanks for the report, I'll look at it.
> Using Validator and Envers together
> -----------------------------------
>
> Key: NHV-117
> URL: http://216.121.112.228/browse/NHV-117
> Project: NHibernate.Validator
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.3.1 GA
> Reporter: Jochen Jonckheere
> Priority: Major
>
> 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
> And on: http://216.121.112.228/browse/NHE-11
--
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
|