1 Reply Latest reply on Dec 4, 2003 3:47 PM by rdb55

    Why does following EJBQL in JBoss failed?

    null null Newbie

      SELECT OBJECT(m) FROM Message AS m
      WHERE ( ?1 IS NULL)

      At deploytime JBoss said:

      Depends On Me: org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(m) FROM Message AS
      m
      WHERE ( ?1 IS NULL)'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "IS" at line 2, column
      12.
      Was expecting one of:
      ")" ...
      "+" ...
      "-" ...
      "*" ...
      "/" ...
      "NOT" ...
      "BETWEEN" ...
      )]

      I read the EJBQL-Reference but the grammar seems to allow something like that..

      What's wrong??