-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Parse error
PostPosted: Thu Apr 06, 2006 8:49 am 
Beginner
Beginner

Joined: Fri Sep 02, 2005 3:42 pm
Posts: 32
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 10:17 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Can tell us your hibernate version and the used HQL ?

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 21, 2006 11:23 pm 
Newbie

Joined: Fri Apr 21, 2006 10:32 pm
Posts: 3
I had the same problem recently and it was due to an error in the antlr version I was using (and a wrong query).
Try with antlr-2.7.5H3.jar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.