Category "java"

Unable to create a ConnectionFactory Error with H2 and R2DBC in Spring Boot with WebFlux

I've created a Java Spring Boot service using the WebFlux reactive module, H2 in-memory database, and R2DBC reactive driver. When I run the service, it fails wi

Leaked GCP API Keys Your app contains exposed Google Cloud Platform (GCP) API keys. Please see this Google Help Center article for details

enter image description here I have used API_KEY="my_api_key" in gradle.properties file and added buildConfigField("String", "API_KEY", API_KEY) to app/gradle f

JS Function won't generate necessary buttons

I am currently making a budget version of UNO using Java and JavaScript and I am running all of it on a GlassFish Server. I made a function to generate the star

How to move a module from a project to its own separate project in intelliJ or git?

I have a gradle project with a structure like this: project2 -submod1 -submod2 -submod3 -submod4 I want to move submod2 to its own gradle project with its

Alternative for File.createTempFile?

I don't want the extra number after file name when it is created using createTempFile. But I believe it is not possible to remove them. (How to change default n

How to design a Spring REST server with a parallel business logic function

I'm currently building server software in Java. I already have a running backend, which is build with Spring Boot. It has an REST interface to read and write da

Problem to read data from HBase on AWS EMR cluster using Java Spring boot client

I'm trying to write a simple API application to read data from HBase on an AWS EMR cluster. But I get an UnknownHostException when I try to send the reques

How to remove foreign key without deleting the whole entity

I am new to Spring boot and I want to be able to delete the value of a forgein key if its entity is removed without deleting the whole entity linked to it; I ex

Deploy Jar with external properties file spring boot

I have a problem with external properties file used by jar file generated by spring boot I have created the project below : The model object : package jms.model

How to handle 2 OUT user-defined custom data types from Java Spring Data JPA @NamedStoredProcedureQuery defined on @Entity class?

UPDATE: I have tried implementing the SQLData interface for my Financial.class and PersonalInfo.class Java POJOs defined on my @NamedStoredProcedureQuery for th

How to check spring boot post API if it is available in the database

**Controller** package com.example.curd.curdtesting.controller; import com.example.curd.curdtesting.entity.Book; import com.example.curd.curdtesting.service.Bo

Win SSPI Negotiate auth when running a service and client both locally

At my job I faced an issue while running a WebService locally and doing authentication into it also locally. WebService uses Waffle with SSPI through JNA and ex

When i click on multiple buttons, multiple audios start playing at the same time in android studio

When i click on multiple images of recyclerview then multiple audios start playing without stopping the previous one. It is getting irritating. I hope someone c

Check if one List<String> contains specific string from another list

I have a List<String> emails containing emails, and another List<String> keywords for containing keywords. For each i-th value from keywords, there

Modifying JSONObject in java , getting exception of ConcurrentModificationException

I have to modify each value for key inside JSONObject and I'm using recursion to iterate over JSONObject because it can be nested. But I'm getting exception in

Can't access the OpenStreetMap to get coordinates for address

I'm trying to retrieve coordinates for a given address using an API I found for OpenStreetMap The API is as follows: package com.sges.commons.utils.coordenada;

After update to spring boot 2.6.3 from 2.5.X hibernate does not work in some query syntax

someone could help me to solve this bug? i have update spring boot from 2.5.x to 2.6.3 and now the query like: @Query("select count(s.subjectId) from PreChe

Java OutOfMemoryError Exception

I'm confused on what OutOfMemoryError really is. The question I have asks what the OutOfMemory exception signifies: The process ran out of heap space Process ra

Project loom: Why are virtual threads not the default?

According to the project loom documentation virtual threads behave like normal threads while having almost zero cost and the ability to turn blocking calls into

RecyclerView editText text change show another field in android

I have recyclerView where i have added a editText. But when I type text to one edittext, text shows another edittext too. Here is the image.. Above image, I ty