Hey Ingo,

> Hi,
> 
> > Hi,
> > 
> > in my EntityBean happens an Exception, were the Exception 
> object is null
> > (e.g. catch(Exception ex) ... ex == null). The code in my 
> ejbActivate
> > is:
> > 
> > <code>
> >  public void ejbActivate() throws RemoteException {
> >   System.out.println("[MandantBean] ejbActivate()");
> >   AdresseHome adresseHome;
> >   AdressePK key = null;

OK, you set key = null; so...

> >   try {
> >    // Adresse Exemplar holen
> >    key.Mandant = getNummer();             <== Here is the 
> mistake :-) I
> > have
> > to use EntityContexts PrimaryKewy ....
> 
> I have changed to:
> key.Mandant = ((MandantPK)ectx.getPrimaryKey()).Nummer;

...here you should get a NullPointerException because key == null and you
did not changed it to reference an object, shouldn't it ? Am I missing
something ? Did you post all relevant code ?

HTH,

Simon


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to