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;
  try {
   // Adresse Exemplar holen
   key.Mandant = getNummer();             <== Here is the mistake :-) I
have
to use EntityContexts PrimaryKewy ....
   key.Nummer = 0;
   adresseHome = getAdresseHome();
   adresse = adresseHome.findByPrimaryKey(key);
  } catch(NamingException nex) {
   System.err.println("[MandantBean] Naming: " + nex.getMessage());
   throw new RemoteException("Naming: " + nex.getMessage());
  } catch(FinderException fex) {
   System.err.println("[MandantBean] Finder: " + fex.getMessage());
   throw new RemoteException("Finder: " + fex.getMessage());
  } catch(Exception ex) {                    <== Here I have got null in
ex
   System.err.println("[MandantBean] " + ex.getMessage());
   throw new RemoteException(ex.getMessage());
  }
 }
</code>


CU

---
Ingo Bruell
OBL GmbH ([EMAIL PROTECTED])
Hude (Oldenburg)
Germany
CU

-- 
Sent through GMX FreeMail - http://www.gmx.net



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

Reply via email to