4 Replies Latest reply on Jan 16, 2004 9:40 PM by ianlinsdell

    EJBQL throws NoSuchMethodError after sw. from 3.2.2RC4 to ne

    Tilo Thiele Newbie

      Help please,

      in JBoss 3.2.2RC4 everything runs fine. After switching to production version or to 3.2.3 JBoss declines to deploy my CMP-Beans:

      org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(p) FROM EJBMail p WHERE p.userPK=?1
      '; - nested throwable: (java.lang.NoSuchMethodError)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:50)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:59)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:212)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:490)
      ... at java.lang.Thread.run(Thread.java:479)
      + nested throwable:
      java.lang.NoSuchMethodError
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:932)
      at org.jboss.ejb.plugins.cmp.ejbql.ASTSelect.jjtAccept(ASTSelect.java:25)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:487)
      at org.jboss.ejb.plugins.cmp.ejbql.ASTEJBQL.jjtAccept(ASTEJBQL.java:23)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.compileEJBQL(JDBCEJBQLCompiler.java:148)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:42)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:59)

      Note, my Bean EJBMail has a persisten field which is accessed by String getUserPK()/setUserPK(String v) and I use the same .ear and there are no JBoss specific .jar's in my .ear which can cause something weired like an IncompatibleClassChangeError.

      Is there anything special to consider when switching to 3.2.2+?

      All hints are welcome!