Hibernate version:
1.2.0 beta 2
Code between sessionFactory.openSession() and session.close():
I just did a normal ActiveSession.Load(type, id);
Full stack trace of any exception that occurs:
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.SessionImpl - opened session
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.SessionImpl - loading [SystemSettings#1]
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.SessionImpl - attempting to resolve [SystemSettings#1]
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.SessionImpl - object not resolved in any cache [DataAccess.Domain.SystemSettings#1]
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Fetching entity: [DataAccess.Domain.SystemSettings#1]
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Loader.Loader - loading entity: [DataAccess.Domain.SystemSettings#1]
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands: 1
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: SELECT systemsett0_.pk_Id as pk1_20_0_, systemsett0_.b_IsTestMode as b2_20_0_, systemsett0_.u_TestEmail as u3_20_0_, systemsett0_.u_ClientEmail as u4_20_0_, systemsett0_.u_ClientContactPerson as u5_20_0_, systemsett0_.u_ClientContactNumber as u6_20_0_, systemsett0_.u_ClientAddress as u7_20_0_, systemsett0_.u_MetaTitle as u8_20_0_, systemsett0_.u_MetaDescription as u9_20_0_, systemsett0_.u_MetaKeywords as u10_20_0_, systemsett0_.b_CategoryDescription as b11_20_0_, systemsett0_.b_CategoryImage as b12_20_0_, systemsett0_.e_CategorySort as e13_20_0_, systemsett0_.b_ItemShortDescription as b14_20_0_, systemsett0_.b_ItemImage1 as b15_20_0_, systemsett0_.i_ItemImage1Width as i16_20_0_, systemsett0_.i_ItemImage1Height as i17_20_0_, systemsett0_.b_ItemAutoThumbnail1 as b18_20_0_, systemsett0_.i_ItemThumbnail1Width as i19_20_0_, systemsett0_.i_ItemThumbnail1Height as i20_20_0_, systemsett0_.b_ItemPromotion as b21_20_0_, systemsett0_.b_ItemWeight as b22_20_0_, systemsett0_.u_ItemWeightUOM as u23_20_0_, systemsett0_.b_ItemColor as b24_20_0_, systemsett0_.b_ItemSize as b25_20_0_, systemsett0_.b_ItemInventory as b26_20_0_, systemsett0_.b_ItemImages as b27_20_0_, systemsett0_.b_ItemAutoThumbnails as b28_20_0_, systemsett0_.b_ItemAttachments as b29_20_0_, systemsett0_.b_ItemUnitPrice as b30_20_0_, systemsett0_.e_ItemSort as e31_20_0_, systemsett0_.e_CartMode as e32_20_0_, systemsett0_.b_Gst as b33_20_0_, systemsett0_.b_ShippingCharges as b34_20_0_, systemsett0_.b_PaymentWorldPay as b35_20_0_, systemsett0_.b_PaymentEnets as b36_20_0_, systemsett0_.b_PaymentPayPal as b37_20_0_, systemsett0_.b_PaymentThirdParty as b38_20_0_, systemsett0_.i_ItemLimit as i39_20_0_, systemsett0_.b_StoreRFQ as b40_20_0_, systemsett0_.b_MemberModule as b41_20_0_, systemsett0_.b_MemberGrouping as b42_20_0_, systemsett0_.b_NewsModule as b43_20_0_, systemsett0_.b_MarketingModule as b44_20_0_, systemsett0_.b_PageVariablesModule as b45_20_0_, systemsett0_.b_Multiculture as b46_20_0_, systemsett0_.fk_DefaultTimeZone as fk47_20_0_, systemsett0_.fk_DefaultCurrency as fk48_20_0_ FROM SystemSettings systemsett0_ WHERE systemsett0_.pk_Id=?
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Type.Int32Type - binding '1' to parameter: 0
2006-11-16 16:17:59,359 [8] INFO NHibernate.Loader.Loader - SELECT systemsett0_.pk_Id as pk1_20_0_, systemsett0_.b_IsTestMode as b2_20_0_, systemsett0_.u_TestEmail as u3_20_0_, systemsett0_.u_ClientEmail as u4_20_0_, systemsett0_.u_ClientContactPerson as u5_20_0_, systemsett0_.u_ClientContactNumber as u6_20_0_, systemsett0_.u_ClientAddress as u7_20_0_, systemsett0_.u_MetaTitle as u8_20_0_, systemsett0_.u_MetaDescription as u9_20_0_, systemsett0_.u_MetaKeywords as u10_20_0_, systemsett0_.b_CategoryDescription as b11_20_0_, systemsett0_.b_CategoryImage as b12_20_0_, systemsett0_.e_CategorySort as e13_20_0_, systemsett0_.b_ItemShortDescription as b14_20_0_, systemsett0_.b_ItemImage1 as b15_20_0_, systemsett0_.i_ItemImage1Width as i16_20_0_, systemsett0_.i_ItemImage1Height as i17_20_0_, systemsett0_.b_ItemAutoThumbnail1 as b18_20_0_, systemsett0_.i_ItemThumbnail1Width as i19_20_0_, systemsett0_.i_ItemThumbnail1Height as i20_20_0_, systemsett0_.b_ItemPromotion as b21_20_0_, systemsett0_.b_ItemWeight as b22_20_0_, systemsett0_.u_ItemWeightUOM as u23_20_0_, systemsett0_.b_ItemColor as b24_20_0_, systemsett0_.b_ItemSize as b25_20_0_, systemsett0_.b_ItemInventory as b26_20_0_, systemsett0_.b_ItemImages as b27_20_0_, systemsett0_.b_ItemAutoThumbnails as b28_20_0_, systemsett0_.b_ItemAttachments as b29_20_0_, systemsett0_.b_ItemUnitPrice as b30_20_0_, systemsett0_.e_ItemSort as e31_20_0_, systemsett0_.e_CartMode as e32_20_0_, systemsett0_.b_Gst as b33_20_0_, systemsett0_.b_ShippingCharges as b34_20_0_, systemsett0_.b_PaymentWorldPay as b35_20_0_, systemsett0_.b_PaymentEnets as b36_20_0_, systemsett0_.b_PaymentPayPal as b37_20_0_, systemsett0_.b_PaymentThirdParty as b38_20_0_, systemsett0_.i_ItemLimit as i39_20_0_, systemsett0_.b_StoreRFQ as b40_20_0_, systemsett0_.b_MemberModule as b41_20_0_, systemsett0_.b_MemberGrouping as b42_20_0_, systemsett0_.b_NewsModule as b43_20_0_, systemsett0_.b_MarketingModule as b44_20_0_, systemsett0_.b_PageVariablesModule as b45_20_0_, systemsett0_.b_Multiculture as b46_20_0_, systemsett0_.fk_DefaultTimeZone as fk47_20_0_, systemsett0_.fk_DefaultCurrency as fk48_20_0_ FROM SystemSettings systemsett0_ WHERE systemsett0_.pk_Id=?
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.SQL - SELECT systemsett0_.pk_Id as pk1_20_0_, systemsett0_.b_IsTestMode as b2_20_0_, systemsett0_.u_TestEmail as u3_20_0_, systemsett0_.u_ClientEmail as u4_20_0_, systemsett0_.u_ClientContactPerson as u5_20_0_, systemsett0_.u_ClientContactNumber as u6_20_0_, systemsett0_.u_ClientAddress as u7_20_0_, systemsett0_.u_MetaTitle as u8_20_0_, systemsett0_.u_MetaDescription as u9_20_0_, systemsett0_.u_MetaKeywords as u10_20_0_, systemsett0_.b_CategoryDescription as b11_20_0_, systemsett0_.b_CategoryImage as b12_20_0_, systemsett0_.e_CategorySort as e13_20_0_, systemsett0_.b_ItemShortDescription as b14_20_0_, systemsett0_.b_ItemImage1 as b15_20_0_, systemsett0_.i_ItemImage1Width as i16_20_0_, systemsett0_.i_ItemImage1Height as i17_20_0_, systemsett0_.b_ItemAutoThumbnail1 as b18_20_0_, systemsett0_.i_ItemThumbnail1Width as i19_20_0_, systemsett0_.i_ItemThumbnail1Height as i20_20_0_, systemsett0_.b_ItemPromotion as b21_20_0_, systemsett0_.b_ItemWeight as b22_20_0_, systemsett0_.u_ItemWeightUOM as u23_20_0_, systemsett0_.b_ItemColor as b24_20_0_, systemsett0_.b_ItemSize as b25_20_0_, systemsett0_.b_ItemInventory as b26_20_0_, systemsett0_.b_ItemImages as b27_20_0_, systemsett0_.b_ItemAutoThumbnails as b28_20_0_, systemsett0_.b_ItemAttachments as b29_20_0_, systemsett0_.b_ItemUnitPrice as b30_20_0_, systemsett0_.e_ItemSort as e31_20_0_, systemsett0_.e_CartMode as e32_20_0_, systemsett0_.b_Gst as b33_20_0_, systemsett0_.b_ShippingCharges as b34_20_0_, systemsett0_.b_PaymentWorldPay as b35_20_0_, systemsett0_.b_PaymentEnets as b36_20_0_, systemsett0_.b_PaymentPayPal as b37_20_0_, systemsett0_.b_PaymentThirdParty as b38_20_0_, systemsett0_.i_ItemLimit as i39_20_0_, systemsett0_.b_StoreRFQ as b40_20_0_, systemsett0_.b_MemberModule as b41_20_0_, systemsett0_.b_MemberGrouping as b42_20_0_, systemsett0_.b_NewsModule as b43_20_0_, systemsett0_.b_MarketingModule as b44_20_0_, systemsett0_.b_PageVariablesModule as b45_20_0_, systemsett0_.b_Multiculture as b46_20_0_, systemsett0_.fk_DefaultTimeZone as fk47_20_0_, systemsett0_.fk_DefaultCurrency as fk48_20_0_ FROM SystemSettings systemsett0_ WHERE systemsett0_.pk_Id=?; @p0 = '1'
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Connection.DriverConnectionProvider - Obtaining IDbConnection from Driver
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Util.ADOExceptionReporter - SQL Exception
System.NullReferenceException: Object reference not set to an instance of an object.
at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value)
at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command)
at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd)
at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
2006-11-16 16:17:59,359 [8] WARN NHibernate.Util.ADOExceptionReporter - System.NullReferenceException: Object reference not set to an instance of an object.
at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value)
at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command)
at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd)
at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
2006-11-16 16:17:59,359 [8] ERROR NHibernate.Util.ADOExceptionReporter - Object reference not set to an instance of an object.
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands: 0
2006-11-16 16:17:59,359 [8] DEBUG NHibernate.Util.ADOExceptionReporter - could not load an entity: [DataAccess.Domain.SystemSettings#1]
Name and version of the database you are using:
Access 2003 SP2
The above log is done on LEVEL="DEBUG", so all debug messages are shown.
I just upgrade from 1.2.0 beta 1 to 1.2.0 beta 2 and the JetDriver seems not to work anymore. (If I use the same JetDriver (from the SVN trunk) for both cases, in beta 1 it works, but for beta 2 it doesn't.)
Any idea which part of the new NHibernate is breaking the JetDriver?
|