Category "java"

UTF-8 encoding java replacement with 3 hex character

My application is receiving data from an endpoint. I do some processing with the received data and insert it into the database. At some point I had a problem wi

Vaadin Grid - specific rows always on top

I have two classes, one named "Folder" and the second one "Item". I'm using an interface to show folders and items together in one Vaadin Grid. I wrote a custom

Construction Heuristic Phase slower since migration from 7.28 to 8.14

After migrating Optaplanner from version 7.28.0.FINAL to version 8.14.1.FINAL, the construction heuristic phase defined in the configuration as following : &l

How can i implement a Web Server in Android Studio (Java) and react to requests?

Is it possible to create a local web server in Java (Android Studio IDE) and send broadcasts containing e.g the parameter f (http://localhost:8888/?f=SOMEDATA)

Getting org.hibernate.HibernateException - Unable to get the default Bean Validation factory

I have a maven project throwing Bean Validation factory error, added below dependencies still issue has not got resolved. Using java 11. <dependency>

How to send Frame from openCV client to server

I am trying to send input from a capture card on a client to a server. I can get the capture card to display on the client, but I am having some trouble sending

Spring QuerydslPredicate - exception handling for bad types

I didn't find any proper solution for this so maybe you can assist. Basically issue is ultra simple I want to do some kind of "better looking" error handling wh

Java 7 Zip-JBinding Truncated zip file extracted from ISO

I am using below code (link to full code) to extract zip file which is inside iso file using 7-zip-JBinding. for (ISimpleInArchiveItem item : simpleInArchiv

How to convert nested objects into nested DTOs using ModelMapper?

I am facing issue when I am trying to use ModelMapper to convert nested java objects into nested DTO's. Getting null for child dto's in parent dto object. Follo

How to display the float value of a calculation in a text box?

I'm trying to display the 'Day time left' and 'Night time left' after doing a small calculation I want to be able to select any of the 3 packages from the combo

Log4j2 vulnerability and Lombok annotation @log4j2

We are using spring boot 2.1.5 and starter parent as pom dependency. Spring boot is using default logback for logging and we haven't explicitly switched to Log4

How to catch exceptions thrown from reactor?

I want to catch exceptions thrown from a flux, my code is like this: try { Flux.just("key1", "key2", "key3") .doOnNext(S

Unable to find /oauth/device/code Auth0 Java API

Is there an API to fetch the device code via Auth0 Java API, we use the following snippet in Go, the question is if there is a standard API or should we make a

Maven Eclipse - Child module not recognized as maven project

I'm working on a new maven multi module project on eclipse. The problem is, the child project is shown as a regular folder and not a maven folder. What's the pr

Activity Intent sometimes has null extra

I'm seeing a problem where an Activity crashes grabbing an Intent extra due to it being null despite not being able to identify anywhere we don't pass that extr

Compare two Lists and get the difference [duplicate]

I have two Lists which I get - one from xlsx file, the second one - by select from database @Component public class ReadExcelDemo implements C

Java Slick2D cmd output

Is there any way to disable automatic Slick2D info output to CMD window showing line INFO:Use Java PNG Loader = true every time it is used? Besides being pretty

I am accessing the Play Integrity API, and the received token is not in the same format as the api document

import com.google.android.gms.tasks.Task; ... // Receive the nonce from the secure server. String nonce = ... // Create an instance of a manager. IntegrityMan

Java selenium - timed out waiting for driver server to start

i need help , how to fix this bug , " timed out waiting for driver server to start " enter image description here i have tried many ways like changing google ve

Eclipse-Selenium-Extract the value from the table

I am relatively new to the Test Automation and in particular to the Selenium. I am using Selenium Web-driver, Eclipse. I can not extract the value from the colu