These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Nhibernate SimpleExpression Bug
PostPosted: Mon Oct 13, 2008 4:56 pm 
Newbie

Joined: Mon Oct 13, 2008 4:41 pm
Posts: 1
Hi, i use the Active Record and nhibernate 2.1.0.1001, works well, but after
some time of use (hour, days), throws a error, to fix i put the same
dll`s again and the error stop.

Code:
Castle.ActiveRecord.Framework.ActiveRecordException: Could not perform
FindAll for BaseProperty ---> NHibernate.QueryException: Type mismatch
in NHibernate.Criterion.SimpleExpression: Parent expected type
ApiBminds.Atria.Entity.Component, actual type
ApiBminds.Atria.Entity.Component
   at
NHibernate.Criterion.CriterionUtil.GetColumnNamesUsingPropertyName(ICriteri aQuery
criteriaQuery, ICriteria criteria, String propertyName, Object value,
ICriterion critertion)
   at
NHibernate.Criterion.CriterionUtil.GetColumnNamesForSimpleExpression(String
propertyName, IProjection projection, ICriteriaQuery criteriaQuery,
ICriteria criteria, IDictionary`2 enabledFilters, ICriterion
criterion, Object value)
   at NHibernate.Criterion.SimpleExpression.ToSqlString(ICriteria
criteria, ICriteriaQuery criteriaQuery, IDictionary`2 enabledFilters)
   at
NHibernate.Loader.Criteria.CriteriaQueryTranslator.GetWhereCondition(IDicti onary`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()
   at Castle.ActiveRecord.ActiveRecordBase.FindAll(Type targetType,
Order[] orders, ICriterion[] criteria)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.