0 Replies Latest reply on Apr 13, 2002 9:02 AM by pchar

    Error compiling ejbql in JBboss Beta2 (cvs HEAD)

    pchar Newbie

      Hi All,
      I get the follow error when I deploy to JBoss beta2 (cvs HEAD)
      the same beans works perfectly on JBoss beta1
      Can somebody know why?
      thank in advance

      Patrick

      14:48:46,659 INFO [EjbModule] Starting
      14:48:46,660 DEBUG [EjbModule] Application.start(), start container: org.jboss.ejb.StatelessSessionContainer@720434
      14:48:46,660 DEBUG [StatelessSessionContainer] Begin java:comp/env for EJB: PrimaryKeyGenerator
      14:48:46,661 DEBUG [StatelessSessionContainer] TCL: java.net.URLClassLoader@6580e1
      14:48:46,663 DEBUG [StatelessSessionContainer] End java:comp/env for EJB: PrimaryKeyGenerator
      14:48:46,713 DEBUG [ProxyFactory] Bound PrimaryKeyGenerator to PrimaryKeyGenerator
      14:48:46,714 DEBUG [CachedConnectionInterceptor] start called in CachedConnectionInterceptor
      14:48:46,714 DEBUG [EjbModule] Application.start(), start container: org.jboss.ejb.EntityContainer@323274
      14:48:46,715 DEBUG [EntityContainer] Begin java:comp/env for EJB: VatCodeBean
      14:48:46,715 DEBUG [EntityContainer] TCL: java.net.URLClassLoader@4ab854
      14:48:46,718 DEBUG [EntityContainer] End java:comp/env for EJB: VatCodeBean
      14:48:46,776 DEBUG [BaseLocalContainerInvoker] Bound Local VatCodeBean to local/VatCodeBean
      14:48:46,778 DEBUG [VatCodeBean] Table not create as requested: vatcode
      14:48:46,779 DEBUG [findByPrimaryKey] SQL: SELECT id FROM vatcode WHERE id=?
      14:48:46,781 DEBUG [VatCodeBean] Added findByPrimaryKey query command for local home interface
      14:48:46,784 DEBUG [findByPercentage] EJB-QL: SELECT OBJECT(o) FROM VatCodeBean o WHERE o.percentage=?1
      14:48:46,854 ERROR [EntityContainer] Exception in service lifecyle operation: start
      org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable is: org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "o.percentage" at line 1, column 45.
      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 bean query
      <!-- findByPercentage-->

      <query-method>
      <method-name>findByPercentage</method-name>
      <method-params>
      <method-param>java.math.BigDecimal</method-param>
      </method-params>
      </query-method>
      <ejb-ql>SELECT OBJECT(o) FROM VatCodeBean o WHERE o.percentage=?1</ejb-ql>