Description

2015-06-02 12:46:35.4520 DEBUG NHibernate.Impl.SessionImpl 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c [session-id=6dee4e8e-32d9-4d8d-bb06-93c670444fa0] opened session at timestamp: 635688459954, for session factory: [/28cae3ee318c468b90fb1ad77f26ee68] 2015-06-02 12:46:35.4520 DEBUG NHibernate.Transaction.AdoTransaction 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c Begin (ReadCommitted) 2015-06-02 12:46:35.4520 DEBUG NHibernate.Connection.DriverConnectionProvider 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c Obtaining IDbConnection from Driver 2015-06-02 12:46:35.4520 DEBUG NHibernate.Loader.Criteria.CriteriaQueryTranslator 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c searching for User 2015-06-02 12:46:35.4520 DEBUG NHibernate.Loader.Criteria.CriteriaQueryTranslator 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c returning entity name=TFiN.Domain.Entities.Users.User for path=User class=EntityCriteriaInfoProvider 2015-06-02 12:46:35.4520 DEBUG NHibernate.Loader.Criteria.CriteriaQueryTranslator 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c put criteria=ua.Status = UserStatus@2(hash) and (CS$<>8__locals1.ua.Voornaam like %bart% or CS$<>8__locals1.ua.Achternaam like %bart% or CS$<>8__locals1.ua.Email like %bart% or CS$<>8__locals1.upa.Bedrijfsnaam like %bart% or CS$<>8__locals1.upa.Telefoon like %bart% or CS$<>8__locals1.upa.VestigingsAdres.Straat like %bart% or CS$<>8__locals1.upa.VestigingsAdres.Plaats like %bart%) ua.LastActivity desc alias=upa0_ 2015-06-02 12:46:35.4520 DEBUG NHibernate.Loader.Criteria.CriteriaQueryTranslator 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c put criteria=NHibernate.Impl.CriteriaImpl+Subcriteria alias=ua1_ 2015-06-02 12:46:35.4520 DEBUG NHibernate.Loader.Criteria.CriteriaQueryTranslator 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c returning alias=ua1_ for criteria=NHibernate.Impl.CriteriaImpl+Subcriteria 2015-06-02 12:46:35.4590 DEBUG NHibernate.Loader.Criteria.CriteriaQueryTranslator 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c returning alias=this_ for criteria=ua.Status = UserStatus@2(hash) and (CS$<>8__locals1.ua.Voornaam like %bart% or CS$<>8__locals1.ua.Achternaam like %bart% or CS$<>8__locals1.ua.Email like %bart% or CS$<>8__locals1.upa.Bedrijfsnaam like %bart% or CS$<>8__locals1.upa.Telefoon like %bart% or CS$<>8__locals1.upa.VestigingsAdres.Straat like %bart% or CS$<>8__locals1.upa.VestigingsAdres.Plaats like %bart%) ua.LastActivity desc 2015-06-02 12:49:43.9056 DEBUG NHibernate.Transaction.AdoTransaction 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c Rollback 2015-06-02 12:49:43.9056 DEBUG NHibernate.Transaction.AdoTransaction 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c IDbTransaction RolledBack 2015-06-02 12:49:43.9056 DEBUG NHibernate.Transaction.AdoTransaction 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c IDbTransaction disposed. 2015-06-02 12:49:43.9056 DEBUG NHibernate.Impl.SessionImpl 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c transaction completion 2015-06-02 12:49:43.9056 DEBUG NHibernate.AdoNet.ConnectionManager 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c aggressively releasing database connection 2015-06-02 12:49:43.9056 DEBUG NHibernate.Connection.ConnectionProvider 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c Closing connection 2015-06-02 12:49:43.9056 DEBUG NHibernate.Impl.SessionImpl 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c [session-id=6dee4e8e-32d9-4d8d-bb06-93c670444fa0] running ISession.Dispose() 2015-06-02 12:49:43.9056 DEBUG NHibernate.Impl.SessionImpl 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c [session-id=6dee4e8e-32d9-4d8d-bb06-93c670444fa0] executing real Dispose(True) 2015-06-02 12:49:43.9056 DEBUG NHibernate.Impl.SessionImpl 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c closing session 2015-06-02 12:49:43.9056 DEBUG NHibernate.AdoNet.AbstractBatcher 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c running BatcherImpl.Dispose(true) 2015-06-02 12:49:44.0006 ERROR TFiN.WebApplication.MvcApplication 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c NHibernate.QueryException: could not resolve property: CS$<>8__locals1 of: TFiN.Domain.Entities.Users.UserProfile at NHibernate.Persister.Entity.AbstractPropertyMapping.ToType(String propertyName) at NHibernate.Persister.Entity.AbstractEntityPersister.GetSubclassPropertyTableNumber(String propertyPath) at NHibernate.Persister.Entity.BasicEntityPropertyMapping.ToColumns(String alias, String propertyName) at NHibernate.Persister.Entity.AbstractEntityPersister.ToColumns(String alias, String propertyName) at NHibernate.Loader.Criteria.CriteriaQueryTranslator.GetColumns(ICriteria subcriteria, String propertyName) at NHibernate.Loader.Criteria.CriteriaQueryTranslator.GetColumnsUsingProjection(ICriteria subcriteria, String propertyName) at NHibernate.Criterion.PropertyProjection.ToSqlString(ICriteria criteria, Int32 loc, ICriteriaQuery criteriaQuery, IDictionary`2 enabledFilters) at NHibernate.Criterion.CriterionUtil.GetColumnNamesUsingProjection(IProjection projection, ICriteriaQuery criteriaQuery, ICriteria criteria, IDictionary`2 enabledFilters) at NHibernate.Criterion.SimpleExpression.ToSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery, IDictionary`2 enabledFilters) at NHibernate.Criterion.Junction.ToSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery, IDictionary`2 enabledFilters) at NHibernate.Loader.Criteria.CriteriaQueryTranslator.GetWhereCondition(IDictionary`2 enabledFilters) at NHibernate.Loader.Criteria.CriteriaJoinWalker..ctor(IOuterJoinLoadable persister, CriteriaQueryTranslator translator, ISessionFactoryImplementor factory, ICriteria criteria, String rootEntityName, IDictionary`2 enabledFilters) at NHibernate.Loader.Criteria.CriteriaLoader..ctor(IOuterJoinLoadable persister, ISessionFactoryImplementor factory, CriteriaImpl rootCriteria, String rootEntityName, IDictionary`2 enabledFilters) at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) at NHibernate.Impl.CriteriaImpl.List(IList results) at NHibernate.Impl.CriteriaImpl.List[T]() at NHibernate.Criterion.QueryOver`1.List() at NHibernate.Criterion.QueryOver`1.NHibernate.IQueryOver<TRoot>.List() at TFiN.WebApplication.Areas.Admin.Controllers.GebruikersController.Query(GebruikersViewModel model) in C:\Projects\findesk-stable\src\TFiN.WebApplication\Areas\Admin\Controllers\GebruikersController.cs:line 136 at TFiN.WebApplication.Areas.Admin.Controllers.GebruikersController.Index(GebruikersViewModel model) in C:\Projects\findesk-stable\src\TFiN.WebApplication\Areas\Admin\Controllers\GebruikersController.cs:line 46 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-06-02 12:49:44.0846 DEBUG NHibernate.Impl.SessionImpl 624f45ad-490a-46c4-b1b5-9e7b00ea5a5c [session-id=6dee4e8e-32d9-4d8d-bb06-93c670444fa0] running ISession.Dispose()

Environment

Windows 8.1 or Windows 10 (build 10130) Microsoft Visual Studio Professional 2015 RC Version 14.0.22823.1 D14REL

Attachments

2
  • 02 Jun 2015, 11:17 AM
  • 02 Jun 2015, 11:17 AM

Activity

Show:

Alexander Shakurin August 5, 2015 at 11:24 AM
Edited

I have similar issue but it's reproducible in both VS2015 and VS2013. Here is the sample code that fails:
queryOver.Where(() => project.ProjectEnd <= projectEnd);
where ProjectEnd is Nullable<DateTime> and projectEnd is not null.

For now I was able to find a workaround - using Restrictions:
queryOver.Where(Restrictions.Le(Projections.Property(() => project.ProjectEnd), projectEnd));

Marc Gerritsen July 29, 2015 at 8:56 AM

I updated the pull request.
I checked for the < character
I think it is fixed now

Marc Gerritsen July 29, 2015 at 8:12 AM

Hmm. My fix breaks at another place.
Does anyone know how to check if a property is compiler generated.
I know that the name starts with the < character but don't like checking for this.
Any ideas?

Marc Gerritsen July 27, 2015 at 2:05 PM

Marc Gerritsen July 27, 2015 at 1:49 PM

I have the unit test and fixes ready.
Just creating a pull request now!

Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details

Assignee

Unassigned

Reporter

Bart Schapendonk

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 2, 2015 at 10:51 AM
Updated May 1, 2017 at 3:39 AM
Resolved August 17, 2015 at 11:05 AM
Who's Looking?