Category "java"

Data binding: Missing required view with ID

I create an app using binding and I get an error that I couldn't solve. The error is java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exam

What will be the output of this code by unit testing with mockito and Junit

public ResponseEntity<Object> getAirlines() { LOGGER.info("getAirlines: Getting all airlines."); return new ResponseEntity<>(this.airlineSer

Selenium Webdriver + Java - Eclipse: java.lang.NoClassDefFoundError

I installed JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (This version for windows x64: Java SE Developmen

Packaging jar file with source code using Maven so breakpoints can be used in Eclipse

Requirements I am refactoring a Java application and am trying to move code out of a war file and into a jar file so it can be used across many different web ap

Remove special character from a column in dataframe

I am trying to remove a special character (å) from a column in a dataframe. My data looks like: ClientID,PatientID AR0001å,DH_HL704221157198295_9

Ldap ssl with dynamic truststore

I am trying to connect to a ldap over ssl. I have generated a .jks file with the certificate entry. I do not want to import this to cacerts rather want to acces

How to add an entry with an Integer value into Map<String, ?>

I have to place an integer value into the map below. Map<String,?> map map.put("key",2000); When I run the above code I'm getting the following error: in

Retryrequest() of httpClient method not invoked during Rest API call

The Rest API responds with 429 error code and the retry has to trigger 3 times .But the control isn't reaching the retryrequestethod of HttpRequestretryHandler

How to call custom Java method from Gradle

Please, what is the most convenient way how to call a Java method within Gradle build script? This method contain functionality I want to use during build; a pi

Rest template.exchange returns response as junk while doing a GET request to a server running REST service in dot net core

} Even i have setted the stringHttpMessageConverter to charset utf-8 but didnt work. My code like //restTemplate.getMessageConverters().add(0, new StringHtt

How to create Dataframe form presto db table of Array Data type column using spark

I am trying to create spark Dataframe from presto db table which has few columns as Array DataType. I tried multiple ways but I am getting same exception java.s

Remove a Row from recycle view and Firebase

Hi I am trying to remove A row from a recycle view and once it is removed from the recycle view it should also be removed from the firebase realtime database. I

PulseAudio: Unable to Connect: Connection refused in LibGDX

I got this error in IntelliJ while trying to set up LibGDX. I'm running PopOS (Ubuntu-based). Any help? ALSA lib ../../pulse/pulse.c:242:(pulse_connect) PulseAu

Java - storing Pojo with Path field in MongoDB

I'm using mongo-java-driver to store POJOs in MongoDB and so far I've had no issues, with doing just this: CodecProvider pojoCodecProvider = PojoCodecProvider.b

Broken CheckBoxes in RecyclerView

I am currently learning Android studio Java coding, and I got trouble. I created Recyclerview using cardView and added checkbox to cardView. If I create new obj

Spring Cloud Gateway - How To Modify Response Body In Post Filter

So far, I've not seen any solutions that is working for me. I've tried this and this. Here is my custom filter: @Component public class TestFilter implements Gl

My custom validation annotation is not working in Spring Boot

i have created an annotation that has features such as checking if the entered string is null or at the assigned value.But the annotation doesn't work. I don't

How to do a bulk update in Firestore

I'm using Cloud Firestore and have a collection of documents. For each document in the collection I would like to update one of the fields. Using a transactio

Hibernate JPA error when inherited form other class

I am trying to have a abstract common class for all my entity. Here is my Entity class and abstract class:- @Entity @MappedSuperclass @Table(name="TBL_EMPLOYEE

java 8 stream for double loop and change the value in first loop

i have nested loop to loop and change the first list based on condition below. this works fine. its like if cardNumber in firstList same or found in secondList,