1,914,590 questions
Score of 0
2 answers
28 views
spring-boot-maven-plugin:start starts multiples instances of my application as wished, but stop only ends one
I have a Spring Boot application that I customize through external properties files.
During Maven's pre-integration-test, I launch three instances of it, through org.springframework.boot:spring-boot-...
Score of 2
0 answers
52 views
How do you fix Eclipse Metadata breaking when swapping between OS with a git repo?
I'm running Eclipse IDE for Java 2023-06 with the DevStyle plugin installed.
I have a github repo that has the workspace inside it (I'm not using the DevStyle git repo option)
My setup is:
...
Score of -3
0 answers
125 views
How does Java's HttpClient work with with physical and virtual threads? [closed]
How does thread allocation, synchronization and data exchange go when calling HttpClient's send(...) and sendAsync(...) methods from physical and virtual threads? When does HttpClient use threads ...
Score of 0
1 answer
70 views
keySystem in libgdx like Granny
I am an indie game developer currently working on a horror game similar to Granny. I am trying to implement a key-finding system where a key is randomly placed inside one of several drawers when the ...
Score of 3
0 answers
94 views
Size behavior after maximizing and restoring original screen size
I am trying to create a JavaFX node. The node appears to work well, but I noticed that maximizing the stage causes it to grow large and then return to its correct size. This also happens when I click ...
Score of 4
0 answers
110 views
Weird javafx behaviour on linux system with touch display
after a lot of try and error (and a lot of AI-research) I just have to give up and ask here for help. I have a new developing setting (new laptop) and I'll give many details about my setting, because ...
Score of 0
0 answers
89 views
Google Business Profile Performance API returns 0 for Maps impressions while GBP dashboard shows non-zero values [closed]
We use the Google Business Profile Performance API to retrieve daily performance metrics for many unrelated clients and locations.
Recently, we started seeing an unexpected issue with the Maps ...
Score of -1
0 answers
200 views
Pass input from a component A to component B without adding B to A
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JFrame;
import javax.swing.JPanel;
import ...
Score of -4
0 answers
79 views
How to Implement OAuth 2.0 for Service-to-Service Communication in Spring Boot Microservices? [closed]
I have a Spring Boot microservices project where service-to-service communication is currently secured using a client-id and client-secret generated by an authentication service.
The problem is that ...
Score of 1
0 answers
90 views
Spring Boot 4.1.1 Micrometer tracing context is not propagated via gRPC
I use Spring Boot 4.1.1 with OTEL org.springframework.boot:spring-boot-starter-opentelemetry and gRPC org.springframework.boot:spring-boot-starter-grpc-client/server starters. In my project two ...
Score of -1
3 answers
247 views
What is a good design for custom extensions to a Java class? [closed]
I maintain a Java library and want to add a facility for user-defined extensions to a class, so that users of that class can attach extensions of their choice to any instance of that class. The ...
Score of 5
3 answers
135 views
Does @NullMarked package imply non-nullablity on a field level?
I have difficulties in understanding the semantics of JSpecify and its annotations.
Assuming I have package-info.java that contains:
@NullMarked package my.pkg
import org.jspecify.annotations....
Score of -6
0 answers
117 views
How to multiplex virtual threads on fixed number of platform threads? [duplicate]
Executors.newVirtualThreadPerTaskExecutor is using default scheduler and it multiplexes on platform thread of default size as 256 thread (jdk.virtualThreadScheduler.maxPoolSize).
I have a multi-tenant ...
Score of -1
0 answers
79 views
VSAM KSDS paginated HTTP reads fail with ClosedChannelException at high offsets — z/OS Liberty buffers entire response before sending first byte [closed]
We are reading a 2M+ record VSAM KSDS dataset from a Java Spark job via a custom REST API running on IBM z/OS Liberty. The Java client paginates using &offset=N&limit=5000. The job processes ...
Score of 2
2 answers
170 views
Is it possible to make a component of a FlowLayout take up all available space?
I'm trying to create a JPanel that uses a WrapLayout - which extends FlowLayout - to flexibly lay out its children and create a new row when needed. I have a JTextPanel at the end that creates a new ...