Category "java"

Avoid timeout in Elasticsearch re-indexing in Java

Below code returned a timeout in client (Elasticsearch Client) when number of records are higher. CompletableFuture<BulkByScrollResponse> future = new Com

How to retrieve MySQL column content stored as mediumblob?

In a project that was passed on to me there is a MySQL database that is used to store lots of data. Each database has a table that contains lots of text snippet

Java font size changes from win 10 to win 11

We have a large Java application that looks fine with Win 10. When we test it on Win 11, about 1/2 the controls have a much smaller font than the others. This i

AWS DynamoDB What datatypes are supported by @DynamoDBDocument?

So, I am trying to annotation an attribute of a table as a @DynamoDBDocument to store the object in my table. I'm thinking the actual attribute datatype would b

Deserialize Avro from kafka as SpecificRecord Failing. Expecting type to be a PojoTypeInfo

I am using Flink v1.11.2 and Avro v1.10.1. I am trying to deserialize an Avro record as a Specific record from a Kafka topic, but for some reason keep getting t

#494 Target Sum LeetCode question using Recusion with Memoization

I came across the following question in LeetCode while studying stacks and I'm able to get the brute-force solution. There's a lot of videos + solutions on the

Heroku - Error during git push/deployment, The same version of this code has already been built

I have a problem deploying my springboot application to Heroku. After running git push heroku master, I am encountering the error below: [INFO] ----------------

Criteria API join with filter

So I am trying to replace the following native SQL with JPA Criteria Api: select CAT.* from CAT join OWNER.ID = CAT.OWNER_ID where OWNER.NAME = :ownerName or s

Is there a way to set bounding box of figure in PDFBox

I'm trying to create a PDF that's PAC3 compliant and I need to add images to the PDF. I was able add an image to the PDF but when I run the PDF in PAC 3. I get

How to edit the contents of an existing PDF programmatically in JAVA [closed]

Let's assume I have an existing pdf with a fixed header and footer and blank body like the below image And I have to add content to the body(

Java web application not binding with Heroku $PORT

I have made a Java web application and trying to host it on Heroku with a Dockerfile, CMD as : CMD ["java", "-Dserver.port=$PORT", "-jar", "/usr/local/lib/backe

post api pblm in backend

const newItem = { name, price, img, detail, email } fetch("http://localhost:5000/add", { method: "POST", header: { "content

Intellij and jar file: No Persistence provider for EntityManager named xxx

I use intellij to create a jar package, but it does not work correctly. After it is created and all the external library jar files are created as well, when I s

I am unable to use auto Image slider but not able to do so

I just wanted to use Auto image Slider, but after adding all the dependencies and other requirments like jitpack.io still I am unable to use sliderLayout of aut

Transform Stream

I have a GenericRecord stream with value deserialised using Avro, schema has name and age. KafkaSource<GenericRecord> source = KafkaSource.<GenericRec

The flutter app doesn't run with java.lang.AssertionError

An exception has occurred in the compiler (1.8.0_242-release). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.jav

Why method print() of my class CustomDateFormatter using with my custom spring annotation is never called?

I have a issue with creation of custom annotation in springboot application: I've got a form with few fields with datepicker. Dates must have to be parsed in 2

Why not firebase fields not getting updated?

I am trying to update my firebase database based on "aadhar" field but I am failing to do it so. I don't know where it is going wrong. Here is my activity code

Spring error "Bean named 'x' is expected to be of type 'y', but was actually of type [com.sun.proxy.$Proxy]"

I am trying to implement a DAO based authentication in an application using Spring Security. When I tried to log in to the application with a user I got this er

org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar failed: An API incompatibility was encountered while executing

my Software version sonarqube 7.0 maven: 3.6.3 jdk: 17 sonar-maven-plugin: 3.8.0.2131 when I run mvn --batch-mode clean verify org.sonarsource.scanner.maven:so