Category "java"

CodecNotFoundException while writing to Amazon Keyspaces

I am trying to write a Spark DF to AWS Keyspaces. Randomly some of the records are getting updated and some of the records are throwing this exception com.datas

How can I pass tags when starting a cucumber android run using Gradle?

I have a suite of cucumber android tests (they are instrumented tests) and I run them using gradlew connectedCheck. What I'm trying to do is run only certain ta

Elliptic Curve DSA on JavaCard - what else do I need to initialise?

I am trying to implement ECDSA on JavaCard. So far I have this code: Signature sig = Signature.getInstance(Signature.ALG_ECDSA_SHA_256, false); KeyPair key = ne

android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify

After upgrading to android 12, the application is not compiling. It shows "Manifest merger failed with multiple errors, see logs" Error showing in Merged mani

Error: Could not find or load main class - When running a JAR at the prompt

I'm looking all afternoon how I can run a JAR of a Spring Boot application I'm developing. Generated the JAR through the mvn clean package command. The JAR is g

Saving an AnimationDrawable object to a file

I am very new to android development and trying to make an application that will convert a video to GIf using MediaMetadataRetriever and AnimationDrawable. I am

How to display the states on Corda terminal

I am new to Corda and am designing a Cordap. I want to display the states onto the terminal based on some arguments passed during initiating the flow. My appro

How to get value from json using restassured

I have json and there is array of 'products'. { "data": [ { "contact_id": "...", "email": "...", "first_name": "...", "hash_campai

How do I mock a static void method (not with doNothing or invocation -> null) using Mockito.mockedStatic?

I have the following classes class FileDownloader { public static void downloadFile(String repoUrl, String filename) throws IOException { // Downloa

Java Socket.IO-client SEVERE: Task threw exception

I try to connect to Web Socket server by using Socket.IO-client Java First i tried this config: fun createSocket(): Socket { val options = IO.Options()

How to print the optimal route to get the max path sum in a matrix

Here is my code for finding the maximum weight in a n x m matrix. public static int[][] maxSum(int[][] matrix, int m, int n) { int[][] totalWeight =

Which Java class is compatible with python Pandas DataFrame when using DJL(Deep Java Library)?

I'm trying to import Python Tensorflow custom model to spring-boot using DJL Tensorflow, and the model gets Pandas DataFrame as both input and output. I'm wonde

Getting All Object attribut names reursively

is there any way to get all attribute names of an object Company recursively: ExpectedOutput id, age, address {street, zipCode}, employee {firstName, LastName,

"No Operation named [input] in the Graph" when using in a java programm a model from hub.KerasLayer with python and tensorflow 2.1.0

I trained a mobilnet_v2 tensorflow model using tf 2.1.0 and hub.KerasLayer with python and exported it in pb format with tf.keras.models.save_model. I loaded it

How to get the start_time of the last completed job in Spring Batch?

Suppose these are my job runs: job_id | job_status ------------------- 1 COMPLETED 2 COMPLETED 3 FAILED 4 COMPLETED 5 FAILED

Couldn't retrieve job because a required class was not found, even though previous triggers fired successfully

I have a CRON trigger defined with Quartz, which successfully fires several times and ends up in error state after some cycles, with the following message (clas

Java cant edit thread stopwatch timeout

Hey I created this code for timeout in my tcp communication, but after I run thread, I can't change the end time? any ideas? public class Timer extends Thread{

Databricks - spark-submit Error | org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType

Spark-submit in Databricks cluster.. is giving this error. I am using Spark 3.1.2 Scala 2.12 Springframeworkboot 2.6.3 However spark-submit is running good in m

unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)

I received this build error having updated my native android project to Android S (Pre release of android 12). Googling for the error threw up no valuable hits.

How can I set the complete page background for a Word page with Apache POI?

I have already searched all day today, but without success. First I created a new Word document and tried to set the background with //Blank Document XWPFD