[jboss-dev-forums] [JBoss Web Development] New message: "Jboss BMP problem"

Shivey Upadhyay do-not-reply at jboss.com
Tue Feb 9 06:01:44 EST 2010


JBoss development,

A new message was posted in the thread "Jboss BMP problem":

http://community.jboss.org/message/525024#525024

Author  : Shivey Upadhyay
Profile : http://community.jboss.org/people/Shivey

Message:
--------------------------------------------------------------

public interface HelloWorldHome extends javax.ejb.EJBHome{
 public void create() throws java.rmi.RemoteException, com.MyException;
}
--This is a BMP--
public class HelloWorldBean implements EntityBean{
----implemented methods----
public HelloWorldEntity ejbCreate() throws com.MyException{
 throw new MyException("This is explicitly thrown.")
}
}
package com;
public class MyException extends RuntimeException{
 --custom code to store message goes here-- 
}

Hi,
I am trying to run above BMP in JBoss, i want to get the message "This is explicitly thrown." at client, but my exception is not wrapped 
into Remote exception and the message that i get is like "java.lang.IllegalStateException Cannot obtain isMethod flag for....".
Is there any way i can send this specific runtime exception message to client.
 
Thanks in advance.
Shivey

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/525024#525024




More information about the jboss-dev-forums mailing list