Questions tagged [jsr380]
9 questions
25
votes
3 answers
bean validation not working with kotlin (JSR 380)
so first of all i could not think of a better title for this question so i'm open for changes.
I am trying to validate a bean using the bean validation mechanism (JSR-380) with spring boot.
So i got a controller like…

Tommy Schmidt
- 1,224
- 1
- 16
- 30
5
votes
2 answers
How validate method parameters are NotNull by default in spring method validation?
Here is example about method validation. So check method paramerter as not null I have to write the follolwing:
import org.springframework.validation.annotation.Validated
@Validated
public class SomeClass {
public void myMethod(@NotNull Object…

Cherry
- 31,309
- 66
- 224
- 364
4
votes
0 answers
javax/el/ELUtil javax.el.ELManager.getExpressionFactory
I am using Java Bean Validation jsr 380 that works perfectly in Tomcat,but in Jboss 6,i get this Error:
java.lang.IllegalAccessError: javax/el/ELUtil
javax.el.ELManager.getExpressionFactory
I added ressources below:

rbaha
- 140
- 1
- 11
2
votes
2 answers
spring/hibernate validation -> error message is not passed to caller?
I am using org.springframework.boot:spring-boot-starter-validation:2.7.0(which in turn uses hibernate validator) to validate user input to rest controller.
I am using Spring Boot Web Starter (2.7.0) based project with @RestController annotation
My…

samshers
- 1
- 6
- 37
- 84
2
votes
1 answer
Bean validation @Positive directive is not working on Integer @PathVariable
I'm trying to validate a controller method (REST Api resource) Integer parameter with @Positive bean validation annotation, but nothing happens.
Java:
Java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build…

MCR
- 77
- 1
- 5
1
vote
0 answers
Concurrent bean validation of container objects (e.g. List)
Context:
Microservice that has exposed REST API and handles input requests in JSON format sequentially. Handled request is deserialized, validated and put into Kafka topic for futher processing.
Given example of class to be validated:
//…

etric
- 83
- 6
0
votes
0 answers
How do I use EL to evaluate the length of an array in a (JSR 380) constraint message?
I have a constraint on which I want to use EL to tune the message to the circumstances. Dependent on the length of an array, I want to show a different message. However, I'm having trouble getting the length of that array.
What am I doing…

SQB
- 3,926
- 2
- 28
- 49
0
votes
1 answer
Does Jersey Extension for Bean Validation supports Bean Validation 2.0 (JSR 380)
I am working with WebSphere Liberty 19.0.0.2 with webProfile-8.0 feature which supports jaxrs-2.1 and beanValidation-2.0. For better support for MutiPart streaming I am using Jersey as JAX-RS implementation instead of liberty's default Apache…

Rakesh Prajapati
- 1,078
- 8
- 17
0
votes
1 answer
Java Bean Validation 2.0 Hibernate Validator - Executable JAR with external XML-Configuration
Context
I'm developing a stand-alone application that reads input-data from a csv-file.
Until now I've used a self-written class to perform input validation,
and the method used for validating a single record from the input file was triggered…

William
- 55
- 1
- 6