305 questions
0 votes
0 answers
39 views
Update from TomEE 9 to TomEE 10 - massive performance descrease in faces web application
We recently migrated our PrimeFaces 13 application from TomEE9 to TomEE10 and found a massive decrease in performance (Factor 2 or more). Our Environment: Primefaces 13.0.8, ojdbc11:21 , Oracle 19c ...
2 votes
1 answer
98 views
"Deadlock" caused by virtual threads in JDK21
public class Test { private static final Object lock = new Object(); public static void main(String[] args) { try (var executor = Executors.newVirtualThreadPerTaskExecutor()) { ...
1 vote
1 answer
64 views
RequestDispatcher forward(request,response) works in Tomcat 10 but not in Tomcat 11
I'm in the process of doing a technology upgrade for a Spring mvc app. I'm currently using Java 21, Spring 6, and Thymeleaf 3. I've tested the application thoroughly, running it on Tomcat 10. The app ...
8 votes
2 answers
3k views
Why is openjdk:21 now missing from Docker Hub? [duplicate]
Apparently the OpenJDK distribution for Java 21 is missing from Docker Hub. What happened? I'm certain OpenJDK 21 images existed in these paths before, as I've checked other successful deployments I ...
0 votes
1 answer
87 views
Change default success URL in Spring Security using Vaadin 24
Has anyone been able to change the default success URL after login in Vaadin 24, where we are supposed to handle the filter as follows: public SecurityFilterChain securityFilterChain(@NonNull ...
8 votes
2 answers
568 views
Why does the Java collator for the Hungarian locale mix E and É?
I want to order a huge list of countries, and I have noticed that, for example, E and É are treated as equals. But in the Hungarian grammar, E comes before É, so a rule should be added, 'E < É'. ...
0 votes
0 answers
55 views
Eclipse error: "Could not find or load main class example.MainClass" [duplicate]
Here’s my setup: Eclipse IDE for Java Developers (latest version) JDK / JRE version: JavaSE-21 (from Eclipse’s internal JRE) Project location: D:\Dự án\CF TDLT\Javanew\src\example\MainClass.java Clean ...
3 votes
1 answer
187 views
ExecutorService configuration with virtual threads
In a service I have 2 executorServices for different tasks: get user transactions (50-100 threads, queue 300) get user family (10-50 threads, queue 100) It was easy to monitoring threads and adding ...
1 vote
0 answers
74 views
Do not load parent controller if child controller exists
I use Spring Boot 3.3.4 and Java 21. I have several Spring Boot web application that use the same common library : App1 App2 App3 Common In this common library, I have a @RestController used to ...
0 votes
1 answer
128 views
entrySet vs sequencedEntrySet
I want to know the difference between entrySet and sequencedEntrySet methods in LinkedHashMap in Java 21+. I am not sure why we have sequencedEntrySet since LinkedHashMap guarantees the insertion ...
0 votes
1 answer
83 views
setting a different account for quarkus.flyway from the datasource results in NullPointerException for Oracle database
Our application needs to connect with an Oracle database. We want to do this with 2 accounts ACCOUNT_1 --> has privileges to do create table statements etc for flyway ACCOUNT_2 --> executes the ...
1 vote
1 answer
79 views
When running java against a jar java2d is not being found? [duplicate]
I am using client host commands from powershell to launch a Oracle forms FSAL via the following command: java -jar "fsal jar location" -url "url" This command works except there ...
0 votes
0 answers
73 views
Maven project / build running on Java 21 fails with frontend-maven-plugin:1.13.1 and Node.js 22.*, but works with Node 16
I have a Maven project that uses Java 21 and the frontend-maven-plugin version 1.13.1 to run Node.js 22.x When I run the Maven build especially npm install the build fails with errors (see error ...
4 votes
1 answer
189 views
Fail on generating the querydsl metamodel with java 21 and querydsl 5.1.0 with a @MappedSuperclass that have a validation annotation
You can download this sample here I use this stack: java 21 (OpenJDK Runtime Environment build 21.0.8+9) maven 3.9.10 jakarta-persistence 3.1.0 jakarta-annotation 2.1.1 querydsl.version 5.1.0 (...
0 votes
1 answer
244 views
Jenkins controller throwing HTTP 500 Error after upgrading Java to 21
I am currently on Jenkins version 2.504.3. I tried upgrading my Jenkins JDK from 17 to 21 on my Jenkins controller. I am using Open JDK and my Jenkins runs on Ubuntu server. I encountered the ...