1 Reply Latest reply on Jun 5, 2003 6:59 PM by Adrian Brock

    Simple EJB-QL failing to deploy

    Tim Squires Newbie

      A ParseException is thrown when deploying a simple EJB-QL statement....

      Caused by: org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "o.refLon" at line 1, column 49.
      Was expecting one of:
      "NOT" ...
      "(" ...
      <COLLECTION_VALUED_PATH> ...
      <STRING_VALUED_PATH> ...
      "CONCAT" ...
      "SUBSTRING" ...
      <BOOLEAN_VALUED_PATH> ...
      <DATETIME_VALUED_PATH> ...
      <ENTITY_VALUED_PATH> ...
      <IDENTIFICATION_VARIABLE> ...
      <NUMERIC_VALUED_PATH> ...
      "LENGTH" ...
      "LOCATE" ...
      "ABS" ...
      "SQRT" ...
      "+" ...
      "-" ...
      <INTEGER_LITERAL> ...
      <FLOATING_POINT_LITERAL> ...
      <NUMERIC_VALUED_PARAMETER> ...

      The ejb-jar for this ql is

      <![CDATA[Long reference]]>
      <query-method>
      <method-name>findByRefLon</method-name>
      <method-params>
      <method-param>java.math.BigDecimal</method-param>
      </method-params>
      </query-method>
      <result-type-mapping>Local</result-type-mapping>
      <ejb-ql><![CDATA[SELECT DISTINCT OBJECT(o) FROM CpnRef o WHERE o.refLon = ?1]]></ejb-ql>


      I read somwhere, once-upon-a-time that Jboss 3.x does not support EJB-QL finders with a BigDecimal reference. Is this right, do I have to do through all my code or is ther another problem?

      Thanks,
      Tim.