Category "java"

JFlex complaining about caret character

I'm trying to produce a simple standalone scanner with the use of JFlex. What I want to do now is to simply recognize the beginning of a line with the use of th

Cannot create queue from Websphere JMS API

I wanted to create IBM queues from REST endpoint as described in documentation https://www.ibm.com/docs/en/ibm-mq/9.1?topic=applications-creating-destinations-i

How to access incoming HTTP requests in X-Ray SegmentListener?

Issue I use AWS X-Ray SDK for Java to enable X-Ray tracing for my Spring Boot micro services. With following snippet I am able to attach a custom SegmentListene

Optional fields in Java DTO with validation constraint

I've created a DTO with some properties with validation constraint (like all the properties must be present in JSON Object). Now, I want to make that DTO in a w

Graalvm not found within Java application

I have an Apache Tomcat servlet in which I would like to run some other language - for this purpose, I would like to try to get Graalvm functionality working wi

cdi bean lack of value when accessed through public field

I have a configuration class, which I inject into another class. Configuration class looks as follows: @RequestScoped public class Configuration { @ConfigP

How to penalize gaps between days in OptaPlanner constraint stream?

I have a model where each Course has a list of available TimeSlots from which one TimeSlot gets selected by OptaPlanner. Each TimeSlot has a dayOfWeek property.

How do I repeat headers and footers fixed to top and bottom of document with CSS in iText 7 using pdfHTML converter?

When I use the following HTML+CSS to produce a table with header and footer it repeats the header and footer on each page when printing and when converting to P

ElasticsearchException invalid missing tagline - Opensearch

Currently trying to start my app but unable because of this exception being thrown when starting app Caused by: org.springframework.data.elasticsearch.Uncategor

Checking Dynamodb Exceptions in Cloudtrail

I am using AWS Java-SDK to query Dynamodb table and I get the following exception java.util.concurrent.CompletionException: software.amazon.awssdk.services.dyna

Convert of JSON to a java object and a list of java objects

I get this JSONObject response from an API { "meta": { "code": 200 }, "data": { "tracking": { "id": "lk46hwgbadfqcl2fyacyw00q", "c

Strange memory grow in temporaryLobs while fetching CLOB with oracle jdbc driver in java app

Goodday everyone. Faced strange OOM after switching from reading varchar field to clob from Oracle database in java application. (We are using oracle.jdbc.drive

Tensorflow - Edit image to print out location of bounding boxes?

I have an android application and I've integrated my own custom tensorflow lite model. I can print out the object category and probability score but I'm at a lo

Groovy script to get translations using Google Translate API gives java.lang.NoSuchMethodError

I am trying to write a Groovy script to get translations from Google Translate API (using an API key, stored in as the GOOGLE_API_KEY environment variable1) but

Hibernate : functionnally calling hibernate to recreate constraints

I have been deferring my hibernate DDL usage time after time, from create-drop, to update and now i'm using other tools for database migration, and, while still

Why am I Getting Null Pointer Exceptions in My Linked Lists?

Could someone check my code for why I'm getting NullPointerExceptions in various methods? I've been racking my brain and can't figure out what is wrong. I'm att

Postman Post Request column cannot be found error(JDBC/MYSQL/AWS)

I am working on an independent JDBC/Springboot project and I am having a lot of trouble actually posting any data from postman into MySQL. I have tried looking

how to auto-refresh AWS STS Temporary security credentials when it expires while accessing Amazon SQS?

I've spring boot app with QueueMessagingTemplate as client to access Amazon SQS using temporary security credentials(STS). Getting temp token using STS-AssumeRo

Stream file from S3 without downloading locally

Is it possible stream a zip file through a Java (spring boot) service from Amazon S3 without having to actually download the whole file in the service? For cont

How to initialize an entity which is represented by a Vaadin Grid's row?

I use Vaadin framework v23 for my project. A wanted to add a component column to one of my Grids, a number field. My Grid's rows are representing an entity from