Beginner |
|
Joined: Wed Feb 04, 2004 5:21 pm Posts: 37
|
I am in the process of converting from Hibernate2 to Hibernate3, and is trying to run my jUnit tests.
I apparently get a NoSuchFieldError when trying to query the PhoneModel table.
List models = session.createQuery("from PhoneModel p where p.userAgent=:ua").setString("ua",ph.getUserAgent()).list();
The exception was:
java.lang.NoSuchFieldError: tokenTypeToASTClassMap at org.hibernate.hql.antlr.HqlBaseParser.buildTokenTypeASTClassMap(HqlBaseParser.java:3871) at org.hibernate.hql.antlr.HqlBaseParser.<init>(HqlBaseParser.java:107) at org.hibernate.hql.antlr.HqlBaseParser.<init>(HqlBaseParser.java:112) at org.hibernate.hql.ast.HqlParser.<init>(HqlParser.java:47) at org.hibernate.hql.ast.HqlParser.getInstance(HqlParser.java:42) at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:202) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:127) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83) at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:414) at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:814) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:773) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) at
The field userAgent is indeed present in the config and java files. So what is it referring to ?
Henrik
|
|