Category "java"

Validating interim calls formed in Mono

I have a class that returns a Mono type collection, something like this and I want to add a test that verifies the interim calls that mono goes through in chain

How to tag a lambda in build.gradle file AWS Java sdk

I have a lambda function that is written in nodejs (using AWS nodejs SDK) and we are using gradle (build.gradle) to package and deploy that to AWS. Deployment i

Swing can't be found

I have this version of Java installed on a Linux Mint 20.3 Una : java 17.0.1 2021-10-19 LTS Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39) Java HotSp

Why println is being executed in this recursive piece of code?

In this code arrLength starts with four and then keeps being decremented until it reaches zero. At the moment it reaches zero it should not execute what is insi

Iterate and modify a JSONObject

I have a json blob as below: { "name": "ABC", "type": "School", "state": { "events" : [ { "event": "Session

Java REST api PATCH request

I have to modify java based old project(servlet , Gradle project) which was not integrated with any of Java framework. For a recent project integration requirem

Detect a key press in console

I want to execute a certain function when a user presses a key. This will be run in the console, and the code is in Java. How do I do this? I have almost zero k

Checking for Whether Both Expression Strings Contain the Variable

I had made a fully functioning method that would grab a variable string like x or var for the equation as so: // Equation Variable Getter public String getV

Add request query params in quarkus filter

I have a url like http://localhost:8080?scope=openid%20profile I want to transfer it to http://localhost:8080?scope=openid&scope=profile so that the followi

Rundeck Runtime issue

I am trying to upgrade Rundeck war file from rundeck-3.4.3-20210823.war to rundeck-4.1.0-20220420.war and getting SQL statement errors can some please help us f

how do i store maven dependencies inside docker image using a Dockerfile

so im making a spring boot application that im supposed to put in and run from a docker container, and i would like to build the whole image using a docker file

Repeatedly getting "PKIX path building failed" and "unable to find valid certification path to requested target"

I have been facing this annoying issue of certificate during mvn clean install execution. PS C:\Users\milan\service> mvn clean install [INFO] Scanning for pr

Need to convert file name based on date [closed]

We have a requirement to where the input file will be KYB_FX_SPOT_AUTO.20220327 where KYB_FX_SPOT_AUTO. would be a constant and 20220327 is dy

Android TV Leanback: Setting setOnHeaderClickedListener or setOnHeaderViewSelectedListener Breaks Normal Navigation

I'm hoping the wisdom of the crowd can help me solve a strange problem. I have a very basic ATV Leanback App using androidx.leanback.app.BrowseSupportFragment.

IntelliJ Ultimate 2019.3 find usages not working

if i use maven propertie dynamic generation version in multi-module, find usages not working. projecdt structure: -parent-project --api --service parent: <pr

IntelliJ Ultimate 2019.3 find usages not working

if i use maven propertie dynamic generation version in multi-module, find usages not working. projecdt structure: -parent-project --api --service parent: <pr

SQL executeUpdate() seems to commit data, but that is not the case. How can I find my error?

I curently work on few SQL queries (MSSQL 2O14), but only "SELECT" query works with executeQuery(). I had use execute() and executeUpdate() on "INSERT INTO" and

Can these regexes cause catastrophic backtracking? [duplicate]

I'm new to regexes. I am using these regexes throughout my android project. Can any of these cause the catastrophic backtracking? To check for

How can we write method to read integers from a Scanner stream?

My goal is to implement a method named add that receives a reference to a Scanner object associated with a stream of input consisting of integers only. The meth

Change a agSelectCellEditor drop down value using selenium

I am trying to access values in a drop down which when I inspect, nothing is been in element inspector. I confirmed with developer what type of drop down is tha