1,915,260 questions
Tooling
0
votes
0
replies
11
views
How should I extract a CSV data from Java Mission Control?
JMC Threads I'm using Java Mission Control to analyze a JFR recording.
The workload is intentionally oversubscribed (16:1 thread-to-core ratio) because I'm analyzing thread scheduling and contention ...
Score of -5
1 answer
34 views
How can I implement failover between multiple LLM API providers for retryable HTTP errors? [closed]
I am building a backend service that calls LLM APIs through HTTP.
Currently, the service calls one provider directly. I want to add a fallback provider when the first provider returns a retryable ...
Score of -11
1 answer
69 views
How can I switch between multiple AI model API providers automatically when one provider fails? [closed]
I am building an AI application that needs to call multiple LLM APIs, such as GPT, Claude, Gemini, and Codex-compatible models.
Currently, my backend calls one provider directly. This works most of ...
Score of -1
0 answers
60 views
How can I make developers override one of the two methods of an interface?
I'm making a library in Kotlin, but with Java-Kotlin interoperability. The interface I have has a method that takes a lambda function. It is overloaded with one getting Kotlin's lambda and one ...
Advice
0
votes
1
replies
32
views
How do I structure a multi-tenant dashboard with an AI chatbot integrated per workspace?
I’m building a SaaS platform called Alcora where users can either hire freelancers or manage their own workspaces. Right now I’m working on the dashboard side of things, and I want to add an AI ...
Advice
0
votes
1
replies
26
views
How to pass additional metadata with default Jakarta/Hibernate validations
When using constraint validator it returns what violation happened, which contains a violation
descriptor (which is usually a java.lang.Annotation) which failed the test. In my custom annotations I ...
Score of 0
0 answers
70 views
R8 removes GeneralFunctions initialization in release build uploaded to Google Play Console (works in Android Studio & Bundle tool)
I'm maintaining a legacy Android taxi application (Java) that was originally built from an old third-party template. The app crashes immediately on launch, only when the signed release AAB is uploaded ...
Score of 0
0 answers
51 views
Adding window failed caused by: java.lang.RuntimeException: bad array lengths
I encountered a system_app_crash issue, and the relevant logs are as follows:
TraceBegin:
java.lang.RuntimeException: Adding window failed
at android.view.ViewRootImpl.setView(ViewRootImpl.java:...
Score of -1
0 answers
47 views
How to configure wildfly:dev to hot-reload static files only, without redeploying on Java changes?
I am using the wildfly-maven-plugin(5.1.5.Final) and running my application with the wildfly:dev goal.
I want to leverage the hot-reloading feature, but only for static files (like HTML, CSS, and JS). ...
Score of 1
0 answers
71 views
Optimizing batch data ingestion for high-throughput IoT in GridDB Cloud (Python/Java Native Client)
I'm wrestling with a pretty common IoT problem here, but specifically with GridDB Cloud. I've got a ton of time-series sensor data coming in – we're talking thousands of data points per second – and I ...
Tooling
0
votes
1
replies
50
views
Best approach for dynamically controlling Excel inputs via API or automation (dropdown vs fixed value)
I’m building a small automation solution for a freelance client where Excel is being used as the front end for data entry.
The idea is that one field in the sheet should behave differently depending ...
Score of 1
0 answers
71 views
If multiple attributes have the same name within an embedded class hierarchy, only one is mapped by Hibernate
Given the hierarchy above, only one x, one y, and one z will be mapped. Is there a way to configure Hibernate (6.6.54) to handle this case correctly? I have tried various mapping strategies, but ...
Advice
0
votes
1
replies
71
views
How to make ANTLR ignore unwanted tokens in the parse tree?
When parsing my grammar file, ANTLR seems to be reluctant to correct its course by ignoring tokens. For example, ? if true { is valid syntax, which is parsed into a definition with an expression true ...
Score of -1
0 answers
77 views
How to clear Redis ClientSideCaching/FrontendCache
I have some wrapper over CacheFrontend to make client-side caching in my app.
I have the config class where I create my client-side cache:
@Configuration
public class RedisConfiguration {
private ...
Best practices
1
vote
7
replies
147
views
Unit test separation
I have a test method for a utility class I made. Here's the test method
@Test
void interpolateTest() {
String input = "Hi, I am {} and it is {}℃ out";
...