1,917,050 questions
Advice
1
vote
2
replies
62
views
Oracle pl sql and Java
Iâm a PL/SQL developer with strong Oracle experience, interviewing for a role in a Java-based team. Theyâre happy with my database skills but want me to learn few Java skills before the next round.
...
0
votes
1
answer
34
views
Viewpager2 (Horizontal and vertikal) doesn't refresh the view when calling notifyDataSetChanged()
Helo,
I have a Horizontal Aadapter for a ViewPager:
public class HorizontalAdapter extends FragmentStateAdapter { ... }
Inside the HorizontalAdapter I have creating 3 VerticalContainerFragments, ...
2
votes
0
answers
78
views
Parallel Spring Batch jobs mixing up data
I am trying to run a separate instance of a Spring Batch job for every file, up to 20 at a time. For some reason, the job is being launched with the same parameters multiple times (same filename + ...
3
votes
1
answer
81
views
Why does going back and foward with audio clips just stop them working?
So I am trying to make an audio player just because I want to understand stacks and GUIs in java better, I was expecting when a audio file was chosen it should have played which it did before but it ...
Best practices
0
votes
0
replies
29
views
How to filter Keycloak users by custom attribute date range for an automated email reminder?
Problem: I need to implement a scheduler that sends an email verification reminder to Keycloak users 30 days after their initial registration (if they haven't verified their email yet).
My ...
Best practices
0
votes
4
replies
74
views
Is it good design to use dynamic cast?
I am trying to implement password manager on Java right now. I am implementing the vault. I have VaultEntry and VaultFolder classes. VaultEntry has fields id, parentId, name, username, email, password ...
1
vote
1
answer
48
views
Apache Camel Spring Boot Application native executable exception
I would like to explore a simple Apache Camel Spring Boot demo application that moves files from a directory to another running in a native image.
While jvm build runs fine (mvn spring-boot:run), ...
Best practices
0
votes
3
replies
69
views
Spring Boot Testcontainer Static or not?
I want to know what is the best practice for defining Testcontainers in Spring Boot.
I saw different Versions on how to define them.
@TestConfiguration(proxyBeanMethods = false)
class ...
3
votes
2
answers
91
views
How to call a Spring @Service method before static initialization (before Spring context is fully loaded)?
I have a Spring application where I need to initialize a nodeId very early during application startup.
The problem is:
nodeId is used inside static blocks of some classes.
One of those classes is ...
-3
votes
1
answer
80
views
javax.swing does not exist [closed]
I'm doing a java OOP assignment and ran across a syntax error that shows JOptionPane does not exist on the import statement. How to fix that?
-3
votes
0
answers
45
views
How to use Sony Camera Remote SDK in Android? [duplicate]
I am working on an Android project using the latest Sony camera remote SDK to control Sony camera, but I don't know how to use it and cannot find an example using Java in Android Studio. Any one can ...
1
vote
1
answer
55
views
Using Hamcrest `closeTo` with a float
I have a unit test where I am trying to do
assertThat(foo, hasProperty("bar", hasProperty("qua", is(closeTo(17.0f, 1e-5)))));
That is, I have foo and want to verify that foo....
5
votes
0
answers
93
views
DateTimeFormatter handling Sep / Sept short months [duplicate]
In CLDR v38, the en_GB abbreviation for September was changed from "Sep" to "Sept".
This has meant that since Java 16, in Locale.UK, the short name is now "Sept".
This is ...
0
votes
0
answers
22
views
Recreate Jakarta Web Service Using Eclipse and CXF
I am using Eclipse 2023 and CXF 4.1.4 to recreate a Jakarta web service from a java interface and impl class.
My service endpoint interface looks like this:
@WebService(name="ValidateMe", ...
Advice
2
votes
8
replies
176
views
How can I determine whether a GitHub repository is suitable for first-time contributors?
I am a CS student with experience in C, C++ and basic Java.
When looking for open source projects on GitHub, I see labels like "good first issue", but I am unsure how to determine whether a ...