Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1665

EJB-QL compiler (parser) confused by "Order" abstract-schema

XMLWordPrintable

      Follow this forum "monologue":
      http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872960

      It seems that the JBoss EJB-QL parser/compiler gets confused by the use of "Order" as the abstract-schema. I would get the following error when trying query "SELECT COUNT(o) FROM Order o":
      org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT COUNT(o) FROM Order o'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "Order" at line 1, column 22.

      What I believe is happening is that JBoss mistankenly parses "Order" as the query keword ORDER. Initially I thought this was the fault of my query statement which I pulled out of the EJB2.1 Spec. I contacted the spec contact, and Linda DeMichiel replied to me noting that in fact "Order" should be OK for the abstract-schema and is only restriced in use as an identifier.

              olubyans@redhat.com Alexey Loubyansky
              msowka_jira Mike Sowka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: