-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Help: JetDriver can't execute at all in 1.2.0 beta 2
PostPosted: Thu Nov 16, 2006 4:45 am 
Newbie

Joined: Thu Oct 05, 2006 12:38 am
Posts: 8
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 4:49 am 
Newbie

Joined: Thu Oct 05, 2006 12:38 am
Posts: 8
Just wanted to add that I run the NHibernate.SQL string in the DEBUG log on the Access database and it is able to work without any problem. So apparently the created SQL by JetDriver is correct.

But somehow IDbTransaction seems to be lost/null before execution in JetDriver.JetDbCommand.Transaction(). What's wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 9:03 pm 
Newbie

Joined: Thu Oct 05, 2006 12:38 am
Posts: 8
Hmm. Still can't get it to work after trying several hours. Anyone can verify whether JetDriver is able to work in 1.2.0 beta 2? Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 2:51 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Please submit a bug report to JIRA with a simple test case. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 10:46 am 
Newbie

Joined: Thu Oct 05, 2006 12:38 am
Posts: 8
Submitted a bug report to JIRA. Thanks.

http://jira.nhibernate.org/browse/NH-818


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.