1 Reply Latest reply on Jul 5, 2004 2:32 AM by Oleksiy Lubyanskyy

    Error for findAll( ) with EJBQLToSQL92Compiler on

    Andreas Newbie

      I think this is a bug in the EJBQLToSQL92Compiler:
      If there is a space character between the () in in the findAll() finder method, jboss3.2.5 will throw the following error at deployment time:

      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
       at java.lang.String.charAt(String.java:444)
       at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.java:305)

      So if you use:
       * @ejb.finder
       * signature="java.util.Collection findAll( )"
       * query="SELECT OBJECT(o) FROM WebOrder AS o"

      You will get the error described above, but then you wont if you use:
       * @ejb.finder
       * signature="java.util.Collection findAll()"
       * query="SELECT OBJECT(o) FROM WebOrder AS o"