Hello,

        Thanks for your help, the error disappeared since we installed the WAS
5.0.2 fix pack. The WAS version we were previously using was 5.0.

Thanks & Regards,
Vikram Naik.

-----Original Message-----
From: Doru Sular [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 7:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Exception on invoking remove() on CMP EJB in WAS 5.

Hi,
Try to set cascadedelete flag for that bean in the deployment descriptor,
or, in the remove method for that bean iterate over related beans and call
remove method on their interfaces.

Hope this work, if not, sorry for the bad advise.
By
Doru

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED] On Behalf Of Vikram Naik
> Sent: Wednesday, November 26, 2003 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Exception on invoking remove() on CMP EJB in WAS 5.
>
>
> Hello,
>
> I have deployed an application on WAS 5.0 consisting of Local
> CMP EJB 2.0 beans. Also have implemented CMR for some EJB's,
> update and inserts work fine, but on invoking remove() method
> on the component interface of the ejb which have container
> managed relationships, I get following a nullpointer exception.
>
> I have checked with database constraints as well as the
> constraints on the EJB to RDB mapping everything is in place.
>
> Please help me to decipher this Error.
>
> The Exception stack is as specified below.
>
>
> java.lang.NullPointerException
>         at
> com.ibm.ws.ejbpersistence.dataaccess.DataAccessRequestImpl.exe
> cute(DataAcces
> sRequestImpl.java:66)
>         at
> com.ibm.ws.ejbpersistence.beanextensions.CBStatefulPersistor.e
> xecuteRemove(C
> BStatefulPersistor.java:297)
>         at
> com.ibm.ws.ejbpersistence.beanextensions.CBReadyState.ejbRemov
> e(CBReadyState
> .java:68)
>         at
> com.ibm.ws.ejbpersistence.beanextensions.CBStatefulPersistor.e
> jbRemove(CBSta
> tefulPersistor.java:152)
>         at
> com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanStatefulI
> nstanceExtensi
> onImpl.ejbRemove(ConcreteBeanStatefulInstanceExtensionImpl.java:172)
>         at
> se.ibs.dv.om.OrderProduct.ejb.ConcreteOrderProduct_c20dee4f.ej
> bRemove(Unknow
> n Source)
>         at
> com.ibm.ejs.container.EntityBeanO.remove(EntityBeanO.java:1329)
>         at
> com.ibm.ejs.container.EJSContainer.removeBean(EJSContainer.java:1922)
>         at
> com.ibm.ejs.container.EJSLocalWrapper.remove(EJSLocalWrapper.java:154)
>         at
> com.ibm.ws.ejbpersistence.associations.LinkManagerImpl.remove(
> LinkManagerImp
> l.java:98)
>
> ............
>
>
>
> Thanks & Regards,
> Vikram Naik
>
> ==============================================================
> =============
> 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".

Reply via email to