Throwing InvalidKeyException in business mehtods cause RemoteException
----------------------------------------------------------------------
Key: JBAS-1591
URL: http://jira.jboss.com/jira/browse/JBAS-1591
Project: JBoss Application Server
Type: Bug
Components: EJBs
Versions: JBossAS-4.0.1 Final
Reporter: Richard C. L. Li
When I throw an instance of java.security.InvalidKeyException in a business
method of a stateless session bean. The remote interface will throw an
java.rmi.AccessException.
I have studied the EJB Specification 2.1 and cannot found any descriptions
about the this kind of Exception translation. By the general Exception
handling rule, an application exception an exception which is not direct or
indirect subclass of java.lang.RuntimeException and not direct or indirect
subclass of java.rmi.RemoteException. Therefore I think
java.security.InvalidKeyException should be counted as an application exception.
I have studied the security session of the EJB Spec 2.1 and there are no hints
about this kind of exception translation.
However, from the jboss source code, I figure out this exception translation is
intended to enforce. I think this is a bug that violates the EJB specification.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development