Category "java"

Error "Cannot resolve symbol R" only in one file

When enabling View binding, I cannot reference the resource files in custom RecyclerView Adapter anymore. I get an error "cannot resolve symbol R" and it attemp

Flink schema evolution not working for broadcast state

I am using broadcast state pattern in flink where I am trying to connect the two streams, one stream being the control stream of Rules and other stream being st

Firebase android studio not inserting data correctly

This is the data being inserted the the correct one is the [email protected] while the incorrectly inserted ones are the ones with a:Name mAuth.createUserWithEmai

Firebase android studio not inserting data correctly

This is the data being inserted the the correct one is the [email protected] while the incorrectly inserted ones are the ones with a:Name mAuth.createUserWithEmai

POI XWPF insert content from another docx in a bookmark

APACHE POI XWPF problem: in a main .docx document I have a cell with a bookmark: <w:bookmarkStart w:id="8" w:name="PAR_1"/> <w:r> <w:

Spring AMQP - RabbitMQ connection is not created on application startup

I have a Spring Boot application and my goal is to declare queues, exchanges, and bindings on application startup. The application will produce messages to vari

Pages must fill the whole ViewPager2 (use match_parent) while i set it to match parent

I use viewPager2 in my app with custom adapter and in layout i use my viewpager2 in linearLayout. i set the height and width of my viewpager2 to matchParent, an

Gradle dependency on classpath but not dependency tree?

I am currently upgrading an app from a lower level of Spring to 5.3.15 (as well as other jars as needed) plus making the code compatible with Java 11. However,

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