-
Bug
-
Resolution: Done
-
Major
-
None
-
None
If I'm using @InterceptorBinding a thrown Exception out of an EJB marked with @ApplicationException dont reach the client. Instead of the @ApplicationException I get a java.lang.reflect.UndeclaredThrowableException.
I've attached a minimal example.
My client-main-program looks like this:
Bar.java
public static void main(final String[] args) throws NamingException { final InitialContext context = new InitialContext(); context.lookup("StatefulTestBean/remote"); try { statefulTest.throwApplicationError(); } catch (final Exception e) { System.out.println(e); } }
The excepted output would be:
error.AppError
but its:
java.lang.reflect.UndeclaredThrowableException
If you comment out the annotation @InterceptorAnnotation in the StatefulTestBean.java and redeploy the application then everything is fine - you get the expetced AppError-Exception.
- is blocked by
-
CDI-115 Interceptor.intercept() must throw exceptions
- Closed