Category "java"

Is there any way to automate desktop GUI swing applications using java

I have a GUI which is not developed me and have to automate it to avoid some manual steps. Any idea how can we automate desktop GUI using java. I tried using AT

How to properly use JPA/Hibernate?

I'm trying to understand annotations better with JPA / Hibernate and SQL Server. I created a simple project: an abstract class named "Articles". Two classes inh

Android app crashes when activity is initialised from fragment [duplicate]

I am currently trying to create a calendar app in android studio. The app contains a calendar with different "Views" e.g. monthly view, weekly

Specify Kafka Connect connector plugin version

How does Kafka deal with multiple versions of the same connector plugin provided in the CLASSPATH? For example, let's say I put both mongo-kafka-1.0.0-all.jar a

JMS with Oracle AQ. How to change delay of JMS Message when it's already in the queue?

If is it possible change delay of JMS Message when it's already in the queue? When I send message via JMS, I set jmsMessage.setIntProperty("JMS_OracleDelay", 12

How to fix java.lang.IncompatibleClassChangeError: Implementing class with cxf

We are having an issue making a SOAP client call on tomcat 8 in a RedHat linux environment running openjdk version "1.8.0_201", while the same call works fine w

Write data in CSV with Java

I'm trying to write data in a new CSV generated automatically after reading and extracting my data. However, always write one record only and it hasn't got the

How to create a matrix with key and value in java

I have this table with these values I have this code in java import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;

How to write a query using multiple 'IN' or any other keywords in SQL so that the condition being applied will be based upon the order defined

I want to fetch records from the database as : select * from table where column1 IN (aa, bb , cc...) and column2 IN (34, 55, 66...) and column3 IN(df, fg, hh...

Java returns cannont invoke ScriptEngine error

I am running Java's ScriptEngine class to run to some code. I use IntelliJ with maven dependencies when I run the code it says Cannot invoke "javax.script.Scrip

Looping arraylist object from class value into array java

So I'm trying to insert the value from ArrayList specifically for object Days into one array of integer here is the value I iterate into the table I I've try i

Android studio: cannot access MenuHost class file for androidx.core.view.MenuHost not found

I've got an error while building my project. This is my error message: cannot access MenuHost class file for androidx.core.view.MenuHost not found. I didn't fin

How to return custom response on javax.json.bind.JsonbException (Helidon project)

I'm trying to return a custom http response(400 bad request) instead of http 500 server error when json payload is not valid. The problem is that when I use jav

How to use Map.computeIfAbsent() in a stream?

I have a fun puzzler. Say I have a list of String values: ["A", "B", "C"] Then I have to query another system for a Map<User, Long> of users with an attr

Gitlab CI/CD Spring boot Mysql sample Build and db connection successful but Junit test failing with Unknown database issue..! (DB exist)

Applying CI/CD With Spring Boot MySQL Gitlab I'm created very basic Spring boot crud application with MySQL, What I need to implement is Gitlab CI pipeline to a

How to convert grpc java proto "timestamp" to date?

Error in request.getProductexpirationdate() since its not "Date" in proto thats specified as "timestamp". Entity class has a "Date" but proto has no "Date" only

Jdeps Module java.annotation not found

I'm trying to create a minimal jre for Spring Boot microservices using jdeps and jlink, but I'm getting the following error when I get to the using jdeps part E

Gradle override subprojects property from CLI

I'm trying to override a setting in a certain project by using the command line in a Linux environment. I would like to avoid to change the build.gradle file. H

How can one execute Java code using Gatling load testing framework?

I am evaluating different load testing tools. After trying JMeter and having two exceptions when running and viewing the test result, I would like to give Gatli

Store redux data that can be accessible with swift and java

I want to rewrite my React Native application with Java for Android and Swift for iOS. The thing is, I don't want to lose application data so that the user has