1,340 questions
0
votes
1
answer
125
views
Java 17 Upgrade: Cannot find symbol error with Lombok `@FieldNameConstants` and MapStruct
After upgrading from Java 11 to Java 17, I'm encountering compilation errors related to Lombok's @FieldNameConstants annotation. I'm also using MapStruct, so I'm mentioning that in case that could be ...
0
votes
0
answers
73
views
Lombok Getter Setter not generated. Any annotation is not working
I am upgrading my application from Java 8 to Java 17 and Spring boot to 3.2.4. I am facing issues while upgrading lombok dependency. I have upgraded lombok to the following
dependencies {
...
3
votes
0
answers
96
views
How can I best fix this JComboBox bug on macOS that wasn't fixed until Java 20?
Rendering a JComboBox after calling setEditable(true) on macOS looks bad. I really like 99.9% of AquaLookAndFeel so I won't be switching to MetalLookAndFeel. Making the app require Java 20 is not ...
0
votes
0
answers
43
views
Oracle SQL Developer Open/Save Files Issue (Version 24.3)
Latest version of Oracle SQL Developer (24.3) has a problem opening and saving Worksheet files that contain the hash (#) character.
The ‘open file’ dialog strips off any part of the filename after a ...
0
votes
0
answers
173
views
Issue upgrading Struts from 2.5.33 to 6.4.0 on Tomcat 9 / JDK 17
I upgraded Struts from 2.5.33 to 6.4.0.
Locally, the application runs fine after the upgrade, but when I deploy to a higher environment, I get the following error on shutdown:
4-Aug-2025 08:12:08.196 ...
2
votes
1
answer
129
views
Openjdk Java 17 JMX without authentication still looking for password file
I cannot figure out how to start java with JMX without authentication. It still fails because it cannot find password file:
> java -Dcom.sun.management.jmxremote.port=7091 ‑Dcom.sun.management....
1
vote
1
answer
42
views
Updating xml and saving it removes namespace prefix of the root element and all nodes
I am loading a xml and updating some value and then again saving the back.
In this scenario the namespace prefix of the root element and all nodes is getting omitted.
I am working with Java version: ...
0
votes
0
answers
37
views
Moving from Java 11 to Java 17, issues with weld-junit5: NoClassDefFound javax/enterprise/inject/spi/BeanManager [duplicate]
I am trying to move an app from Java 11 to 17. Maven compile goes fine, but if I try to run tests I get a lot of "NoClassDefFound javax/enterprise/inject/spi/BeanManager" errors. I excluded ...
0
votes
1
answer
136
views
Math operations in stream foreach and updating the existing value object
BigDecimal rate = BigDecimal.ZERO;
BigDecimal fixedCost = BigDecimal.ZERO;
int SCALE = 16;
fees. stream.forEach(fee -> {
switch (fee.FeeRateCode) {
case POINT -> rate =rate.add(fee....
1
vote
1
answer
129
views
Problem with weaving trying to use Spring 6.2.7, EclipseLink 4.0.6, Wildfly 36.0.1 and JDK 17.0.2
I am trying to deploy an ear application that uses Spring Framework 6.2.7 (not Spring Boot) and EclipseLink 4.0.6 inside a Wildly 36 application server configured to use OpenJDK 17.0.2. The problem ...
0
votes
1
answer
71
views
Mitigating a libsoup vulnerability in a Java 17 app
I have a Java 17 app that I am trying to mitigate CVE vulnerabilities for.
Most of them have been pretty straightforward. Typically it's just a matter of inserting a dependency in the pom.xml file ...
0
votes
0
answers
21
views
Few groovy tests are failing with the error - org.springframework.web.servlet.NoHandlerFoundException: No endpoint POST
I recently migrated to Java 17 and Spring 6.1x version. Few of the endpoints in my application have the URL as "/test/PL/".
The groovy tests for the above endpoint fails with the error as
...
2
votes
2
answers
324
views
After updating the openjdk@17 from 17.0.13 to 17.0.15 . my flutter doctor and android studio related stuff can`t read new JAVA_HOME path
i Have updated the openjdk patch but after that my JAVA_HOME PATH is correct but then also flutter doctor is using old path. HOW to resolve it. i am completly new to development . please help guys
-- ...
0
votes
0
answers
101
views
Thread issue while sending records to kafka using completable future
@Async("kafkaTaskExecutor")
@Override
@Retryable(value = {Exception.class}, maxAttemptsExpression = "${kafka.save.failure.retry.maxAttempts}",
backoff = @Backoff(...
1
vote
1
answer
207
views
Log4j.properties file not working on Linux with Java-17
I'm using the Apache Log4j log4j2.properties file for my JAVA application. When I run my Java App on Windows it logs to console and file.
But when I run in on my Amazon Linux 2023 (AL23) server I'm ...
0
votes
0
answers
259
views
maven-surefire-plugin with version 3.5.3 shutdown hook is not triggered
Using JDK:
openjdk 17.0.14 2025-01-21
Apache Maven 3.8.8
maven surfire plugin
org.apache.maven.plugins maven-surefire-plugin 3.5.3
I registered a shutdownhook: Runtime.getRuntime().addShutdownHook(...
1
vote
1
answer
187
views
Apache Camel 4 : direct-vm removed
In Camel 4, they removed the camel-directvm module even though it was different from the camel-direct module because the first is used for multiple CamelContexts, unlike camel-direct, which is used ...
0
votes
0
answers
36
views
Recompiling Java code results in AspectJ binding error
I have acquired a Spring Boot application from my predecessor last September. A few months ago, one colleague found out that the last code checked in by my predecessor is not representing the last ...
0
votes
0
answers
39
views
ORACLE how to find the transactions from the DBA tables
From the DBA_AUDIT_TRAIL table we found that some process is running every second, connecting to DB and does some transactions. What i see in DBA_AUDIT_TRAIL table, ACTION_NAME column as "LOGON ...
1
vote
1
answer
63
views
No qualifying bean of type 'com.mycom.idp.common.servlet.IdpSecurityAdapter' available, after spring boot upgrade from 3.3.10 to 3.4.3
At the time of running JUnits, below error appears
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.mycom.idp.common.servlet....
0
votes
0
answers
42
views
Java 17 - ClassNotFoundException - java/sql/SQLException velocity template .vm file
I have been facing below issue during the ANT build of my older project with JAVA 17.
The build.xml is created using .vm(Velocity Template file).
Error:
[exec] Error: java.lang.NoClassDefFoundError: ...
0
votes
0
answers
44
views
what is the alternate option for --add-opens for opening java internal packages in runtime
Have recently migrated my application from java8 to java17 and my code uses pdxserialisation which is default one to be used for gemfire cache. Am getting java.lang.string.value inaccessible exception ...
0
votes
0
answers
109
views
Unable to install libjemalloc2 with amazoncorreto image
I am trying to migrate from openjdk-17 to amazoncorreto java 17 but stuck with 3 libs which I am not able to figure out. Currently I am using below base image(which extends from debian 11 and has apt-...
0
votes
1
answer
327
views
How do I set repository and file threshold when migrating to Apache Commons Fileupload 2.x?
I am upgrading an old Java 11 project to work with Java 17.
The old version used javax.servlet.* and I am thus upgrading this to jakarta.servlet.*
The problem I cannot find the solution to regards the ...
1
vote
0
answers
40
views
My android studio have problem with jdk version
I have installed jdk 17 when i added firebase and then run my app on mobile it gives error again and again that it can't execute the java home jdk 11 which i dont have o already added my environmental ...