Category "java"

How to set up multiple HTTPS connections in Java

I'm using HTTPS to connect to web services. The problem is that I need to connect to 2 web services and then they have different certificates. In this class the

Java Stripe : How to Complete an "Incomplete" Payment

I'm using PaymentIntent to make a payment. I specify the customer that has all the billing info, but the payment is specified as "Incomplete", I checked this ST

In Java, how does BitSet get range works?

pls help me with below code snippet understanding /*package whatever //do not write package name here */ import java.io.*; import java.util.BitSet; class GFG {

Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: false] was not found in any of the following sources:

I have upgraded my Android Studio and after that I'm facing this error: Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: fals

javascript canceled request after 50 seconds

Describing of context: java app (running under wildfly) works under high workload and heap is almost filled. Because of that full GC runs often and this leads t

How to get response in Map in httpClient?

I'm making a request to my server, but the response is given in String, and I need to get data from there, for example, the if response: {"response":{"balance":

How to verify aadhar XML signature with the help of public key certificate in Java?

I am working on Aadhaar Paperless Offline e-kyc, trying to validate aadhaar XML signature using public key certificate. But I'm not sure is this the right way t

Apache Beam KinesisIO Java - Consume the data in a kinesis stream from where it left

First I want to say that am totally new to Beam world. I'm working on an Apache Beam focused task and my main data source is a Kinesis stream. In there, when I

how do i port my machine learning model from python to java web app?

so I've been developing some machine learning models using sklearn and tensorflow in python . and I want to integrate it into a java web app. so far I've been s

Exclude inner class fields using JsonInclude.Include.NON_DEFAULT

@JsonInclude(JsonInclude.Include.NON_DEFAULT) I have a nested class structure as follows: public class A{ String z; String y; float p; List<B>

Spring MVC Controller testing PUT

Trying to test my web tier (spring boot, spring mvc) with junit5 and mockito. All other tests on http methods (get, put, ...) are working fine but the update. F

How to make Java Mac App that doesn't require installing Java

I want to make a Mac Application using Java code I wrote, and I want to make it that the person using it doesn't require Java to be installed on their own compu

Getting error as char cannot be dereferenced in java

Getting char cannot be dereferenced error , while writing following code for(int i =1;i<=m;i++){ for(int j =1;j<=l;j++){ if(A.charAt(i-1).equa

Spring Boot and H2 Table Population Error: org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL

I am having trouble getting an H2 In Memory database to populate. The idea here to have the BuildingCode which is unique as a primary key and id. I get the foll

Randomise each element of String from inside? [duplicate]

I am trying to change the place of characters in a string. The first and last have to stay like they are. For example: String str = "String te

how to set JVM arguments with quota for a Managed Server started by Node Manager

I have a WebLogic domain with multiple Managed Servers. Everything runs on separated hosts. The managed servers are started by Node Manager. According to the Or

Issue with Spring batch metadata tables

I created the spring batch metadata tables using the following link in my own oracle database https://github.com/spring-projects/spring-batch/tree/main/spring-b

Caused by: java.net.SocketTimeoutException: Accept timed out

I am getting this error while running pyspark package in pycharm using python 3.9 using this below code. from pyspark.sql import SparkSession from pyspark.sql.t

Thymeleaf + spring save new object instead of update

I am asking for a hint. I searched the internet for a long time for a solution to the problem, but I'm already desperate. I would like the update operation to u

Java Spring Reactive, returning one Mono<..> from many multiple requests

[Java, Spring Reactive, MongoDB] I'm currently trying to learn Reactive programming by doing and I found a challenge. I have db object CategoryDB which looks li