Category "java"

Why does PIT fail to pick up my test class for my production class?

I am trying to make PIT run for a Spring/Maven-based Java project, but get strange results. My first runs show an overwhelming number of TIMED_OUTs for all sort

Spring drastically slows down score evaluation speed of Optaplanner solver

I have a following piece of code @SpringBootApplication public class ServerApplication { public static void main(String[] args) { SpringApplication.

Add to list elements Async in Java

I'm rather new to JAVA and have a problem similar to the one mentioned below, where I want to add elements to an array via async processing. However, the return

JWT token does not start with Bearer

i cant find a way to add the Bearer and on the localhost:8080 I get this This application has no explicit mapping for /error, so you are seeing this as a fallb

Is R2DBC only for Java applications?

Is the R2DBC specification only for Java applications? Because I only find Java examples on the Internet. And what about the thread-per-request problem? Doesn't

JAVA - Compare value in Excel file with files present in the folder

I have an excel file that I read through org.apache.poi, but I would like to read all the values ​​of column 1 and column 2. If the value in column

Adding logging for an object inside catch block

I want to handle exceptions in code in a way that during the processing of an object if an exception arises, then in the catch block I want to log the object th

"Repeats modules with scoped bindings or declarations .. with scopes: @javax.inject.Singleton" Dagger 2

I'm trying out the Hilt DI in my test project. I've the following module that's installed in SingletonComponent which in terms of Android is applicationComponen

PNG Image which received from c++ server, crashes on java android client

I'm developing android marine navigation client. The client should receive nautical chart images from c++ server. I'm sending data via socket. (from c++: Client

Change request body in ServerHttpRequestDecorator using AbstractGatewayFilterFactory - Webflux

Spring Boot Version: 2.5.1, Spring Cloud Version: 2020.0.3 Hello guys !!! I need your help ... My question is that I can't modify the request body in spring gat

Removing Variables

my work says to Remove the r, c and e variables from this how would I do this Rectangle r = new Rectangle(10 * iFrame, 10 * iFrame, 50, 50); r.draw(gcw); Ci

@Transactional on @Async methods in Spring Boot with shared object

I have a requirement where I have to save a lot of data into an Oracle DB. I want to use multithreading to speed things up. Everything is in a transaction. I ha

Intellij is not able to fetch maven artifacts in private repository

At work we have no direct connection to the internet. To fetch maven artifacts we need to use a local Nexus, which mirrors all of maven-central. I have a settin

Adding dependencies to existing project via Spring CLI

Is there any way to add dependencies to existing spring project using Spring CLI (for instance via shell)? I tried to looked for on this website docs.spring.io.

Eclipse 2020-06 + JDK 11, errors " Could not resolve module: org.eclipse.mylyn.commons.notifications.feed

I am developing a RCP Application with JDK11 and Eclipse 2020-06. I have a product file based on features. When I launch the product, I get some errors as below

How to pass parameter to a namedQuery from a camel route?

I have an application running camel on spring-boot. I want to pass a parameter retriesAllowed to a namedQuery from a camel route. namedQuery: @NamedQuery(name =

How to fix this HtmlUnit test giving errors

I have a HtmlUnit test on the attached code. When I run the code I get the following error:

Review of gitlab CI using yml

Hi I am using the following gitlab yml file for setting up my pipeline. The project is a maven Java project. But I am not able to run all the steps successfully

Java - Use PriorityQueue sort list but have empty list

This is my solution for leetcode 759. Employee Free Time, but it has index out of boundary issue that i don't understand. I got "index 0 out of bounds for lengt

Android Studio strings.xml: 'NBSP' suddenly appeared in my strings.xml files

I suddenly have the mention 'NBSP' in my strings.xml files, just before special characters (!, ?, ....) These 'NBSP' do not appear in my app when I run it. Als