昨天我运行了我的应用程序,它抛出了以下错误。
[7/2/14 3:39:37:228 CDT] 0000002e SystemErr R Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException:
>> SERVER (id=4773e3aa, host=was01) TRACE START:
>> java.rmi.RemoteException: ; nested exception is:
org.hibernate.QueryParameterException: could not locate named parameter [payeeName]
我检查了查询,它是正确的。
select count(distinct fci.commonEntitySK || fci.lobCode || adi.alternateID || fci.payeeCommonEntityTypeCode || adi.typeCode || fi.sortName ) FROM FCI fci, P p, AI ai, FI fi WHERE fci.commonEntitySK = p.commonEntity.commonEntitySK (+) AND fci.commonEntitySK = fi.commonEntitySK(+) AND ai.p.sysID(+) = p.sysID AND lower(fi.sortName) LIKE :payeeName
Query query = getSession().createQuery(finalQuery.toString());
if (StringUtils.isNotBlank(payeeName))
{
query.setParameter("payeeName", payeeName);
}
但在那之后,今天我检查并没有得到任何异常......
请提供一些线索以找出此异常的根本原因...