Category "java"

How to send message from "Activity" class to a customize layout

I am trying to develop a bluetooth app. I have a class called "ConnectionManagement" which implement the "connect/accept" and "read/write". The information i ge

Install OpenCV on Mac Catalina

I am trying to install OpenCV on my Mac using this tutorial: https://medium.com/macoclock/setting-up-mac-for-opencv-java-development-with-intellij-idea-fd2153eb

Pojo Conversion with HibernateMapping & Jaxb

I have two Pojo classes, one for hibernate mapping and one for jaxb. So I get a List<CarA> using Criteria.list() and I would like to transform it into a L

Getting "Couldn't find class" error in mule application 4.3.0 after deployment

I have created a Mule 4.3 application which invokes a non static Java method. The application is getting built and deployed successfully but I'm getting a "Coul

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