tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Fernando Planella Gonzalez (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENEJB-926) Unchecked application exceptions are being wrapped in an EJBException
Date Mon, 20 Oct 2008 13:13:44 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luis Fernando Planella Gonzalez updated OPENEJB-926:
----------------------------------------------------

    Attachment: exception_test.tar.gz

> Unchecked application exceptions are being wrapped in an EJBException
> ---------------------------------------------------------------------
>
>                 Key: OPENEJB-926
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-926
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: Linux, i386, Java 1.6.0 (sun)
>            Reporter: Luis Fernando Planella Gonzalez
>            Priority: Critical
>         Attachments: exception_test.tar.gz
>
>
> When declaring an unchecked exception on the business interface of  a session bean, that
exception is being threated as a non-application exception.
> The EJB 3.0 specification says on section 14.1.1: "...An application exception may be
a subclass (direct or indirect) of java.lang.Exception (i.e., a
> "checked exception"), or an application exception class may be deļ¬ned as a subclass
of the java.lang.RuntimeException (an "unchecked exception")...", but only checked exceptions
are being handled correctly.
> On section 14.1.2, it states that "An application exception thrown by an enterprise bean
instance should be reported to the client precisely (i.e., the client gets the same exception)".
> Since my application is based on unchecked exceptions, and this is leading to not being
specification-compilant, I'm reporting this one as critical.
> Attached is a simple application that demonstrates the bug.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message