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".

Reply via email to