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

    EJBQL throws NoSuchMethodError after sw. from 3.2.2RC4 to ne

    tthiele

      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!

        • 1. Re: EJBQL throws NoSuchMethodError after sw. from 3.2.2RC4 t

          Which JVM do you use?

          • 2. Re: EJBQL throws NoSuchMethodError after sw. from 3.2.2RC4 t
            tthiele

             

            "tthiele" wrote:
            tlocal@ems-wks-001:/work/opt/jboss-3.2.2RC4_jetty-4.2.11/bin> $JAVA_HOME/bin/java -version
            java version "1.3.1_06"
            Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_06-b01)
            Java HotSpot(TM) Client VM (build 1.3.1_06-b01, mixed mode)


            • 3. Re: EJBQL throws NoSuchMethodError after sw. from 3.2.2RC4 t
              bauschulte

              Hallo,
              i have the same probleme.
              I change my jboss version from jboss-3.0.4_tomcat-4.1.12 to jboss 3.2.2 on Windows XP.
              I get the same error Message.
              My JDK Version 1.3.1_04 on windows xp. Should i change the jdk or the jboss Version! Have you solve the problem?
              My EAR-File runs on the Verson jboss-3.0.4_tomcat-4.1.12 fine (jdk1.3.0), when i change to jboss.3.22 i get the following error message:

              org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'select object(o) from organization
              o'; - nested throwable: (java.lang.NoSuchMethodError)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:45)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:53)

              • 4. Re: EJBQL throws NoSuchMethodError after sw. from 3.2.2RC4 t
                ianlinsdell

                I had this problem too a while ago.

                I tried everything, changing JBoss version, OS version, Database type and posted a question to this forum.

                I had not luck and no response.

                I had just about given up when I tried using JRE1.4 and then everything worked fine !

                Change to JRE 1.4 and I suspect your NoSuchMethodError will go away.

                Hope this helps