dear Chhabra,

no way.
        i have already mentioned that Whenever entity bean is failed to
insert the
        record itz giving NullPointerException only when i try to insert
invalid records.

        Thanx
        Purushotham




> -----Original Message-----
> From: Davender Chhabra [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 03, 2000 5:28 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: NullPointerException
>
> Just a silly thing to check!!!
>
> getUserEntityHome() is returning null?????
>
> -Davender Chhabra
>
> > The following code(sessionBean) giving java.lang.NullPointerException
> > whenever ui is null. i.e Whenever entity bean is failed to insert the
> record
> > it will return NullPointerException.
> > plz suggest something to overcome this problem.
> >
> >
> >
> >                         UserInfoEntityRemote ui =
> > getUserEntityHome().create(user);
> >                        if (ui == null)
> >                        {
> >                                tx.rollback();
> >                                return false;
> >                        }
> >                         else
> >                         {
> >                                tx.commit();
> >                                return true;
> >
> >                        }
> >
> >
> >
> > Thanx
> > Purushotham
>
> ==========================================================================
> =
> 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