On Sat, 17 Feb 2001, you wrote:
> Hi,
> I have to validate the user's Login Id and Password. To do that I am calling
> a finder method in my Member entity bean, called findByMemberIdAndPwd which
> takes the id and password as parameters. Well, this method is supposed to
> throw a FinderException if it doesn't find a matching entry for the given id
> and password. This not happening! No exception of any kind is generated. The
> JDBC driver just shows 0 rows returned by the query. Someone please help me
> out. What could be the reson for no exception being generated???
> I am using JBOSS 2.0 FINAL + TOMCAT(Embedded) + ORACLE 8.1.5. Jboss+Tomcat
> on Win NT 4.0 machine and Oracle running on Linux.
> -Prince

This is in fact the documented behaviour for finder methods.  The only method
which throws any exception when it can't find a match is findByPrimaryKey,
which throws a NoSuchEntityException (a subclass of FinderException). 
Otherwise, CMP finders just return an empty collection.  This is in the jboss
doco, but I can't tell you where, since I don't have web access right now.

What makes you think it should throw a FinderException?

Tom


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to