-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application exceptions should not be wrapped in EJBException #6573
Comments
Where is your If your Thanks, |
This is the structure:
I attached the trace requested, and there's no "Application Exception map contents:" in it. Thank you! |
Unfortunately the trace point for the application exception map isn't currently called (we'll have to get that fixed), but I can tell that liberty is locating the ejb-jar.xml, I just cannot tell what is being read from it. Also I haven't been able to recreate this problem, so I must be missing something that is important to your scenario. Here is how I'd like to proceed:
Thanks, |
Here's Thanks, |
The problem you are seeing is with the
This will at least allow you to work around the issue. In my recreate attempt I had not thrown a subclass of RuntimeException, but RuntimeException itself. Switching to a subclass, I am able to recreate the problem, and verify setting I'm marking this with |
Thank you for this great support and the great app server! |
Hi! I think I found an issue in OpenLiberty handling of
EJBException
. I have this rule in myejb-jar.xml
:With that, I expect all runtime exceptions thrown by EJBs not being wrapped in
javax.ejb.EJBException
.I have also a
@Stateless
bean throwing such exception:My JAX-RS resource
@Injects
this EJB and, when the exception is thrown, I expect to see a 404 response (due to jax-rs handling ofNotFoundException
). That works fine in Payara 5, but in OpenLiberty 18.0.0.4 it gives me HTTP 500 because the rule inejb-jar.xml
is ignored:The text was updated successfully, but these errors were encountered: