Category "java"

Getting an error while sending the "sendkeys" in appium server

In appium server , am trying to send the keys inside the text box , where am facing this trouble Call to 'sendKeys' failed [element.sendKeys("hello")] Error res

Java regex repetition not allowed inside lookbehind

I am looking for a way to split a string after every 3rd comma. I have found an old answer from 2013 Split a String at every 3rd comma in Java which I think is

I'm trying to make a function that takes a 2d array as a parameter and outputs a normal array containing every unique number, in java

The function needs to have a 2d array as a parameter and then return a normal array with all the unique numbers. If the 2d array is [ [1,1], [4,2] ] then it sh

How do I compare strings in Java?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals()

Trying to create dynamic ES Index facing java.lang.ClassNotFoundException: org.springframework.data.spel.ExpressionDependencies

Using <spring-boot.version>2.3.9.RELEASE</spring-boot.version> added following dependencies : <dependency> <groupId>org.springframew

How to configure WCAG2_1 in VeraPDF?

I'm trying to validate a PDF file with VeraPDF using WCAG2_1 as a validation methodology. If I change the methodology to another such as PDFA_4, everything work

How to use Kafka with SSL via logback appander?

I use this logback appender to send logs to Kafka: https://github.com/danielwegener/logback-kafka-appender When Kafka was PLAINTEXT everything worked correctly.

how to get MicroProfile REST Client annotation in ClientRequestFilter

My RestClient is annotated by a custom annotation and I want to get the annotation value in a ClientRequestFilter. Here is my MicroProfile RestClient: @Path("/g

How to create a timer on Button and save in SharedPreferences(android)

I want to create a button that after clicking this button will be not clickable for 1 min, but after restarting a program, this button is clickable cuz i didn't

SQS Message never gets deleted

We do use an SQS to receive notifications from S3, but for some reason we receive the exact same message again and again. Seems like the message never gets dele

Do a connection using EventSource from Android with HTTPS to Spring-Boot server (JAVA)

I have a spring-boot server which only accepts https requests, the point is that I need it to be able to communicate with the client (android) using SSE. I have

Develop a multi-threaded application. Don't use synchronized word [duplicate]

Free checkout. The fast food restaurant has several cash desks. Customers stand in line at a particular cash desk, but can move to another que

WatchService large number of directory (recursive)

I want to detect changes inside a directory, so I implement by using WatchService public class DirWatcher implements Runnable { private Path path; priv

TreeSet Sorting Order Confusion

I know that TreeSet in Java sort its elements in ascending order. For integer it would be 1, 2, 3, 4, 5, for String it would be alphabetical. However, what if I

Spring-batch flow / split after a step

I am building a spring-batch solution that contains the following process: step 1 : split a list into multiple lists step 2 : process each sub-list step 3 :

In java spring, how to best "change secret in production"?

I am currently creating a Java Spring application that works with the spring security JWT. Everywhere I look and read about the "secret string", it says should

Update recyclerview item from background thread after changing configuration

I have a RecyclerView in a Fragment. Also I have an AsyncTask which updates items of RecyclerView from background thread. The problem is when I rotate the devic

How to dynamically access multi level object Java 8

I have an API that returns a parent with its children, I need to implement that in java 8 to be able to return them as below: A -> has B as Child, and C as C

Using comparable in a method in the main method

I am trying to check the values of a comparable method and assign the 1 and -1 value to true and false. I made a simple if else statement that does just that b

Java/Spring: How to retrieve password from JBOSS vault

I am trying to modify out Java/Spring Framework web application to retrieve the Oracle database password from the JBOSS Password vault Currently, Our mvc-dispat