|
From: Dmitriy K. <dko...@ru...> - 2005-06-25 12:34:55
|
Seems like a question for Hibernate folks. Dmitriy. Michael E. Moores wrote: > 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) > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |