0 Replies Latest reply on Oct 29, 2002 12:51 PM by Dobri

    ParseException and BigDecimal

    Dobri Newbie

      hi, everybody!

      I have a little problem.
      I can't deploy because of the following simple query :


      <query-method>
      <method-name>findAllCompanyOktabitDealers</method-name>
      <method-params />
      </query-method>
      <jboss-ql><![CDATA[
      SELECT OBJECT(cd) FROM CompanyDealerList cd
      WHERE cd.dealerRank = 3
      ]]></jboss-ql>



      the cmp-field dealerRank is of type BigDecimal.

      During the deployment i am receiving an exception :

      org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.Pa
      rseException: Encountered "3" at line 2, column 92.
      Was expecting one of:
      <VALUE_CLASS_VALUED_PARAMETER> ...
      <VALUE_CLASS_VALUED_PATH> ...
      )
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.(JDBCJBossQLQuery.java:46)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createJBossQLQuery(JDBCCommandFactory.java:54)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:203)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:369)


      Thank you in advance!