Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java org.hibernate.hql.ast.QuerySyntaxException_Java_Hibernate - Fatal编程技术网

Java org.hibernate.hql.ast.QuerySyntaxException

Java org.hibernate.hql.ast.QuerySyntaxException,java,hibernate,Java,Hibernate,我得到了这个异常:org.hibernate.hql.ast.QuerySyntaxException:子树的意外结束 当我执行以下查询时: <query name="fetchCSpecificationByAttIdExtId"> <![CDATA[from > CProductSpecifications where attributeId=:attributeId and > extractedProductId in (:extracted

我得到了这个异常:org.hibernate.hql.ast.QuerySyntaxException:子树的意外结束 当我执行以下查询时:

<query name="fetchCSpecificationByAttIdExtId">      
 <![CDATA[from
> CProductSpecifications where attributeId=:attributeId  and
> extractedProductId in (:extractedList)]]>     </query>
调用此查询的服务方法是:

List<CProductSpecifications> cSpecList=(List<CProductSpecifications>)this.baseDao.findByNamedQueryAndNamedParam("fetchCSpecificationByAttIdExtId", new String[]{"attributeId","extractedList"},new Object[]{aid,extractedList});
List cSpecList=(List)this.baseDao.findByNamedQueryAndNamedParam(“fetchcsspecificationbyattidextid”,新字符串[]{“attributeId”,“extractedList”},新对象[]{aid,extractedList});

是否extractedList为空?试着先做一个空支票

List<CProductSpecifications> cSpecList=(List<CProductSpecifications>)this.baseDao.findByNamedQueryAndNamedParam("fetchCSpecificationByAttIdExtId", new String[]{"attributeId","extractedList"},new Object[]{aid,extractedList});