1 Reply Latest reply on May 11, 2005 5:49 AM by Piero Sartini

    hibernate problem? NoSuchMethodError: org.hibernate.hql.antl

    Piero Sartini Newbie

      I have some problems using the following code. the complete error is below. do i miss something? it seems like a hibernate problem but i am not sure ..

      i'm using jboss 4.0.2 and Preview 5.

       public List findByLastName(String lastName) {
       return manager.createQuery("from person p where p.lastname :lastName").setParameter("lastName", lastName).getResultList();
       }
      


      Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)V
       at org.hibernate.hql.antlr.HqlBaseParser.atom(HqlBaseParser.java:2891)
       at org.hibernate.hql.antlr.HqlBaseParser.unaryExpression(HqlBaseParser.java:2473)
       at org.hibernate.hql.antlr.HqlBaseParser.concatenation(HqlBaseParser.java:2553)
       at org.hibernate.hql.antlr.HqlBaseParser.multiplyExpression(HqlBaseParser.java:2498)
       at org.hibernate.hql.antlr.HqlBaseParser.additiveExpression(HqlBaseParser.java:468)
       at org.hibernate.hql.antlr.HqlBaseParser.relationalExpression(HqlBaseParser.java:1984)
       at org.hibernate.hql.antlr.HqlBaseParser.equalityExpression(HqlBaseParser.java:1847)
       at org.hibernate.hql.antlr.HqlBaseParser.negatedExpression(HqlBaseParser.java:1811)
       at org.hibernate.hql.antlr.HqlBaseParser.logicalAndExpression(HqlBaseParser.java:1729)
       at org.hibernate.hql.antlr.HqlBaseParser.logicalOrExpression(HqlBaseParser.java:1694)
       at org.hibernate.hql.antlr.HqlBaseParser.expression(HqlBaseParser.java:1573)
       at org.hibernate.hql.antlr.HqlBaseParser.logicalExpression(HqlBaseParser.java:1676)
       at org.hibernate.hql.antlr.HqlBaseParser.whereClause(HqlBaseParser.java:369)
       at org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:566)
       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.SessionImpl.getQueries(SessionImpl.java:824)
       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:782)
       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
       at org.jboss.ejb3.entity.QueryImpl.getResultList(QueryImpl.java:58)
       at
      
      de.lechner.test.DAOs.PersonDAOBean.findByLastName(PersonDAOBean.java:35)
      
       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 org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:77)
       at org.jboss.aspects.tx.TxSupport.invokeInOurTx(TxSupport.java:141)
       at org.jboss.aspects.tx.TxSupport$Required.serverInvoke(TxSupport.java:438)
       at org.jboss.aspects.tx.TxInterceptor.internalInvoke(TxInterceptor.java:112)
       at org.jboss.aspects.tx.TxInterceptor.invoke(TxInterceptor.java:60)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:72)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:36)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:80)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:90)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:165)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:74)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:325)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:201)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:259)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:327)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:147