Category "java"

Error sending fetch request (sessionId=1175648978, epoch=189) to node 53: org.apache.kafka.common.errors.DisconnectException

We have a topic with 100 partitions and the load is millions of records per hour. We ran into the problem whenever we deploy a new version of stream-processor

Take a txt file and Insert to tableview (JavaFX)

I try to insert to tableview from txt file, but I couldn't do it. This is my txt file. aa.txt (It contains int A, int B, int F) 0 0 0 1 0 1 0 1 0 1 0 0 Th

No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor

When i try to navigate to an endpoint i get the following error Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyIntercep

matching List in any order when mocking method behavior with Mockito

I have a test using Mockito that has a very strange behavior : it works in debug but fails when running normally. After some investigation, I realized it's beca

Linux MCP decompile.sh?

I'm using Ubuntu and I have the following problem, when I want to decompile Minecraft (with decompile.sh) I get the following error: SyntaxError: Missing parent

Removing just one Row in table - SpringBoot & Java & Thymeleaf

New to Spring-boot and Java and Thymeleaf...Trying to make it so the trash button deletes only one row in this table. Right now it if any trash button is clicke

Producer program will not recreate an address in Artemis once automatically deleted

Now that I managed to get the address to auto delete (based on this question) I cannot figure out what is preventing my producer from recreating the address. Wh

How to get only those objects whose subarrays in the arrays match the requested one with SQL and Hibernate?

I have Project objects that contain arrays of Tags (for example, Backend, Frontend, Sales, Marketing). The user sets the desired parameters, such as Backend and

Adding a value to an empty dataTable results in javax.el.PropertyNotFoundException

I got a dataTable and I am trying to add entries to the backing ArrayList of the given table. SelectedStep is null after the component is loaded. All Getters an

How can I program a while loop that waits for my input in Android?

My question is simple. What method can I use to tell my program that a button is pressed? I'm trying some codelines but its not really working (I tryed with isP

What is the Compatible version of Spring-security with spring-4.3.0-release?

Which version of spring security is compatible with Spring-4.3.0-release. my jars are as follows spring-aop-4.3.0.RELEASE.jar spring-beans-4.3.0.RELEASE.jar s

Not able to connect to SFTP using jcraft JSch

I am trying to connect to SFTP location via ssh jump-host proxy using jcraft version 0.1.52. But getting "connection is closed by foreign host" exception in my

Hibernate 6: What is SQM?

In the Hibernate 6.0 Roadmap (https://github.com/hibernate/hibernate-orm/wiki/Roadmap6.0) SQM is mentioned as upcoming. What is SQM? In this roadmap the follo

Nested loop in Thymeleaf

I'm a newbie to Thymeleaf. I have two objects- Classroom & Student: each Classroom contains a List<Student> and I can have a list of classrooms: List

Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native

I'm using the JNA's com.sun.jna.NativeLibrary class in order to load the VLCJ native library. I'm working on an armv8(aarch x64)-based linux device. Below is my

Restructure JSON before deserializing with Jackson

We have a service which currently consumes JSON. We want to slightly restructure this JSON (move one property one level up) but also implement graceful migratio

Odd-Even sort Java using multithreading

I am new to this group, so I believe it is a possibility to get help here since I could not find any information about my question on Google. I am trying to imp

How to get the key by index in Hashtable?

I try to get the value of the key in a Hashtable based on the index position I provide, this is my hashtable: Hashtable<Integer, String> hash_table = new

Android/Java: How to open gallery photo in webview android from html ? "<input type="file" id="file" name="picture" multiple="">"? doesn't work

I created a button in html with the command <input type="file" id="file" name="picture" multiple=""> that allows me to choose a photo in the gallery or t

Spring Boot : Token authentication(bearer) in request headers in rest api when token also comes from calling another api

In my spring boot Application i have a scheduler which calls an API to generate token which expires in 15 min. Time of scheduler is also 15 min. please find bel