3 Replies Latest reply on Apr 28, 2003 1:43 PM by Tim Squires

    finder throwing ArrayIndexOutOfBoundsException

    Tim Squires Newbie

      JBoss 3.2.0

      I have a custom finder in a CMP Bean that is throwing a ArrayIndexOutOfBoundsException (see below for stack). Doe sanyone know why?

      jaws.xml snip:

      findByAttributeType
      <![CDATA[attribute.attribute_type_id = attribute_type.id and attribute_type.type = {1}]]>



      xdoclet snip
      * @ejb.finder
      * signature="java.util.Collection findByAttributeType(java.lang.String type)"
      * unchecked="true"
      * @jboss:finder-query name="findByAttributeType"
      * query="attribute.attribute_type_id = attribute_type.id and attribute_type.type = {1}"

      The query runs fine by hand through mysql console.

      14:12:55,578 ERROR [JDBCFinderCommand] Failed to create finder results
      java.lang.ArrayIndexOutOfBoundsException: 1
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand.setParameters(JDBCDefinedFinderCommand.java:271)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:175)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.java:114)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:200)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersistenceManager.java:292)
      at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:324)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntities(CachedConnectionInterceptor.java:323)

      Thanks for you help,
      Tim.