Category "java"

Gremlin Java client throws a java.util.concurrent.TimeoutException

We have a AWS Neptune db.r4.large instance which with 2vCPUs can run 4 threads and hence 4 queries maximum at a time. We use the Gremlin Java client to connect

How to compile OpenJDK 11 on an M1 Macbook?

I want to compile the OpenJDK 11 for an M1 MacBook. First, I tried to use the Zulu JDK, but I did not find out a way to compile it. Then, I tried to try compile

Get the callable parm function name in Java

I want to know if is possible to get the name of the class and function (or at least the function) in the callMyFunc method below. I need to print something lik

JSP Image Upload to Database

Below I have a code that should accept a user's uploaded image in the form of an input element and push it to a MySQL Database. I am using Tomcat 9. Why is it n

How to scroll down intro element view with selenium+javascript

Im just new in javascript. I used to work with selenium+java. Now I want to perform scroll using JavaScriptExecutor. How do I make it in javascript code instead

Tomcat 10 throws error while uploading files jsp

I am using the example provided by @BalusC in the question. But I am getting an exception java.lang.IllegalStateException: Unable to process parts as no multi-p

Firebase read and onClick handler Error in reading the Firebase value: pricecode

Please tell me specifically how to fix the function so that when the button is clicked (onclick handler) passes the value from the database to the firebase USER

Jolt transform JSON array keep rest of the fields

How to keep other fields in the Jolt transform JSON array, I am trying to use wildcard but fields are not added in the final output? Here is the example input I

Service info.mqtt.android.service.MqttService has > leaked IntentReceiver

I keep having this error log when ever i toggle off a switch in my app. E/ActivityThread: Service info.mqtt.android.service.MqttService has leaked IntentReceiv

Spring Boot with common Authentication

I am trying to set up authentication server for spring boot application. I have multiple microservices application. Let say hospitals, patients, reports applica

What is the best way to do async side effect in Reactor?

Let's assume I have a main chain with some processing and I want to call billing service on each item processed and then return the results of the processing fu

log4j JsonTemplateLayout doesn't work when jar file built by shadowJar

I use shadowJar I use log4j2 and I need to log everything in json format. But once I add 'org.apache.logging.log4j:log4j-layout-template-json:2.17.1' into build

Plugin [id: 'org.jetbrains.intellij', version: '1.1.2'] was not found in any of the following sources

When i try to create a Gradle project in Intellij IDEA, with JAVA & Intellij Platform Plugin as options, i am getting following error as shown below. Build

How to exclude a null value computed in JsonValue from JSON serialized by Jackson?

class Wrapper(private val value: String?) { @JsonValue fun asValue(): String? { return value } } val mapper = ObjectMapper()

Dagger-Hilt Did you forget to apply the Gradle Plugin? But I applied the plugin

Hello I'm trying to use the Dagger Hilt library In my project but when I'm trying to build it, it fails with this message public final class MyApplication exten

How do I add environment variables in IntelliJ Spring Boot project

I Am trying to add an environmental variable inside my spring-boot application.properties file. I know how to add it normally on a non spring-boot project, but

Unable to persist Spring data mongodb using save on repository

I am using Spring Data Mongodb and Embeded mongoDB to persist the data. Pom.xml <dependency> <groupId>org.springframework.boot</group

Adding Java home not working on windows ZSH

I have java installed and set up properly and works fine with the normal Windows Powershell. However, I'm trying to make java work with the ZSH terminal and I c

Make R2DBC use the same connection for all interactions with the database in a @Transactional method (Java, Sprint)

Motivation I have a service which I want to make @Transactional. My service is storing complex data in multiple tables, there is a referential integrity between

I am going to use log4j version 2.3.2 . is it safe for me? [closed]

I want to use log4j library for my web app that is created with Java 6. Which version is safe for me ? Do you recommend log4j or log4j2 consid