JSR commonly refers to Java Specification Requests, formal standards for the Java platform.
Questions tagged [jsr]
147 questions
113
votes
6 answers
@Valid annotation is not validating the list of child objects
Main model classes are as follows :
public class UserAddressesForm {
@NotEmpty
private String firstName;
@NotEmpty
private String lastName;
private List addresses;
// setters and getters
}
public class…

tomasz-mer
- 3,753
- 10
- 50
- 69
98
votes
5 answers
What is JSR and what's its use?
What is the relevance of JSR and how does one optimize it for one's use?
I read something like jsr82 for Bluetooth and some other for other technical apps.
What's its relevance?

Yatin
- 2,969
- 9
- 34
- 68
53
votes
5 answers
JSR 303: How to Validate a Collection of annotated objects?
Is it possible to validate a collection of objects in JSR 303 - Jave Bean Validation where the collection itself does not have any annotations but the elements contained within do?
For example, is it possible for this to result in a constraint…

cam
- 681
- 1
- 6
- 7
41
votes
1 answer
What is the difference (or relation) between JLS, JSR and JEP?
JLS - Java Language
Specification
JSR - Java Specification
Requests.The
formal documents that describe proposed specifications and
technologies for adding to the Java platform.
JEP - JDK Enhancement Proposal
What is the difference (or relation)…

Kanad
- 1,008
- 1
- 11
- 14
38
votes
1 answer
jaxrs-api VS jsr311-api VS javax.ws.rs-api VS jersey-core VS jaxrs-ri
I have googled around quite a bit still am confused as to what each of the above exactly mean.
Here is my understanding of it:
jaxrs-api : contains only api. No implementation. But how is it different from JSR311
jsr311-api : JSR311 it is a…

Gadam
- 2,674
- 8
- 37
- 56
22
votes
3 answers
How do I validate that the @RequestParams are not empty?
I have a calculator service that gets the operation type, num1 and num2 from the user. I need to validate that the user actually inputs these values and doesn't just leave it blank.
@RequestMapping(value = "/calculate")
@ResponseBody
public…

Saakina
- 275
- 1
- 2
- 9
21
votes
3 answers
What is the difference between ConstraintViolationException and MethodArgumentNotValidException
When I am validating bean using @Valid annotation in javax.validation, for some objects I am getting ConstraintViolationException and for some I am getting a MethodArgumentNotValidException.
I understand that, if I validate anything in @ResponseBody…

JOHND
- 2,597
- 6
- 27
- 35
21
votes
1 answer
Are Project Coin's collection enhancements going to be in JDK8?
Initially Project Coin had enhanced support for collections e.g. list[3] instead of list.get(3) and map["hello"] = 27 instead of map.put("hello", 27) but they were not in jdk7. Are they going to be in jdk8? I could not find a definitive answer for…

pathikrit
- 32,469
- 37
- 142
- 221
20
votes
4 answers
Adding @NotNull or Pattern constraints on List
How can we ensure the individual strings inside a list are not null/blank or follow a specific pattern
@NotNull
List emailIds;
I also want to add a pattern
@Pattern("\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b.")
but I can live without…

Abhijeet Kushe
- 2,477
- 3
- 26
- 39
19
votes
3 answers
JSR-109 Web Services remove in Eclipse
In Eclipse's Project Explorer view there is a project named "JSR-109 Web Services" that can not be deleted or removed.
I did not create this project. It came to Project Explorer by itself.
How do I remove this "JSR-109 Web Services"?

ramazankul
- 452
- 1
- 4
- 14
13
votes
1 answer
Jetty WebSocket api vs the standard JSR 356 API
Jetty 9 supports both it's own Jetty Websocket API as well as the standard JSR 356 API, for what I assume are historical reasons (Jetty's API precedes the final JSR 356).
I've looked over the basic documentation of both APIs, as well as some…

Malt
- 28,965
- 9
- 65
- 105
12
votes
2 answers
JAX-RS in relation to Jersey and JSRs
I'm trying to get my head around some concepts in Java:
JSR(s): describe specifications, but carry no actual implementations. E.g. http://jsr311.java.net/ is the "home" for "Java™ API for RESTful Web Services". It serves as a common reference for…

Mads Mobæk
- 34,762
- 20
- 71
- 78
12
votes
2 answers
Alternative to Cypress EZ-USB FX CY3671
This is a pretty special question and I'm not sure if stackoverflow is the right platform to ask it but I try anyway...
I'm currently writing an implementation of JSR-80 (javax.usb) and just found out that there is a Test Compliance Kit available.…

kayahr
- 20,913
- 29
- 99
- 147
10
votes
1 answer
JSR: Specification for evaluation vs Specification for building an implementation
Could anyone, please, explain what is the difference between the two: Specification for evaluation vs Specification for building an implementation for any available JSR process, for example, JSR 299.
Sometimes this valuable source of the…

Aliaksandr Kazlou
- 3,221
- 6
- 28
- 34
9
votes
3 answers
Spring Boot JSR-303/349 configuration
In my Spring Boot 1.5.1 application I'm trying to configure support of JSR-303 / JSR-349 validation.
I have added a following annotations @NotNull @Size(min = 1) to my method:
@Service
@Transactional
public class DecisionDaoImpl extends BaseDao…

alexanoid
- 24,051
- 54
- 210
- 410