Category "java"

Generate deterministic Namespace based md5 UUID from a string in java and ruby

I am trying to create a deterministic UUID in java to generate same UUID as we have in our ruby codebase but unable to do so and need help. #ruby code using uui

Can double checked locking be abstracted/simplified?

My company uses double checked locking all over the place in our code. Because it is so pervasive - and so verbose - I was wondering if there is a good way to a

Maven dependency commanted jars are generated in war file

I'm trying to generate the war file , war generated successfully but when i decompress and check the jars inside lib , the commented Maven dependencies also app

How to return ArrayList from intent

I have a code that pass an arraylist to another intent, how can i return the value of updated arraylist back to the main intent ? Array list in main intent code

Why are images distorted after compressing image streams in PDF manually?

I am creating an application which converts Images to PDFs. It also has a feature which compresses the already created PDFs. Both features are working. But the

The function "isControlDown()" for an event is CTRL+ALT instead of CTRL in Javafx

So i would like to use CTRL+Z to undo something in my project, So as I have seen online I have done it like this: gridgame.setOnKeyPressed(event -> {

I am receiving a syntax error on "reimbursement_resolver" in the string line for index 5. My DAO package is set up correctly, yet this still occurs

@Override public Reimbursement updateReimbursement(Reimbursement r) { Connection c = cs.getConnection(); String sql = "UPDATE reimbursement " +

StackOverflowError when connection to aurora using mariadb java client

When connecting to an aurora db using the mariadb java client (version 2.7.5) i am getting this error (I only put the first few lines because the entire stack i

Selenium DevTools should log ALL but only logs ERROR and VERBOSE, how come?

I'm currently working on a Selenium project and we've just updated to the most recent version of Selenium. Now I wanted to output the result of my console.log()

Spring cloud loadbalancer - Feign + SimpleDiscoveryClient with healthcheck/retry

I'm struggling to switch from Ribbon to Spring Cloud Loadbalancer after upgrading spring cloud versions. Setting up the SimpleDiscoveryClient with Feign was eas

Multiple errors when importing Gradle project

I wanted to read the source code of a java project, so I cloned the project into a directory, and opened it in VSCode. The project used gradle as a dependency m

Unable to add view to a window with TYPE_PHONE params android

I am trying to create a floating view which should appear on top of everything but notification panel and settings app hide my view I tried to use WindowManager

Unable to add view to a window with TYPE_PHONE params android

I am trying to create a floating view which should appear on top of everything but notification panel and settings app hide my view I tried to use WindowManager

Converting a class with java.lang.Object into Uni Mutiny returns null in API

I have a quarkus app that has a POST api returning a Uni . The structure of Test class class Test { String name; Object data; } I am passing the below as d

How can i turn on screen at android 11?

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) { setShowWhenLocked(true) setTurnScreenOn(true) } else { window.addFlags( Win

flink cluster with zookeeper HA always shutdown: [RECEIVED SIGNAL 15: SIGTERM]

Environment: flink1.14.4 standalone application mode in kubernetes according to official steps: flink cluster: https://nightlies.apache.org/flink/flink-docs-rel

JOOQ JsonbValue in where()

Working on trying to convert the following Postgres Query into Jooq. I would love to implement this with JOOQ's features instead of just copying the SQL in. Ult

SQLiteDatabase.insert() and SQLiteDatabase.execSQL("insert into ...") doesn't work

I'm working on an Android application in Java. In my application I need, among other things, to store an address in a database. My address is stored in a table

Snowflake JDBC database metadata not returning getImportedKeys

I have Java code that extracts metadata from a JDBC connection. One of the calls is to extract the imported keys. The database has the RI created, but is disa

How to add items to array of objects using loops

I've got a multiple student objects I want to write into with a CSV file containing their details. I've set each row of the CSV file to an array then was going