Questions tagged [jsr]

JSR commonly refers to Java Specification Requests, formal standards for the Java platform.

Java Specification Requests

147 questions
0
votes
1 answer

Where can I download the jar file for the datasync API?

I want to use javax.microedition.datasync in my MIDlet application to synchronize data of my mobile phone with a computer. The problem is that I don't know where to find the library used by the JSR-230. So if someone knows where to get the library…
pheromix
  • 18,213
  • 29
  • 88
  • 158
0
votes
0 answers

JSR Batch- How to process multiple records at the same time in processor?

I have a file to parse and process records from. It is working fine as line-by-line (parsing one record at a time).My requirement is I want to store the data present in first record while processing the next record. For example: 001 784 45 6267…
Alicia
  • 1
0
votes
1 answer

Scala script engine not initialized when starting java -jar file. javax.script.ScriptException: Failed to compile ctx

i am trying to compile scala code in runtime in java programm. I am using jsr232 api and my code looks like: ScriptEngineManager manager=new ScriptEngineManager(); Scripted engine = (Scripted)…
evgrot
  • 94
  • 1
  • 4
0
votes
1 answer

How to programatically trigger javax validations in a POJO class

I have a spring boot project in which I'm facing a data validation issue while doing a post request. Problem While doing a post request I'm mapping the request body to a POJO which does not have any javax validations in itself, but the class has…
0
votes
1 answer

How to utilize jeemanagement-1.1 performance statistics in openliberty

We're migration a legacy software from WebSphere traditional to OpenLiberty. Just recently we have been extracting Performance Data based on the jeemanagement specification which says: JSR77.6.1 Performance Data Framework The Performance Data…
dag
  • 1,133
  • 12
  • 25
0
votes
1 answer

JMeter: Connect to PostGresSQL in JSR using groovy and then compare values from multiple tables in DB with API response

Sorry for the long post, but I really need some guidance here. I need to compare values from an API response with the values from multiple tables in the DB. Currently, I am doing it as follows: Use a JDBC Connect Configuration to connect to…
0
votes
2 answers

Single Instance File Storage with JAVA

I was storing some files based on a checksum but I found a flaw that 2 checksums can be identical sometimes. I always try looking for API instead of reinventing the wheel, but I can't find anything. I know theres the JSR 268 and JackRabbit as a…
javaNoober
  • 1,338
  • 2
  • 17
  • 43
0
votes
0 answers

JSR Bigdecimal Validation is not working with @Digits

Hi I am trying to validate integer and precision part for one column. Its not validating at all against Bigdecimal value. My Database is Oracle. Its validating if i am changing the data type to String . @Column(name =…
VKP
  • 589
  • 1
  • 8
  • 34
0
votes
0 answers

Execute custom annotation only if JSR validation fails

I am looking for a sample code where a field is annotated with multiple validation annotations (JSR and custom). My requirement is that if validation for one annotation fails, the other annotations should not be triggered. @NotNull @Size(min=2,…
0
votes
0 answers

How to access field value in a JSR message with spring boot 2?

I would like to customize my error message in the following way: Assume following declaration of a class Person: @Size(min=10, max=250, message="{size.name}") private String name; Within the declared error message in ValidationMessages.properties I…
0
votes
0 answers

Aspect for Rabbit MQ listener

My RMQ listener: @RabbitListener( bindings = @QueueBinding( value = @Queue, exchange = @Exchange( value = "${rabbitmq.exchange.sales-exchange.name}", type = "${rabbitmq.exchange.sales-exchange.type}", …
0
votes
0 answers

Getting 415 Unsupported Media Type when trying to send request body in text/plain

I have an API which accepts both json and text as request body. @Path("submitObjects") @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN}) @Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN}) public List
0
votes
1 answer

Pluggable Type Checkers and Checkers framework, is really needed all this setup?

I am trying to understand how Checker Framework implements Pluggable Type Checkers. By reading the documentation, Checker Framework (Maven) I see a lot of setup involved, and looks to me either outdated or not quite mantained. As far as I read,…
Whimusical
  • 6,401
  • 11
  • 62
  • 105
0
votes
1 answer

Why does Groovy compiler reject the dependency JSR308 Type Annotations Compiler?

I have been struggling to understand why groovyc does not want to compile my code for awhile and I finally narrowed it down to it disliking the dependency JSR308 Type Annotations Compiler, which uses as one of its package names…
0
votes
1 answer

Where can I find detailed description of the JSR for the Java Enterprise edition 7 with explanation and details?

I searched the JSR website, but it's pretty random there. I could not make out much. Thanks, Sid
Sid
  • 4,893
  • 14
  • 55
  • 110