[jboss-jira] [JBoss JIRA] (WFLY-2161) JBAS014356 exception not thrown for @Asyncronous EJB methods

RH Bugzilla Integration (JIRA) issues at jboss.org
Sat Jun 28 11:32:34 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980246#comment-12980246 ] 

RH Bugzilla Integration commented on WFLY-2161:
-----------------------------------------------

mark yarborough <myarboro at redhat.com> changed the Status of [bug 1060734|https://bugzilla.redhat.com/show_bug.cgi?id=1060734] from VERIFIED to CLOSED

> JBAS014356 exception not thrown for @Asyncronous EJB methods
> ------------------------------------------------------------
>
>                 Key: WFLY-2161
>                 URL: https://issues.jboss.org/browse/WFLY-2161
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: James Livingston
>            Assignee: Stuart Douglas
>             Fix For: 8.0.0.CR1
>
>
> If you call an ejb method with default visibility (e.g. from a servlet in the same package), an EJBException with code JBAS014356 is thrown because the method is not public.
> If the method is annotated with @Asynchronous and returns void, the exception is not seen because the interceptor from AsyncFutureInterceptorFactory is used before NotBusinessMethodInterceptor, the exception is thrown in the worker thread instead.
> With a void return, the exception is silently dropped. With a Future<?> return, it will be set as the failure exception on the future rather than being thrown from the call.
> As per the forum reference we need to check the spec, but the validity of the business method should probably be checked before the handoff to the worker thread.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list