Open issues

Method 'ISessionImplementorProxy.List_callback' does not have a method body

Description

I have this piece of code
{{Session.Auditer()
.GetRevisions(typeof (DomainModel.Order), request.Id)
.Reverse();}}
which works fine on .NET, but fails on mono.
I'll provide domain model + mappings or even some simple demo in a comment.

Stack trace:
{{System.InvalidOperationException: Method 'ISessionImplementorProxy.List_callback' does not have a method body.
at System.Reflection.Emit.MethodBuilder.fixup () [0x00000] in <filename unknown>:0
at System.Reflection.Emit.TypeBuilder.CreateTypeInfo () [0x00000] in <filename unknown>:0
at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000] in <filename unknown>:0
at NHibernate.Proxy.DynamicProxy.ProxyFactory.CreateUncachedProxyType (System.Type baseType, System.Type[] baseInterfaces) [0x00000] in <filename unknown>:0
at NHibernate.Proxy.DynamicProxy.ProxyFactory.CreateProxyType (System.Type baseType, System.Type[] interfaces) [0x00000] in <filename unknown>:0
at NHibernate.Proxy.DynamicProxy.ProxyFactory.CreateProxy (System.Type instanceType, IInterceptor interceptor, System.Type[] baseInterfaces) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.Relation.Lazy.Proxy.DefaultEnversProxyFactory.CreateToOneProxy (NHibernate.Envers.Configuration.AuditConfiguration verCfg, IAuditReaderImplementor versionsReader, System.String referencedEntityName, System.Object entityId, Int64 revision, Boolean removed) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.Relation.ToOneIdMapper.NullSafeMapToEntityFromMap (NHibernate.Envers.Configuration.AuditConfiguration verCfg, System.Object obj, IDictionary data, System.Object primaryKey, IAuditReaderImplementor versionsReader, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.Relation.AbstractToOneMapper.MapToEntityFromMap (NHibernate.Envers.Configuration.AuditConfiguration verCfg, System.Object obj, IDictionary data, System.Object primaryKey, IAuditReaderImplementor versionsReader, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.MultiPropertyMapper.MapToEntityFromMap (NHibernate.Envers.Configuration.AuditConfiguration verCfg, System.Object obj, IDictionary data, System.Object primaryKey, IAuditReaderImplementor versionsReader, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.EntityInstantiator.CreateInstanceFromVersionsEntity (System.String entityName, IDictionary versionsEntity, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.EntityInstantiator.AddInstancesFromVersionsEntities (System.String entityName, IList addTo, IEnumerable`1 versionsEntities, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Query.Impl.EntitiesAtRevisionQuery.FillResult (IList result) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Query.Impl.AbstractAuditQuery.GetSingleResult () [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find (System.String entityName, System.Object primaryKey, Int64 revision, Boolean includeDeletions) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find (System.String entityName, System.Object primaryKey, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find (System.Type cls, System.Object primaryKey, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find[Order] (System.Object primaryKey, Int64 revision) [0x00000] in <filename unknown>:0
at CRM.Backend.ServiceInterface.OrderService.Get (CRM.Backend.ServiceModel.OrderHistoryRequest request) [0x00063] in /home/****/CRM.Backend/ServiceInterface/OrderService.cs:167 at System.Reflection.Emit.MethodBuilder.fixup () [0x00000] in <filename unknown>:0
at System.Reflection.Emit.TypeBuilder.CreateTypeInfo () [0x00000] in <filename unknown>:0
at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000] in <filename unknown>:0
at NHibernate.Proxy.DynamicProxy.ProxyFactory.CreateUncachedProxyType (System.Type baseType, System.Type[] baseInterfaces) [0x00000] in <filename unknown>:0
at NHibernate.Proxy.DynamicProxy.ProxyFactory.CreateProxyType (System.Type baseType, System.Type[] interfaces) [0x00000] in <filename unknown>:0
at NHibernate.Proxy.DynamicProxy.ProxyFactory.CreateProxy (System.Type instanceType, IInterceptor interceptor, System.Type[] baseInterfaces) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.Relation.Lazy.Proxy.DefaultEnversProxyFactory.CreateToOneProxy (NHibernate.Envers.Configuration.AuditConfiguration verCfg, IAuditReaderImplementor versionsReader, System.String referencedEntityName, System.Object entityId, Int64 revision, Boolean removed) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.Relation.ToOneIdMapper.NullSafeMapToEntityFromMap (NHibernate.Envers.Configuration.AuditConfiguration verCfg, System.Object obj, IDictionary data, System.Object primaryKey, IAuditReaderImplementor versionsReader, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.Relation.AbstractToOneMapper.MapToEntityFromMap (NHibernate.Envers.Configuration.AuditConfiguration verCfg, System.Object obj, IDictionary data, System.Object primaryKey, IAuditReaderImplementor versionsReader, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.Mapper.MultiPropertyMapper.MapToEntityFromMap (NHibernate.Envers.Configuration.AuditConfiguration verCfg, System.Object obj, IDictionary data, System.Object primaryKey, IAuditReaderImplementor versionsReader, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.EntityInstantiator.CreateInstanceFromVersionsEntity (System.String entityName, IDictionary versionsEntity, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Entities.EntityInstantiator.AddInstancesFromVersionsEntities (System.String entityName, IList addTo, IEnumerable`1 versionsEntities, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Query.Impl.EntitiesAtRevisionQuery.FillResult (IList result) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Query.Impl.AbstractAuditQuery.GetSingleResult () [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find (System.String entityName, System.Object primaryKey, Int64 revision, Boolean includeDeletions) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find (System.String entityName, System.Object primaryKey, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find (System.Type cls, System.Object primaryKey, Int64 revision) [0x00000] in <filename unknown>:0
at NHibernate.Envers.Reader.AuditReader.Find[Order] (System.Object primaryKey, Int64 revision) [0x00000] in <filename unknown>:0
at CRM.Backend.ServiceInterface.OrderService.Get (CRM.Backend.ServiceModel.OrderHistoryRequest request) [0x00063] in /home/****/CRM.Backend/ServiceInterface/OrderService.cs:167
}}

Environment

Mono 3.12.1

Assignee

Unassigned

Reporter

Michał Gajek

Labels

None

Components

Affects versions

Priority

Critical
Configure