Absolutely, the problem is the implementation of your PK's hash function!
Go to weblogic's ejb newsgroup and search for PrimaryKey and hashCode,
there's plenty of solutions given there already!
news://newsgroups.bea.com/weblogic.developer.interest.ejb
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Albert
Sent: Tuesday, August 01, 2000 6:17 AM
To: [EMAIL PROTECTED]
Subject: Finder Exception
Hi,
I wrote an CMP entity bean with composite primary key, I have
created a PK
class and use concatenation in HashCode method. Everything seemed to be ok
and I can deploy it in Weblogic Server 5.1, but when I ran my application, I
got the following finder exception :-
javax.ejb.FinderException: Exception excuting finder:
java.lang.NullPointerException
at
weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:160)
at
weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:528)
at
weblogic.ejb.internal.StatefulEJBCache.releaseEJBContext(StatefulEJBCache.ja
va:341)
at
sales.ItemModelPSWebLogic_CMP_RDBMS.finderEnumToEnum(ItemModelPSWebLogic_CMP
_RDBMS.java, Compiled Code)
at
sales.ItemModelPSWebLogic_CMP_RDBMS.findSalesMemo(ItemModelPSWebLogic_CMP_RD
BMS.java:452)
I think it's about the composite primary key cos when I changed it
to
single field primary key, the application worked fine. Can anyone help me??
Thanx in advance.
Albert
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".