Yes, I remove nested component and work fine. Once component work too.
On 11 fev, 08:56, Paul Batum <paul.ba...@gmail.com> wrote: > The error is a null reference and the stack trace is related to building the > session factory. My guess would be that the problem is related to how you're > setting up your configuration, rather than the nested component. Have you > tried removing the nested component to see if the error persists? > > On Tue, Feb 9, 2010 at 6:58 AM, Eduardo Costa <educo...@gmail.com> wrote: > > Hi, > > > I have this Map > > > Component<DadosGerais>(x => x.DadosGerais, a => > > { > > a.Component<FormacaoAcademicaTitulacao>(b => > > b.FormacaoAcademicaTitulacao, c => > > { > > //Maps here > > }); > > }); > > > The error is: > > > ----> System.NullReferenceException : Object reference not set to an > > instance of an object. > > d:\Builds\FluentNH\src\FluentNHibernate\Cfg > > \FluentConfiguration.cs(98,0): em > > FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() > > SessionManager.cs(49,0): em > > > HMV.PortalMedico.Infra.DataAccess.SessionManager.ConfigureNHibernate(IPersistenceConfigurer > > databaseConfigurer, ValidatorEngine& validatorEngine, Configuration > > cfg) > > SessionManager.cs(102,0): em > > > HMV.PortalMedico.Infra.DataAccess.SessionManager.ConfigureDataAccess(IInitializationExpression > > i, IPersistenceConfigurer databaseConfigurer, Configuration& cfg) > > SessionManager.cs(0,0): em > > > HMV.PortalMedico.Infra.DataAccess.SessionManager.ConfigureDataAccess(IInitializationExpression > > i, String connString) > > SessionManager.cs(75,0): em > > > HMV.PortalMedico.Infra.DataAccess.SessionManager.<>c__DisplayClass8.<ConfigureDataAccess>b__7(IInitializationExpression > > i) > > em StructureMap.ObjectFactory.Initialize(Action`1 action) > > SessionManager.cs(75,0): em > > HMV.PortalMedico.Infra.DataAccess.SessionManager.ConfigureDataAccess(String > > connString) > > aaConexao_NHibernateTest.cs(14,0): em > > HMV.PortalMedico.Test.aaConexao_NHibernate.testa_conexao_com_o_nhibernate() > > --NullReferenceException > > em > > > NHibernate.Validator.Event.ValidatePreInsertEventListener.SubElementsInspector.AddSubElement(Property > > property, ValidatableElement element) > > em > > > NHibernate.Validator.Event.ValidatePreInsertEventListener.SubElementsInspector.AddSubElement(Property > > property, ValidatableElement element) > > em > > > NHibernate.Validator.Event.ValidatePreInsertEventListener.SubElementsInspector.Inspect(ValidatableElement > > element) > > em NHibernate.Validator.Engine.ValidatorEngine.AddValidator(Type > > entityType, IValidatableSubElementsInspector inspector) > > em > > > NHibernate.Validator.Event.ValidatePreInsertEventListener.Initialize(Configuration > > cfg) > > em NHibernate.Event.EventListeners.InitializeListeners(Configuration > > cfg, Object[] list) > > em NHibernate.Event.EventListeners.InitializeListeners(Configuration > > cfg) > > em NHibernate.Cfg.Configuration.GetInitializedEventListeners() > > em NHibernate.Cfg.Configuration.BuildSessionFactory() > > d:\Builds\FluentNH\src\FluentNHibernate\Cfg > > \FluentConfiguration.cs(93,0): em > > FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() > > > Any suggestions please! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Fluent NHibernate" group. > > To post to this group, send email to fluent-nhibern...@googlegroups.com. > > To unsubscribe from this group, send email to > > fluent-nhibernate+unsubscr...@googlegroups.com<fluent-nhibernate%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/fluent-nhibernate?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.