This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception thrown from bean is received as null in client
 
Similar Threads
Logging / Swallowing exceptions
Handling Runtime Exceptions and Fatal Checked Exceptions in the Client
Differentiate server down and no data found
RMI method invocation return value
How can i look up a EJB residing in different machine from client side?