0 Replies Latest reply on Jan 3, 2003 2:44 PM by mekatoka

    Unexpected Token Error

    mekatoka Newbie

      Hi,
      --> I am using JBoss 3.0.2
      --> have succesfully deployed my beans
      --> client to server communication is happening

      But when a method in my session bean is calling a finder method on an entity bean i get the following error

      14:23:02,781 ERROR [STDERR] Caused by: javax.ejb.EJBException: Load failed; Caus
      edByException is:
      Unexpected token: FROM in statement [SELECT name,count FROM ENTITY WHERE
      (name='david') OR (name='mandy') OR (name='bush') OR (name='clinton') OR (name=
      'arun')]
      14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
      Command.execute(JDBCLoadEntityCommand.java:176)
      14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
      Command.execute(JDBCLoadEntityCommand.java:62)
      14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManag
      er.loadEntity(JDBCStoreManager.java:572)


      what might be the reason ?

      Thanks in advance

      Meka Toka