Category "java"

How to convert nested objects into nested DTOs using ModelMapper?

I am facing issue when I am trying to use ModelMapper to convert nested java objects into nested DTO's. Getting null for child dto's in parent dto object. Follo

How to display the float value of a calculation in a text box?

I'm trying to display the 'Day time left' and 'Night time left' after doing a small calculation I want to be able to select any of the 3 packages from the combo

Log4j2 vulnerability and Lombok annotation @log4j2

We are using spring boot 2.1.5 and starter parent as pom dependency. Spring boot is using default logback for logging and we haven't explicitly switched to Log4

How to catch exceptions thrown from reactor?

I want to catch exceptions thrown from a flux, my code is like this: try { Flux.just("key1", "key2", "key3") .doOnNext(S

Unable to find /oauth/device/code Auth0 Java API

Is there an API to fetch the device code via Auth0 Java API, we use the following snippet in Go, the question is if there is a standard API or should we make a

Maven Eclipse - Child module not recognized as maven project

I'm working on a new maven multi module project on eclipse. The problem is, the child project is shown as a regular folder and not a maven folder. What's the pr

Activity Intent sometimes has null extra

I'm seeing a problem where an Activity crashes grabbing an Intent extra due to it being null despite not being able to identify anywhere we don't pass that extr

Compare two Lists and get the difference [duplicate]

I have two Lists which I get - one from xlsx file, the second one - by select from database @Component public class ReadExcelDemo implements C

Java Slick2D cmd output

Is there any way to disable automatic Slick2D info output to CMD window showing line INFO:Use Java PNG Loader = true every time it is used? Besides being pretty

I am accessing the Play Integrity API, and the received token is not in the same format as the api document

import com.google.android.gms.tasks.Task; ... // Receive the nonce from the secure server. String nonce = ... // Create an instance of a manager. IntegrityMan

Java selenium - timed out waiting for driver server to start

i need help , how to fix this bug , " timed out waiting for driver server to start " enter image description here i have tried many ways like changing google ve

Eclipse-Selenium-Extract the value from the table

I am relatively new to the Test Automation and in particular to the Selenium. I am using Selenium Web-driver, Eclipse. I can not extract the value from the colu

How to fix a null object reference on document snapshot

I have an program where the MainActivity display the name and the email of the user on top of the screen by using document snapshot that been stored in firestor

org.apache.commons.mail.util.MimeMessageParser never ends parsing

I have some code to parse incoming mails. I use org.apache.commons.mail.util.MimeMessageParser for this.The problem occurs in the following method: private Stri

Java selenium - timed out waiting for driver server to start

i need help , how to fix this bug , " timed out waiting for driver server to start " enter image description here i have tried many ways like changing google ve

How to parse date from year and quarter using java.time

I am trying to parse strings in the format of "<year> <quarter>" ("2022 1", "2022 2") into java.time.LocalDate objects. The closest related question

What is a NumberFormatException and how can I fix it?

Error Message: Exception in thread "main" java.lang.NumberFormatException: For input string: "Ace of Clubs" at java.lang.NumberFormatException.forInputStrin

Java queryForStream use cases

What are the functionalities in using Java queryForStream? I generally use jbdcTemplate.query to obtain data from a database. I'm trying to understand the speci

Difference between += and = 1+ in Java

Me and my friend have been working on a problem for school. We are traversing a graph with DFS and are counting the number of nodes in each given component. We

Why can't I declare object in my local class in Java?

I started learning programming recently. I know it can look meaningless, but I want to know reason why I can't declare my object in my local class. I can declar