We're using NHibernate version 4.0.0. I'm trying to setup batching and 
using the following code to create NHConfiguration:

            var cfg = new 
NHibernate.Cfg.Configuration().DataBaseIntegration(prop =>
            {
                prop.BatchSize = 1000;
                prop.Batcher<OracleDataClientBatchingBatcherFactory>();
            });

Getting the following exception on session flush:

System.NullReferenceException: Object reference not set to an instance of 
an object.
   at 
NHibernate.AdoNet.OracleDataClientBatchingBatcher.SetArrayBindCount(Int32 
arraySize)
   at 
NHibernate.AdoNet.OracleDataClientBatchingBatcher.DoExecuteBatch(IDbCommand 
ps) ...


It looks like SetArrayBindCount method is using reflection to set 
ArrayBindCount 
property in OracleCommand. This method throws a null reference exception.

Did anyone else experience the same problem? Am I missing something or it's 
a bug in OracleDataClientBatchingBatcher?

Any help will be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to