1,915,568 questions
-1
votes
0
answers
33
views
JAVA_HOME is set, but Java command is still not recognized
import 'package:flutter/material.dart';
import 'package:flutter_revisao_2bi_ads5sn/cliente_lista_screen.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const ...
Best practices
0
votes
0
replies
37
views
What is the Best Practice for Counting Processed Items to Print out a Summary
Hello I would like to know how to best Count Processed Items to Print out a Summary.
I find it quite Complicated because Rolledbacked and Skipped Items should not be Counted. Only successful ones. I ...
-1
votes
0
answers
49
views
I have a problem with accesing objects from another method, and i have a method that takes things out of a list, but it ruins other part of my code [closed]
this is where everything is innitlized
public TheRpgGame() {
random = new Random();
//this will initilize everything
Character Warrior = new Character(CharacterComponent....
0
votes
0
answers
35
views
Can't connect to Browserstack - java.net.MalformedURLException: no protocol: appearing randomly after some time
I'm having issue in my automation tests project that started appearing recently. I cloned my repository from GitHub, built my project so all tests go through and when i wanted to fix some of the tests ...
2
votes
1
answer
73
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
6
replies
58
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
1
answer
132
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
84
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
6
replies
98
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
82
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
58
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
1
vote
1
replies
61
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
126
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
74
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
106
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 ...