5 Replies Latest reply on Nov 16, 2005 1:15 PM by Nat Gross

    Why does this simple ejb-ql cause Jboss4.0.3 to complain LEX

    Nat Gross Newbie

      Hi;
      Please point out the error in the seemingly simple query. Jboss 4.0.3 will not deploy this jar file due to the the following ejb-ql:

      <ejb-ql>[CDATA[SELECT OBJECT(qqq) FROM Pq as qqq WHERE qqq.timeStart < "2005-01-01"]]</ejb-ql>

      And a partial trace upon deployment is:
      20:50:53,695 INFO [STDOUT] org.jboss.ejb.plugins.cmp.ejbql.TokenMgrError: Lexical error at line 1, column 57. Encountered: "\"" (34), after : ""
      20:50:53,697 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParserTokenManager.getNextToken(EJBQLParserTokenManager.java:1775)
      20:50:53,697 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.getToken(EJBQLParser.java:4199)
      20:50:53,697 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.jj_3R_12(EJBQLParser.java:3193)
      20:50:53,697 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.jj_3_2(EJBQLParser.java:3228)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.jj_2_2(EJBQLParser.java:2793)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.ConditionalPrimary(EJBQLParser.java:820)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.ConditionalTest(EJBQLParser.java:789)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.ConditionalFactor(EJBQLParser.java:766)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.WhereConditionalTerm(EJBQLParser.java:613)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.WhereExpression(EJBQLParser.java:568)
      20:50:53,698 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.WhereClause(EJBQLParser.java:532)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.EJBQL(EJBQLParser.java:117)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.EJBQLParser.parse(EJBQLParser.java:65)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.EJBQLToSQL92Compiler.compileEJBQL(EJBQLToSQL92Compiler.java:96)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc2.EJBQLQueryCommand.<init>(EJBQLQueryCommand.java:34)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc2.QueryFactory.init(QueryFactory.java:101)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc2.JDBCStoreManager2.startStoreManager(JDBCStoreManager2.java:441)
      20:50:53,699 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc2.JDBCStoreManager2.start(JDBCStoreManager2.java:187)
      20:50:53,700 INFO [STDOUT] at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
      

      Thank you much.
      -nat