[jboss-jira] [JBoss JIRA] (WFLY-2161) JBAS014356 exception not thrown for @Asyncronous EJB methods
James Livingston (JIRA)
jira-events at lists.jboss.org
Wed Sep 25 18:57:02 EDT 2013
James Livingston created WFLY-2161:
--------------------------------------
Summary: JBAS014356 exception not thrown for @Asyncronous EJB methods
Key: WFLY-2161
URL: https://issues.jboss.org/browse/WFLY-2161
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 8.0.0.Alpha4
Reporter: James Livingston
Assignee: jaikiran pai
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list