Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remote client doesn´t catch the required exception

Status
Not open for further replies.

KLL

Programmer
Sep 23, 2002
4
0
0
ES

Hi all!

I´ve a WL5 server (EJB1.1) where are deployed some session stateless EJB´s. In the public methods can throw two kinds of exceptions: the required java.rmi.RemoteException; and my particular exception (UserNotFoundException). The last one is thrown when the user is not registered.

The UserNotFoundException extends java.lang.Exception.

I´ve got a client that must work with those EJB´s. If when it calls the EJB all is correct there´s no problem. But when a problem occurs and the EJB throw my particular exception then can be seen two situations:

When the client is local it catches UserNotFoundException. But when the client is remote it catches java.lang.NullPointerException. The protocol used is IIOP.

Why can´t my remote client catch the UserNotFoundException.

Thanx in regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top