Sorry if this is the wrong place to post this.

I'm developing a JAX-RS webservice endpoint, and I'm using BeanValidation to validate a bean sent as a method parameter to a POST method, like this:

public void save(@NotNull @Valid Customer customer) {
    // ... more code ....

Then I noticed a custom constraint I created was being executed twice within that bean.

Is this the default behavior?

Can constraints be executed more than once?

INFO: I'm using BeanValidation 2.0 with WildFly 16.

Thanks a lot.


Juliano Marques

Livre de vírus. www.avast.com.