Hy people,
I was testing my queries with hibernate and i got this error:
Code:
java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)V
at org.hibernate.hql.antlr.HqlBaseParser.fromClassOrOuterQueryPath(HqlBaseParser.java:1463)
at org.hibernate.hql.antlr.HqlBaseParser.fromRange(HqlBaseParser.java:1116)
at org.hibernate.hql.antlr.HqlBaseParser.fromClause(HqlBaseParser.java:981)
at org.hibernate.hql.antlr.HqlBaseParser.selectFrom(HqlBaseParser.java:705)
at org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:598)
at org.hibernate.hql.antlr.HqlBaseParser.selectStatement(HqlBaseParser.java:260)
at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:150)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:209)
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:421)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:382)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:285)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055)
at br.com.locaweb.qbex1.model.dao.impl.HibernateUtil.<clinit>(HibernateUtil.java:14)
at br.com.locaweb.qbex1.model.dao.impl.GenericDAO.getSession(GenericDAO.java:229)
at br.com.locaweb.qbex1.model.dao.impl.GenericDAO.save(GenericDAO.java:28)
at br.com.locaweb.qbex1.testes.DAO.GrupoDAOTest.testInsertGrupoAmplo(GrupoDAOTest.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
I don`t know what`s it? Everything was working fine and suddenly stopped. Anything helps me. Sorry about my bad english.
Alberto