aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: Exception thrown from bean is received as null in client