JSR commonly refers to Java Specification Requests, formal standards for the Java platform.
Questions tagged [jsr]
147 questions
1
vote
2 answers
Most promising new JSRs?
Fairly recently I have picked up a very useful web service framework, Jersey (JAX-RS aka jsr-311; and its rock start implementation), and a nifty validation library Hibernate Validator ("Bean Validation API", jsr-303).
Both of these jsrs are…

StaxMan
- 113,358
- 34
- 211
- 239
1
vote
3 answers
Does anyone know how to open a JSR-82 application in Windows Vista?
I have a host device that connects to anything running JSR-82. The problem is that I don't have a mobile device that runs JSR-82 applications. I wish I could simply connect to my host device within windows. Is this possible?
(I am currently running…

Phobis
- 7,524
- 10
- 47
- 76
1
vote
0 answers
Retreive the Quantity used to define a Unit in Java Unit of Measurement API (JSR 385)
I'm using JSR-385 with the RI (Indriya). I have a Quantity q1 and defined as such:
QuantityFormat qf = ServiceProvider.current().getFormatService().getQuantityFormat();
Quantity q1 = qf.parse("10 J"); // Here strings are constants but they are…

zambotn
- 735
- 1
- 7
- 20
1
vote
1 answer
what should and where should i download for work with jsr-303 in spring?
what should i download for working with validation in spring.know annotations are unknown in my classes for example in blow code:
public String register2( @Valid User user , BindingResult br)
{
if(br.hasErrors())
{
…

matina.Kapur
- 43
- 1
- 5
1
vote
1 answer
How to find out which JSRs are used in a jar file?
I want to know if a jar file can run properly on my phone, I know JSRs that my phone supports,but I don't know which JSRs are used in a jar,so can anyone suggest me any tool?

Ted
- 1,481
- 1
- 17
- 18
1
vote
0 answers
Create custom Kotlin annotation based on other annotation
I have a DTO, which is validated by Spring JSR validation, like this:
data class CreateDeckRequest(
@field:NotBlank(message = "should not be blank!")
val name: String?,
@field:NotBlank(message = "should not be blank!")
val techDesc:…

skidabee
- 11
- 1
1
vote
1 answer
batch application (JSR 352)
I'm beginner with development of batch and I want to create my first batch
so I create a maven project on intellij my problem with the xml file
is the tag not recognized by intellij and say 'element job must be declared'
I think the problem is…

Hicham Cheikhaoui
- 45
- 6
1
vote
0 answers
EJB Core Contracts and Requirements - v3.1 (JSR-318 - 2009) to v3.2 (JSR-345 - 2013) Programming Restrictions Change
In section 21.2.2 Programming Restrictions of JSR-318 there is text as follows
The enterprise bean must not attempt to create a class loader; obtain the current class loader; set the context class loader; set security manager; create a new security…

searchengine27
- 1,449
- 11
- 26
1
vote
0 answers
What does “withdrawn” status mean for a JSR that was final?
I've read What does "withdrawn" status mean for a JSR? and as far as I've understood it's about the case when withdrawal was done before finalizing.
How about the case when it was final and is used widely,
like…

Alex Martian
- 3,423
- 7
- 36
- 71
1
vote
1 answer
JSR223 and its Cryptic exceptions
Is there a way to get better error messages from JSR 223? I'm trying to use it to run Groovy scripts and whenever there is a problem in the execution, I get exceptions that are truly crypic. Here is an example:
…

Muesli
- 31
- 1
- 3
1
vote
1 answer
Is spring Form validation different than JSR bean validation
I have seen that annotation like @NotNull etc are given in JSR Specifications.
Now as i am currently studying Spring MVC and building website in that
so i am confused are they same or different and have they any relation with spring MVC.
because for…
John
1
vote
1 answer
Java UOM java.lang.NoSuchFieldError: ONE
I'm experiencing some version confusion with Java Units of Measurement (UOM). I have a
import tec.uom.se.AbstractUnit;
public class Class0 {
/**
* Is an {@link AbstractUnit} in order to be serializable as {@code @Basic}
* with JPA.
…

Kalle Richter
- 8,008
- 26
- 77
- 177
1
vote
1 answer
Getting message from property file in Spring boot
I am trying to read my error messages from a property file but I encounter this error message
org.springframework.context.NoSuchMessageException: No message found under code 'error.id.invalid' for locale 'en'.
I am using ResourceBundleMessageSource…

masterfly
- 861
- 4
- 11
- 24
1
vote
0 answers
How to do REST POST request validation for ID - (Entity ID should be null in this case even if they inject in request)
How to validate the below situation,
Entity:
@Entity
@Table
public class Idea {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@Column
@Size(min=1,max=10)
private String title;
}
POST REQ: (Valid Input) - Properly…

Satscreate
- 495
- 12
- 38
1
vote
0 answers
JSR 330 javax.inject.Provider didn't inject org.springframework.core.env.Environment in @Autowired field
I was using Provider to create prototype beans(with @Autowired fields) in a for loop
But it seems, Provider is not playing well with Spring Framework
Whenever I try to execute Provider get() method, the Spring Autowired Environment Bean is not…

Crystal Paladin
- 579
- 5
- 26