JSR commonly refers to Java Specification Requests, formal standards for the Java platform.
Questions tagged [jsr]
147 questions
1
vote
3 answers
Test @Valid annotation with SpringMVC Maven
I am working on the chapter 5 example of the book Spring in Action 4. When I am running the Test classes I found one of the @Valid test is not working, it appears as if the validation never occured(returned status code of 302 and view's name is…

fall
- 984
- 11
- 33
1
vote
0 answers
How to enable JSR 292 in JVM
I've added Hotswap agent to netbeans and while debugging I've seen the message:
Dynamic Code Evolution Server VM warning: JSR 292 is disabled in this JVM. Use -XX:+UnlockDiagnosticVMOptions -XX:+EnableInvokeDynamic to enable.
I've added the…

coder247
- 2,913
- 19
- 50
- 70
1
vote
0 answers
Find bluetooth device in web application using Java
Is this possible to detect bluetooth device in web application using java bluetooth library?
As currently I have one button "Detect Device" in jsp page, which use server device's bluetooth and find nearest bluetooth enable devices by using jsr-82…

niraj darji
- 339
- 3
- 12
1
vote
1 answer
JSR 352 Partitioned Chunk Processing
I am trying to run a chunk step (Reader - Processor - Writer) in Spring Batch in JSR 352 Mode. I wanted to know if partitioning creates a new instance of the batch Artifacts (MyItemReader) for every partition or are the artifacts stateful (i.e…

javauser1
- 15
- 4
1
vote
1 answer
Incrementing test data (mobile number) for load testing 1 million registrations
I am trying to load test a Register-Search application which will do as the name suggests for ~5 million mobile numbers. Will be using 100-500 threads with looping through a specific delay between each loop.
I have the functional test JMeter script…

Suhas Deshpande
- 183
- 2
- 3
- 15
1
vote
1 answer
Spring - validate input inside Controller against a bean
I have a controller that uses payload to perform some actions, but now I would like to validate it before performing any operations. The payload is converted to byte[] and then read into a class called AuthorizationServer, which has some validation…

Sasanka Panguluri
- 3,058
- 4
- 32
- 54
1
vote
1 answer
HTTP Status 500 - Handler processing failed; nested exception is java.lang.AbstractMethodError:
Please help me with learning the basics of Spring 3 MVC better, I was trying to learn about Spring JSR 303: Bean Validation and could not solve the below problem at all, I have spent over a day on this already :(
I want a simple validation to work…

Anwesha
- 27
- 1
- 2
- 8
1
vote
1 answer
does spring implements jsr 303 or it is a extended specification
I am confused that if spring validation just supports the jsr 303 or spring validation is a implementation of jsr 303 like hibernate-validator or apache-validator

vashishth
- 2,751
- 4
- 38
- 68
1
vote
0 answers
beans.xml mapping for a Custom Validation Annotation
I am writing a custom validation annotation. This involves creating a @interface annotation and an implementation of ConstraintValidator. For instance, the @interface could be defined as follows:
@Target( { METHOD, FIELD, ANNOTATION_TYPE…

lemonWorld
- 221
- 2
- 12
1
vote
2 answers
How to retrieve list of beansOfType(Class) without specifically using Spring ApplicationContext?
I'm trying more and more to design and build my applications such that they are framework agnostic. This means using JSR annotations instead of Spring annotations, JPA2 interfaces, etc. but I find myself having a lot of difficulty at times.
For…

Eric B.
- 23,425
- 50
- 169
- 316
1
vote
1 answer
How should HttpServletResponse.setHeader method do with null value?
How should HttpServletResponse.setHeader method do with null value as below:
response.setHeader("ETag", null);
While implementing Servlet interface, I am a little bit confused on this because the Java Servlet Specification looks not clear about…

npcode
- 1,370
- 1
- 14
- 29
1
vote
1 answer
JSR 303 - Validate a field if it is not null
I have a form which is filled in, and some of the fields are options. I want to apply validations on the information that was filled in but the optional fields should be validated only if there was something filled in, so if theses are not null. Did…

TheRock3t
- 628
- 9
- 22
1
vote
2 answers
What version of a JSR should a J2EE container implement?
Is it acceptable for a J2EE container to provide an implementation that complies with the public review version of a JSR, as opposed to the final draft (or even proposed final draft) ? I'm not sure on how to quantify/qualify the word 'acceptable' in…

Vineet Reynolds
- 76,006
- 17
- 150
- 174
1
vote
1 answer
what is the difference between jax-rpc(jsr224) and jax-ws(jsr101)
i just want to figure out how the two JSR difference, they are all used different way to implement the web service, one seems like using annotation, already included in jre1.6, the other is need to download some package axis, so i just think just…

john
- 297
- 2
- 9
1
vote
1 answer
Localization support in JSR validation API for messages upon failed validation
I am using spring 3.0.2 for developing a simple web based application like twitter. My server side validations are going good with JSR validation API, but i can't find any ways to internationalized messages in JSR validation API upon failed…

rohit
- 602
- 4
- 11
- 24