1,916,306 questions
0
votes
0
answers
7
views
Sonar Gradle task fails with No such property: SNAKE_CASE for class: com.fasterxml.jackson.databind.PropertyNamingStrategy
I am running my project in vela and during the sonar task it is failing with No such property: SNAKE_CASE for class: com.fasterxml.jackson.databind.PropertyNamingStrategy
No where in the code base are ...
1
vote
1
answer
11
views
java.lang.NoClassDefFoundError: com/mongodb/client/MongoClients
I've been making a minecraft papermc plugin and I ran into an issue trying to add MongoDB to my project using Gradle. I followed the "Getting Started" steps with Java Sync, but I kept ...
Tooling
0
votes
2
replies
25
views
Free virtual try-on API for a mobile app (student project)?
I’m working on an Android (Java) mobile app for a school project, and I’m trying to integrate a virtual try-on feature (clothes fitting on user images).
I’ve explored a few options on platforms like ...
1
vote
0
answers
50
views
Metamodel generator loses generic type parameter for Set<String> in Hibernate 7
In Hibernate 6, a field annotated with @Column @NotNull private Set<String> issueTypeLabels mapped to a Postgres VARCHAR ARRAY column generated:
public static volatile SingularAttribute<...
0
votes
1
answer
53
views
Problem with searchable combo box in Java Swing
I have made a searchable combo box for use in a Java Swing program.
Here is how I would like it to work:
When clicked, it opens up the options list and enables typing in the box to let the user ...
Advice
0
votes
4
replies
118
views
How do I get this Java Applet game with multiple .jar and HTML files to run?
I want to play this obscure Java-based game from 2000, one that was graciously provided by the Internet Archive (https://archive.org/details/diamond-mine-java).
The contents of the game's files look ...
0
votes
1
answer
50
views
How to propagate Correlation ID from ThreadLocal to Kafka Headers in a Spring Boot 3 distributed system?
I am implementing an observability layer in a Spring Boot 3.2.0 ecosystem to ensure distributed tracing across multiple microservices.
I have a ContextInterceptor that captures a correlation-id from ...
1
vote
1
answer
63
views
Hibernate is not using custom implementation of PhysicalNamingStrategy
In my unit test I want to use my custom implementation of PhysicalNamingStrategy:
public class CustomPhysicalNamingStrategyStandardImpl implements PhysicalNamingStrategy {
@Override
public ...
-1
votes
0
answers
35
views
how to detect the aop time when using arthas trace command
I am using arthas https://github.com/alibaba/arthas to tracing the function time, this is the command look like:
trace com.baomidou.mybatisplus.core.mapper.BaseMapper selectOne -n 5 --skipJDKMethod ...
0
votes
2
answers
59
views
Cannot set initial app window size in javafx
I'm not able to set the initial window size. The app always displays 200x200.
public class tcase extends Application
{
@Override
public void start(Stage primaryStage)
{...
Advice
1
vote
2
replies
117
views
In 2026, is MERN stack still a good choice for getting a software job, or should I switch to Java Spring Boot?
I am currently a 3rd-year Computer Engineering student from a tier-3 college in India. I know basic Java, DSA, and I have started learning web development.
I am confused about career direction because ...
-1
votes
0
answers
61
views
Flyway is not creating the tables when the application starts
I configured my spring application to interact with flyway for a data migration but flyway seems not to be working. My application.properties file is in the resources package
spring.application.name=...
Advice
0
votes
3
replies
129
views
How to measure the memory cost of lambdas in Java 25?
If I run Java 25 JShell with Java Object Layout library (JOL) without any JVM settings and measure the memory cost in bytes of a Predicate<String> I see the following:
$ jshell --class-path ~/....
1
vote
2
answers
148
views
Virtual Threads does not Stop after Application Shutdown in Spring Boot
I use:
@Configuration
public class AsyncConfig {
@Bean(name = "virtualExecutor")
public ExecutorService newExecutor() {
return Executors.newThreadPerTaskExecutor(
...
2
votes
2
answers
114
views
how Spring creates an object using the reflection if the class has only one arg constructor
I am new with Spring still learning it and I see a post that when I use @Autowired in a class but this post not specified where the annotation is Spring use reflection to create the bean and then ...