1,915,470 questions
Advice
0
votes
1
replies
21
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
17
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
49 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
46 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 0
0 answers
53 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
48
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
68 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
70
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
145
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";
...
Score of -1
1 answer
182 views
Java generics parameters multiple levels
I'm trying to extend MutableLiveData in multiple classes, each one extends the previous, like (those following rows could be copy/pasted directly in java file to test/lint them):
class ALiveData<T&...
Score of 0
1 answer
116 views
Spring thinks that my post processor doesn't implement the right interface if load time weaving is enabled and I use a factory method to create it
I've tried to create a minimal example of the problem. It took me many hours of debugging to understand the issue well enough to even attempt this. Hopefully, I got it right. We need three files:
...
Score of 1
1 answer
69 views
How to customize the pager prompt for JLine's Less builtin?
Is there a method to customize what is displayed as the pager prompt printed by JLine's Less builtin?
Examining the source code for JLine's Less, I can find no support for the -P option (which is what ...
Score of 0
0 answers
74 views
Ignoring binary data in Hibernate JDBC logging
I am using Hibernate 6.5.x, and I am currently logging the SQLs an the JDBC binding parameters using the following configuration from the Hibernate logging guide by Thorben Jannsen
org.hibernate.SQL=...