4 Replies Latest reply on Jan 4, 2002 2:19 PM by David Hickman

    Finder no such method exception

    David Hickman Newbie

      I am running 2.4.1a
      I have defined a finder method in jaws.xml (deployed as part of my bean jar file) ie:

      findByUsername
      username = {0}

      <read-ahead>true</read-ahead>

      where username is mapped to a field name ie:
      <cmp-field>
      <field-name>username</field-name>
      <column-name>USERNAME</column-name>
      <jdbc-type>VARCHAR</jdbc-type>
      <sql-type>VARCHAR(12)</sql-type>
      </cmp-field>
      however when I try to call it in the client ie:
      IndividualHome indHome = (IndividualHome)ctx.lookup("TMS/Individual");
      Individual ind = indHome.findByUsername( username.toUpperCase() );

      it gives me an exception for NoSuchMethodError.

      Any help would be appreciated.