java - org.hibernate.hql.ast.QuerySyntaxException -
i getting exception:org.hibernate.hql.ast.querysyntaxexception: unexpected end of subtree when excute below query :
<query name="fetchcspecificationbyattidextid"> <![cdata[from > cproductspecifications attributeid=:attributeid , > extractedproductid in (:extractedlist)]]> </query>
detailed stack trace is:
org.hibernate.hql.ast.querysyntaxexception: unexpected end of subtree [ com.bemol.dao.product.cproductspecifications attributeid=:attributeid , extractedproductid in () ]
service method calls query :
list<cproductspecifications> cspeclist=(list<cproductspecifications>)this.basedao.findbynamedqueryandnamedparam("fetchcspecificationbyattidextid", new string[]{"attributeid","extractedlist"},new object[]{aid,extractedlist});
perhaps extractedlist empty? try empty check first.
Comments
Post a Comment