|
From: Michael E. M. <mm...@re...> - 2005-06-25 04:25:55
|
an odd looking exception appears when i load this named query:
<query
name="CreditAccountTransaction.setPendingAuthorizationToExpired"><![CDATA[
update CreditTransaction
set status = 'Expired',
updateTime = :time
where status = 'Pending'
and authorizationExpireTime < :time
]]>
</query>
[junit] org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory' defined in file
[/home/mmoores/rnwk/cvs/app/creditmgr2/test/config/../../config/data-access-springcontext.xml]:
Initialization of bean failed; nested exception is
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
[junit] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
[junit] at java.util.ArrayList.RangeCheck(ArrayList.java:547)
[junit] at java.util.ArrayList.get(ArrayList.java:322)
[junit] at
org.hibernate.hql.ast.HqlSqlWalker.postProcessUpdate(HqlSqlWalker.java:390)
[junit] at
org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:164)
[junit] at
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
[junit] at
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
[junit] at
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
[junit] at
org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
[junit] at
org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:388)
[junit] at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:291)
|