0 Replies Latest reply on Mar 28, 2002 7:36 AM by Tim

    ArrayIndexOutOfBoundsException in beta2

    Tim Newbie

      <query-method>
      <method-name>ejbSelectMemberInterest</method-name>
      <method-params>
      Hi,

      I am getting an ArrayIndexOutOfBoundsException when trying to call the following ejb-ql statement. Any ideas?

      I am running JBoss-3.0.0beta2 (26th March).

      <method-param>java.lang.Integer</method-param>
      <method-param>ie.emuse.ichara.server.entity.InterestLocal</method-param>
      </method-params>
      </query-method>
      <ejb-ql>
      <![CDATA[
      SELECT DISTINCT OBJECT(mi)
      FROM MemberEJB AS m,
      IN( m.interests ) AS mi
      WHERE m.memberPk = ?1 AND mi.interest = ?2
      ]]>
      </ejb-ql>

      The method is:
      public abstract Set ejbSelectMemberInterest(Integer memberPk, InterestLocal interest) throws FinderException;

      It originally returned a MemberInterestLocal, but changing it to set had no affect.

      Error:
      java.lang.ArrayIndexOutOfBoundsException at ie.emuse.ichara.server.entity.MemberImpl$Proxy.ejbSelectMemberInterest(<generated>)

      Thanks,

      Tim