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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -