Category "java"

"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

react-native-notifications Notification opened when app is opened from app tray (Android only)

I am using react-native-notifications version 4.2.4 on React Native 0.64.1. I have also tried on react-native-notifications version 4.3.1 on React Native 0.67.

Trying to compare todays date to given date from HTML

I'm trying to compare dates as i take input from user using date in html and send it to servlet to validate it or know if it's today's date this is my trial and

Why the app doesn't change to the language I already saved after close

I have some issues with changing the language in the app. I do not know why it is not working, there is no error, checked the log all clear. I used the followin

Java log parsing with logstash grok

This is my sample java log I tried to parse using Logstash [#|2022-04-06T07:02:47.885+0800|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=24

Azure cosmos Db Criteria query with subdocuments - java spring boot

I'm new to azure cosmos db. i'm trying to read items from container in my spring boot application. i'm using cosmos template with criteria. lets say i have a do

Spring Boot/Spring Batch: Using and configuring two DataSource via app properties

I'm working with Spring Boot/Spring Batch, and need to provide two jdbc Data Sources. I can't find a way to automatically load the config parameters from my app

How can i calculate working days off in java

Im trying to calculate the working days off with some required like: In a month will work on 2 Saturdays . If this week work on Saturdays . The next week won't