This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Exception thrown from bean  is received as null in client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Exception thrown from bean  is received as null in client" Watch "Exception thrown from bean  is received as null in client" New topic
Author

Exception thrown from bean is received as null in client

selvas kumars
Ranch Hand

Joined: Jan 06, 2001
Posts: 115
Hi all,
i am throwing an Exception from the bean method and in the client i am receving it as null.
what might be the reason for this?
The exception which is thrown is BusinessException which extends Exception class.

The code snippet for BusinessException is as follows
class BusinessException extends Exception{
public BusinessException(String exp){
super(strMessage);
}
}

i am calling as
throw new BusinessException("Invalid data");
Thanks,
silva.
 
GeeCON Prague 2014
 
subject: Exception thrown from bean is received as null in client