Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when accessing Sitemap dashboard page. #5

Closed
GiscardBiamby opened this issue Oct 23, 2012 · 3 comments
Closed

Exception when accessing Sitemap dashboard page. #5

GiscardBiamby opened this issue Oct 23, 2012 · 3 comments

Comments

@GiscardBiamby
Copy link
Contributor

I'm getting this error using the latest source from the orchard-sitemap repo, with Orchard 1.6 RC.

2012-10-23 12:57:07,663 [6] Orchard.Exceptions.DefaultExceptionPolicy - An unexpected exception was caught
System.NotSupportedException: Boolean Exists(System.Predicate1[Orchard.ContentManagement.MetaData.Models.ContentTypeDefinition]) at NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitMethodCallExpression(MethodCallExpression expression) at NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitExpression(Expression expression) at NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitUnaryExpression(UnaryExpression expression) at NHibernate.Linq.Visitors.HqlGeneratorExpressionTreeVisitor.VisitExpression(Expression expression) at NHibernate.Linq.Visitors.QueryModelVisitor.VisitWhereClause(WhereClause whereClause, QueryModel queryModel, Int32 index) at Remotion.Linq.Clauses.WhereClause.Accept(IQueryModelVisitor visitor, QueryModel queryModel, Int32 index) at Remotion.Linq.QueryModelVisitorBase.VisitBodyClauses(ObservableCollection1 bodyClauses, QueryModel queryModel)
at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel)
at NHibernate.Linq.Visitors.QueryModelVisitor.GenerateHqlQuery(QueryModel queryModel, VisitorParameters parameters, Boolean root)
at NHibernate.Linq.NhLinqExpression.Translate(ISessionFactoryImplementor sessionFactory)
at NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String queryIdentifier, IQueryExpression queryExpression, String collectionRole, Boolean shallow, IDictionary2 filters, ISessionFactoryImplementor factory) at NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(IQueryExpression queryExpression, Boolean shallow, IDictionary2 enabledFilters)
at NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(IQueryExpression queryExpression, Boolean shallow)
at NHibernate.Impl.AbstractSessionImpl.CreateQuery(IQueryExpression queryExpression)
at NHibernate.Linq.DefaultQueryProvider.PrepareQuery(Expression expression, IQuery& query, NhLinqExpression& nhQuery)
at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression)
at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression)
at Remotion.Linq.QueryableBase1.GetEnumerator() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection[T](IEnumerable1 enumerable) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Utility\Extensions\ReadOnlyCollectionExtensions.cs:line 8 at Orchard.Data.Repository1.Orchard.Data.IRepository.Fetch(Expression1 predicate) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Data\Repository.cs:line 72 at WebAdvanced.Sitemap.Services.AdvancedSitemapService.<GetIndexSettings>b__3(AcquireContext1 ctx)
at Orchard.Caching.Cache2.CreateEntry(TKey k, Func2 acquire) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Caching\Cache.cs:line 57
at Orchard.Caching.Cache2.AddEntry(TKey k, Func2 acquire) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Caching\Cache.cs:line 27
at Orchard.Caching.Cache2.<>c__DisplayClass2.<Get>b__0(TKey k) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Caching\Cache.cs:line 19 at System.Collections.Concurrent.ConcurrentDictionary2.AddOrUpdate(TKey key, Func2 addValueFactory, Func3 updateValueFactory)
at Orchard.Caching.Cache2.Get(TKey key, Func2 acquire) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Caching\Cache.cs:line 17
at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func2 acquire) in c:\projects\OrchardEnlistments\orchard-azure\src\Orchard\Caching\DefaultCacheManager.cs:line 33 at WebAdvanced.Sitemap.Services.AdvancedSitemapService.GetIndexSettings() at WebAdvanced.Sitemap.Controllers.AdminController.Indexing() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<>c__DisplayClass15.b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation)

@CPyle
Copy link
Contributor

CPyle commented Oct 23, 2012

Fixed in version 1.4.0

@CPyle CPyle closed this as completed Oct 23, 2012
@GiscardBiamby
Copy link
Contributor Author

Thanks! Will you be pushing the changes to github too?

@CPyle
Copy link
Contributor

CPyle commented Oct 24, 2012

I just pushed a new tag for 1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants