Category "java"

Adding a value to an empty dataTable results in javax.el.PropertyNotFoundException

I got a dataTable and I am trying to add entries to the backing ArrayList of the given table. SelectedStep is null after the component is loaded. All Getters an

How can I program a while loop that waits for my input in Android?

My question is simple. What method can I use to tell my program that a button is pressed? I'm trying some codelines but its not really working (I tryed with isP

What is the Compatible version of Spring-security with spring-4.3.0-release?

Which version of spring security is compatible with Spring-4.3.0-release. my jars are as follows spring-aop-4.3.0.RELEASE.jar spring-beans-4.3.0.RELEASE.jar s

Not able to connect to SFTP using jcraft JSch

I am trying to connect to SFTP location via ssh jump-host proxy using jcraft version 0.1.52. But getting "connection is closed by foreign host" exception in my

Hibernate 6: What is SQM?

In the Hibernate 6.0 Roadmap (https://github.com/hibernate/hibernate-orm/wiki/Roadmap6.0) SQM is mentioned as upcoming. What is SQM? In this roadmap the follo

Nested loop in Thymeleaf

I'm a newbie to Thymeleaf. I have two objects- Classroom & Student: each Classroom contains a List<Student> and I can have a list of classrooms: List

Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native

I'm using the JNA's com.sun.jna.NativeLibrary class in order to load the VLCJ native library. I'm working on an armv8(aarch x64)-based linux device. Below is my

Restructure JSON before deserializing with Jackson

We have a service which currently consumes JSON. We want to slightly restructure this JSON (move one property one level up) but also implement graceful migratio

Odd-Even sort Java using multithreading

I am new to this group, so I believe it is a possibility to get help here since I could not find any information about my question on Google. I am trying to imp

How to get the key by index in Hashtable?

I try to get the value of the key in a Hashtable based on the index position I provide, this is my hashtable: Hashtable<Integer, String> hash_table = new

Android/Java: How to open gallery photo in webview android from html ? "<input type="file" id="file" name="picture" multiple="">"? doesn't work

I created a button in html with the command <input type="file" id="file" name="picture" multiple=""> that allows me to choose a photo in the gallery or t

Spring Boot : Token authentication(bearer) in request headers in rest api when token also comes from calling another api

In my spring boot Application i have a scheduler which calls an API to generate token which expires in 15 min. Time of scheduler is also 15 min. please find bel

How to extract values from a String that cannot be converted to Json

While processing the DialogFlow Response object, I get the below given string as textPayload. If this is a Json string, I can easily convert it to a JSONObject

ElasticSearch - Failed to obtain node locks

I have a single node ElasticSearch Cluster in local. I am unable to start elasticsearch service. Getting this error: [bhatr@LRVCEM27547]~/elasticsearch-6.8.8/b

chip navigation bar animation not works

i used this GitHub library in my code for bottom navigation.chip navigation bar i tried to make it floating up after starting the program.but when run the progr

Intellij can't find java.net.http when compiling with Java 11

I'm trying to get one of my projects ready for Java 11 but for some reason Intellij can't find java.net.http. It isn't underlining it as not found in module-inf

AmazonsS3Client throws UnknownHostException if attempting to connect to a local service (MinIO)

In Short: Using AmazonS3Client to connect to a local instance of MinIO results in a UnknownHostException thrown because the url is resolved to http://{bucket_na

Pi4j to use java with raspberry Pi not working

I am honestly about to just give up, i've tried so many different possibilities, for multiple weeks now, almost a month, of multiple problems. I am a new-ish pr

Serenity BDD Hooks implementation returns error

I am trying to implement some hooks into the serenity BDD implementation with intellij. My hooks file looks like this: package steps; import org.openqa.seleniu

How to convert hex string to byte array in Java

I want to convert an hex string to byte array, I know these type of questions are already asked, I have tried their solution, But these solutions are not workin