You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bval.apache.org by Spam Ilicious <il...@gmail.com> on 2024/07/15 09:44:11 UTC
Parameter validation on interfaces - Bean Validation 3.0
Hi,
I am currently updating our software stack to Jakarte EE 10 and ran into
some issues while updating to Bean Validation 3.0. Updating bval-jsr to
version 3.0.0 suddenly led to parameter validation on interfaces to fail.
When before @NotNull triggered a ConstraintViolationException, it seems
parameter values aren't checked anymore (leading to NPEs).
Is there anything I might have missed?
A little info on dependeies that might be relevant:
Java version. 17
DeltaSpike: 1.9.5 -> 2.0.0
OpenWebBeans: 2.0.27 -> 4.0.2
BVal: 2.0.0 -> 3.0.0
Any help is much appreciated!
Thanks
Charlie
Re: Parameter validation on interfaces - Bean Validation 3.0
Posted by Spam Ilicious <il...@gmail.com>.
Hey Markus,
sorry for the late reply. We actually figured out what the problem was,
turns out it boiled down to that issue:
https://issues.apache.org/jira/projects/BVAL/issues/BVAL-175
Fixed it by writing an extension that reintroduced the changes made in the
commit mentioned.
Thanks for your help!
Charlie
Am Fr., 19. Juli 2024 um 13:35 Uhr schrieb Markus Jung <ju...@apache.org>:
> Hey Charlie,
>
> the only thing I am aware of is
> https://issues.apache.org/jira/browse/BVAL-220 which might affect you
> since you are running Java 17. I suggest trying out BVal 3.0.1 as this is
> the first release that is actually tested against Java 17. I just released
> it to maven central, might take a couple hours to get synced.
> If the issue still persists with BVal 3.0.1 a small example to reproduce
> this would be awesome!
>
> Thanks
> Markus
>
> On 2024/07/15 09:44:11 Spam Ilicious wrote:
> > Hi,
> >
> > I am currently updating our software stack to Jakarte EE 10 and ran into
> > some issues while updating to Bean Validation 3.0. Updating bval-jsr to
> > version 3.0.0 suddenly led to parameter validation on interfaces to fail.
> > When before @NotNull triggered a ConstraintViolationException, it seems
> > parameter values aren't checked anymore (leading to NPEs).
> > Is there anything I might have missed?
> > A little info on dependeies that might be relevant:
> > Java version. 17
> > DeltaSpike: 1.9.5 -> 2.0.0
> > OpenWebBeans: 2.0.27 -> 4.0.2
> > BVal: 2.0.0 -> 3.0.0
> >
> > Any help is much appreciated!
> >
> > Thanks
> > Charlie
> >
>
Re: Parameter validation on interfaces - Bean Validation 3.0
Posted by Markus Jung <ju...@apache.org>.
Hey Charlie,
the only thing I am aware of is https://issues.apache.org/jira/browse/BVAL-220 which might affect you since you are running Java 17. I suggest trying out BVal 3.0.1 as this is the first release that is actually tested against Java 17. I just released it to maven central, might take a couple hours to get synced.
If the issue still persists with BVal 3.0.1 a small example to reproduce this would be awesome!
Thanks
Markus
On 2024/07/15 09:44:11 Spam Ilicious wrote:
> Hi,
>
> I am currently updating our software stack to Jakarte EE 10 and ran into
> some issues while updating to Bean Validation 3.0. Updating bval-jsr to
> version 3.0.0 suddenly led to parameter validation on interfaces to fail.
> When before @NotNull triggered a ConstraintViolationException, it seems
> parameter values aren't checked anymore (leading to NPEs).
> Is there anything I might have missed?
> A little info on dependeies that might be relevant:
> Java version. 17
> DeltaSpike: 1.9.5 -> 2.0.0
> OpenWebBeans: 2.0.27 -> 4.0.2
> BVal: 2.0.0 -> 3.0.0
>
> Any help is much appreciated!
>
> Thanks
> Charlie
>