Category "java"

How to capture the field values in the csv file using bufferedreader

The csv file looks like this I'm trying to get the field values like name, it is the value after $$NAME$$ (there is a space after the identifier). How do I st

Forwarding message to Message Channel manually - Spring Integration

Am able to send the message successfully using the below from my FirstHandler messageChannel.send(MessageBuilder.withPayload(pa).build()); But, the flow is wait

Running Cucumber in Springboot with Maven in executable JAR

Hello fellow engineers! I have run into a problem when trying to create a FAT jar to execute the Cucumber tests. Initially, I have followed the guide to set up

SAX Feature Not Supported in Spring Boot 2.6.1

Spring boot 2.6.1 supports logback 1.2.7 I've added the following dependencies in project <dependency> <groupId>ch.qos.logback&l

Array Java Quotient

So I need help I'm trying to calculate the quotient of all the elements inside an array. I only have 2 pairs of code but I don't know if they will work. public

How to mock the forEach elements which is iterate over the minioclient collection?

I am using minioClient.listObjects to fetch all the objects from s3. It returns the iterable Result<Item>. Here I was iterating over these results. public

How to quickly convert java / json to Xtext langauge?

I am working on an app that processes incoming Json's and I want to easily extract the json data and convert it to a DSL language I'v created using Xtext. My go

java.lang.NullPointerException: Cannot invoke "java.lang.reflect.AccessibleObject.setAccessible(boolean)" because "ao" is null

I am doing Dynamic Web Project using JPA in Java 17. I have a class called UserEntity. In the first page I have a register button, which has the following funct

Entering an only alphanumeric string runs into a java.lang.IndexOutOfBoundsException but works like intended otherwise

I get an error when I try to type a password consisting only alphanumeric characters but loops the way I intended if I type symbols. This is my first time tryin

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