Hi,
I updated a .net service that was build with an old nhibernate version.
- Updated following dll's : log4net.dll, Iesi.Collections.dll, NHibernate.dll, nunit.framework.dll
- Added following dll: NHibernate.Tool.hbm2net.dll
- Adapted my application.config file with the nhibernate config - Adapted all xml mapping files
Project build succeeded and service just starts. But when I compare the debug log from the old service with the debug log from the new service I can see that something is not done in the new service: The init compiler is not run. so the service just runs but does nothing ....
Old service debug looks like this:
2010-06-11 17:10:36,759 [5792] INFO NHibernate.Cfg.Environment [(null)] <(null)> - NHibernate 1.0.4 2010-06-11 17:10:36,790 [5792] INFO NHibernate.Cfg.Environment [(null)] <(null)> - Using reflection optimizer 2010-06-11 17:10:36,790 [5792] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - Searching for mapped documents in assembly: DTO 2010-06-11 17:10:36,806 [5792] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - Found mapping documents in assembly: DTO.Transactions.ForecourtTransactionDTO.hbm.xml 2010-06-11 17:10:36,900 [5792] INFO NHibernate.Dialect.Dialect [(null)] <(null)> - Using dialect: NHibernate.Dialect.MsSql2000Dialect 2010-06-11 17:10:36,947 [5792] INFO NHibernate.Cfg.Binder [(null)] <(null)> - Mapping class: DTO.Transactions.ForecourtTransactionDTO -> EV_TR_FUEL . . . ....serveral mappings are done . . 2010-06-11 17:10:37,103 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Init compiler for class DTO.Tasks.TaskRunHistoryDTO 2010-06-11 17:10:37,103 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Adding referenced assembly D:\StatisticEngineP\NHibernate.dll 2010-06-11 17:10:37,103 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Adding referenced assembly D:\StatisticEngineP\DTO.dll 2010-06-11 17:10:37,103 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Adding referenced assembly C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll 2010-06-11 17:10:37,103 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Adding referenced assembly C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll 2010-06-11 17:10:37,103 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Adding referenced assembly D:\StatisticEngineP\Common.dll 2010-06-11 17:10:37,118 [5792] INFO NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Disabling reflection optimizer for class P247DTO.Tasks.TaskRunHistoryDTO 2010-06-11 17:10:37,118 [5792] DEBUG NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - CodeDOM compilation failed System.NullReferenceException: Object reference not set to an instance of an object. at NHibernate.Persister.GetSetHelperFactory.GenerateCode() at NHibernate.Persister.GetSetHelperFactory.CreateGetSetHelper()
and logging goes on and on while application is doing database related stuff
New service debug look like this:
2010-06-11 16:57:20,504 [4] INFO NHibernate.Cfg.Environment [(null)] <(null)> - NHibernate 2.1.2.4000 (2.1.2.4000) 2010-06-11 16:57:20,566 [4] INFO NHibernate.Cfg.Environment [(null)] <(null)> - Bytecode provider name : lcg 2010-06-11 16:57:20,566 [4] INFO NHibernate.Cfg.Environment [(null)] <(null)> - Using reflection optimizer 2010-06-11 16:57:20,598 [4] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - Searching for mapped documents in assembly: DTO 2010-06-11 16:57:20,598 [4] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - Mapping resource: DTO.Transactions.ForecourtTransactionDTO.hbm.xml 2010-06-11 16:57:20,738 [4] INFO NHibernate.Dialect.Dialect [(null)] <(null)> - Using dialect: NHibernate.Dialect.MsSql2000Dialect 2010-06-11 16:57:22,738 [4] INFO NHibernate.Cfg.XmlHbmBinding.Binder [(null)] <(null)> - Mapping class: DTO.Transactions.ForecourtTransactionDTO -> EV_TR_FUEL . . . ....serveral mappings are done . . ... don't find any compiler loggings here ........................ and can't find this line in the ols service logging :
2010-06-11 16:57:23,254 [4] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - processing filters (second pass)
This is the last line from the new service, in the old service
Any idea why the rebuilded service stops here ?
|