1,916,989 questions
0
votes
0
answers
36
views
Query 4 Firebase Realtime DB nodes asynchronously and then transform the data in Android Java app
Here is my dilemma, I need to query ALL 4 nodes in Firebase Realtime DB in an Android Java app (I have this working fine in iOS):
PlayerInGroup
Users
PlayerPicks
Teams
I start by getting the ...
-1
votes
0
answers
78
views
How do I call Java code from C in a plugin and avoid random fails [closed]
Then my plugin, written in C, is loaded it makes an initial call to JNI_CreateJavaVM(). It seems to fail completely at random. Running it one time might fail but the next time it might succeed. It ...
Advice
0
votes
2
replies
64
views
Is it considered an anti-pattern to use nested static classes for service commands and responses?
I am structuring the command and response models for my service layer. Currently, putting all models into a single, flat folder (like /commands or /responses) is becoming hard to manage due to the ...
Advice
0
votes
4
replies
47
views
Any product to show ROI on code refactoring or improvements
We have a very large java code base and we are looking for some tools which show technical debt and also shows return of investment in terms of time and money on resolving those issues. Please suggest....
-4
votes
0
answers
51
views
ClamAV returns "OK" for EICAR-embedded image files — not detecting virus signature appended to PNG/JPG or injected into metadata [closed]
I have a Spring Boot application that scans uploaded image files using ClamAV before storing them. The scan is performed by streaming the file bytes to the ClamAV daemon using the INSTREAM command via ...
0
votes
1
answer
37
views
Spring Boot 3: MDC and SecurityContext propagation failing when using Virtual Threads (Executor)
I am migrating a Spring Boot 3.x application to use Java Virtual Threads. I have replaced my standard async executor with a virtual thread executor:
@Bean
public Executor taskExecutor() {
return ...
Best practices
0
votes
6
replies
84
views
IS there better way to do this?
I am splitting a Java program into multiple questions for a programming assignment. The goal of the program is to read a message from the user and return only the capital letters in that message. If ...
1
vote
1
answer
25
views
Files stored with s3AsyncClient from Netty HttpClient publisher are corrupted
I'm trying to forward file from http download to s3AsyncClient.
Its important for it to be asynchronous, and close to zero copy, so i used netty HttpClient and S3AsyncClient and I pass file through ...
Tooling
0
votes
1
replies
53
views
Controller connection to Java
I'm making a java program to controller a RC Car and a want to control it with a wireless xbox controller.
I've tried JInput, but without hot-pluging I don't want to use it.
I've seen people recommend ...
Advice
0
votes
1
replies
237
views
Do you support The Imagine project?
The Imagine project is looking for partners to promote The Second World Digital Strike on Feb 24 2027
We need 51% of humanity to join 2nd strike then wars stop
We need 51% of humanity to join 2nd ...
0
votes
2
answers
39
views
Java Spark mapPartitions retry causing duplicate inserts into BigQuery on task failure
I have a dataproc java Spark job that processes a dataset in partitions and inserts rows into batches.
The code uses rdd.mapPartitions with an iterator, splitting rows into batches (e.g., 100 rows ...
1
vote
0
answers
57
views
How to change the user that registers CUPS as a job requester from the Java Print API?
I'm using the Java printing API [1] to print to a printer using CUPS.
We are using Java 8 for Java client and CUPS 2.2.6.
The Java process is on the same server as the CUPS daemon where all printers ...
Advice
0
votes
18
replies
197
views
What is an Interface in Java?
i am currently lost.
I am learning Java at school and we have a Project in which a group needs to explain a certain thing in Java. Mine is Interfaces.
I am trying to research on what exactly ...
Advice
0
votes
1
replies
49
views
Unable to click 'Apply' and 'Interested' buttons on Nokri.com job pages; chatbot overlay not visible after clicking button
I am automating job applications on Naukri.com using Selenium WebDriver in Java.
My code successfully navigates to the job page and opens the job details, but I am unable to click on the 'Apply' or '...
5
votes
1
answer
128
views
Error with symbol not found: "Method onConstructor_()"
Consider:
@AllArgsConstructor(onConstructor_ = @Autowired)
I used this @AllArgsConstructor Lombok annotation in my class repository during Spring Boot work.
cannot find symbol
symbol: method ...