Skip to content

Unable to perform AfterTransactionCompletion callback: System.NullReferenceException after update to 5.3.2 from 5.2.7 #2530

Open
@xumix

Description

@xumix

This started after updating to 5.3.2 from 5.2.7. I can't create a repro since some tests work ok.

Stack Trace: 
    AfterTransactionCompletionProcessQueue.AfterTransactionCompletion(Boolean success)
    SessionImpl.AfterTransactionCompletion(Boolean success, ITransaction tx)
    AdoTransaction.AfterTransactionCompletion(Boolean successful)
    AdoTransaction.Commit()
// ......... Skipped
    TestHelper.Execute(Action action, Boolean useInterceptors) line 69
    StatisticsJobTests.Execute_ActiveCount_NoExceptions() line 414
    ----- Inner Stack Trace -----
    ReadOnlyCache.Clear()
    SessionFactoryImpl.EvictEntity(IEnumerable`1 entityNames)
    SessionFactoryExtension.EvictEntity(ISessionFactory factory, IEnumerable`1 entityNames)
    BulkOperationCleanupAction.EvictEntityRegions()
    BulkOperationCleanupAction.ExecuteAfterTransactionCompletion(Boolean success)
    AfterTransactionCompletionProcessQueue.AfterTransactionCompletion(Boolean success)

Config:

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <!--<property name="dialect">NHibernate.Dialect.MsSql2012Dialect</property>
      <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>-->
      <!--<property name="connection.driver_class">Granit.Core.Data.NHibernate.Oracle.OracleManagedDataClientDriver, Granit.Core</property>
      <property name="dialect">NHibernate.Dialect.Oracle10gDialect</property>-->
      <property name="connection.connection_string_name">Current</property>
      <property name="command_timeout">60</property>
      <property name="show_sql">false</property>
      <property name="format_sql">true</property>
      <property name="adonet.batch_size">100</property>
      <property name="cache.provider_class">NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache</property>
      <property name="cache.use_second_level_cache">true</property>
      <property name="cache.use_query_cache" >true</property>
    </session-factory>
  </hibernate-configuration>

What can this be caused by?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions