1,915,563 questions
2
votes
1
answer
43
views
Trouble deploying executable jar with external dependencies using maven
I'm trying to deploy my project, but I'm having trouble with (I believe) including the external library.
Here's my pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=&...
Advice
0
votes
2
replies
32
views
How to pack JAR and native libraries (*.so) into a single JAR that can be safely referenced in the CLASSPATH?
I have two JAR files, which, unfortunately, cannot be merged together with jar xf since there are packages' collision. Also, I have two native *.so libraries.
For the third-party software I ran, I ...
0
votes
0
answers
105
views
How to implement atomic IO in your own DBMS?
I'm developing my own DBMS (database management system) to get a deep understanding on how this works. My programming language is Java.
I have a concept on how to implement locking as well as write-...
-2
votes
0
answers
73
views
How to solve communicating between controllers in javafx? [duplicate]
Hello I have a problem learning how to communicate between controllers in javafx.
The things is that I have two (A,B) controllers who are communicating between themselves through a Main controller. I ...
Advice
0
votes
5
replies
77
views
Advice regarding professional steps
Entry level developer in here. Just finished a FULL-STACK BOOTCAMP, covering Java, SQL and the frontend stack (including React). Any recommendations for the next step?
1
vote
1
answer
63
views
How to force aggregator to be executed after interval when there is no exchanges from a source
I would like to create an aggregator that will count number of files from a source (e.g. sftp server) and sent them to a metric tool. When there are files, it should send 0 as a result.
I came up with ...
1
vote
1
answer
54
views
Hibernate merge fails with UnsupportedOperationException when entity collection is replaced with Java 21 immutable List
Background
Spring Boot: 4.0.2
Hibernate: 7.2.1.Final
Spring Data JPA: 4.0.2
Java: 21
PostgreSQL
I have a ServiceItem entity with a @OneToMany collection:
@OneToMany(mappedBy = "serviceItem&...
Advice
0
votes
0
replies
49
views
How to signal load balancer readiness based on connection pool exhaustion in Spring Boot with virtual threads
Problem
Before virtual threads, Tomcat's bounded thread pool acted as implicit backpressure. Under overload, /health would slow down and time out, causing the load balancer to stop routing traffic to ...
1
vote
1
answer
120
views
Java Spring Boot app not reading env vars after upgrade [duplicate]
I've recently upgraded my Springboot version (3.x -> 4.x) which seems to have broken how my application is deployed.
I'm connecting to MongoDB, relying on Spring magic to auto setup DB connection ...
0
votes
1
answer
73
views
Hibernate multi-tenancy: sequences for id generation got mixed up
it seems to me Hibernate is mixing up cached id values from sequences from separated tenants. I could not find the problem/reproduce it but it happens in production that the next value from the ...
1
vote
0
answers
99
views
How to make .publishOn(boundedElastic()) conditionally
I have simple reactive chain:
callUpstream() //returned Mono
.publishOn(boundedElastic())
.doOnNext(this::sendJmsBlocking) //this operation is blocking and must be executed on worker thread from ...
-2
votes
1
answer
173
views
Why does my approach for "Maximum Subarray Sum After at Most K Swaps" fail on some test cases? [closed]
I am solving the following problem:
Maximum Subarray Sum After at Most K Swaps - Leetcode #3962
You are given an integer array nums and an integer k.
You are allowed to perform at most k swap ...
Best practices
0
votes
1
replies
71
views
Is there a way to give Device Owner Permission in app without running it in Kiosk Mode?
I am currently developing an enterprise-level Android application and need to implement a robust, seamless app-update mechanism. Specifically, my application requires the ability to perform version ...
1
vote
0
answers
71
views
Why does OncePerRequestFilter execute on permitAll() endpoints even when added via addFilterBefore in a SecurityFilterChain?
I have a Spring Security configuration with a SecurityFilterChain that uses authorizeHttpRequests to permit certain endpoints like /user/register without authentication. However I also have a custom ...
-1
votes
1
answer
172
views
Why does this concurrent cache implementation sometimes return stale or partially initialized values even with double-checked locking? [closed]
I’m working on a high-throughput backend service where we maintain an in-memory cache of computed expensive results. The cache must be lazily initialized and safe under heavy concurrency.
To avoid re ...