Ask questions and see you at May, 3rd, 8.PM. CET: https://vimeo.com/event/154379
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
I have an JPA Entity with bean validation on it so it produces a ValidationConstraintException when something is wrong.
I have an EJB which does the entity handling and a REST api which calls the EJB.
When there is a validation issue I get the ValidationConstraintException wrapped in a RollbackException wrapped in a EJBException.
So I want to prevent wrapping. It can be done using the @applicationexception on my own exceptions but in the example above I cannot apply the annotation. I can also use the ejb-jar.xml to set the and I tried but this also seems to work only on my own exceptions which are defined in the EJB.
Is there a way to tell the system to not wrap the ValidationConstraintException?
I'm using payara btw