Questions tagged [openjdk-17]
63 questions
0
votes
1 answer
Truststore system property value not taking into effect with micronaut, openjdk 17 - 'Inaccessible trust store'
I want to use custom truststore with open jdk 17 and micronaut.
I want to access link similar to - https://gitlab.com/api/v4/feature_flags/unleash/42
I have added certificate belonging to the host to custom truststore.
I tried to setup custom…
0
votes
1 answer
Upgrade openssl to resolve DSA-5139-1 for Docker openjdk:17.0-jdk-slim-bullseye
I am using the Debian JDK image in my docker file which introduced a security vulnaribilty DSA-5139-1 [https://snyk.io/test/docker/openjdk%3A17.0-jdk-slim-bullseye]
This is my docker file -
FROM openjdk:17-jdk-slim-bullseye
RUN apt-get update \
…

Saurabh
- 2,384
- 6
- 37
- 52
0
votes
0 answers
Tomcat 10 : [Ljava.lang.Object; and [Ljava.security.cert.Certificate; are in module java.base of loader 'bootstrap')
So we are migrating from jdk8 to jdk17 (openJDK) and from Tomcat8 to Tomcat 10.0.20 and when running the code we get following error:
class [Ljava.lang.Object; cannot be cast to class [Ljava.security.cert.Certificate; ([Ljava.lang.Object; and…

user1391606
- 91
- 1
- 2
- 8
0
votes
1 answer
Netbeans profiler not working with JDK 17
When I try to run the profiler on my web app, netbeans tells me I need to run a calibration first. So I go to Tools > Options > Java > Profiler > General > Manage Calibration Data and do the calibration.
Starting profiling afterwards I see following…

codyLine
- 509
- 2
- 8
- 26
0
votes
0 answers
Need Spring Framwork version as per Compatiblility Matrix
Can anyone suggest a compatible Spring Framework version that can work for Spring Boot 2.x + OpenJDK 17 + IBM Webspehere 8.5.5.9
0
votes
1 answer
Setting log level for java.lang.System.Logger on cmdline
Is there a way to set the logging level for the java.lang.System.Logger on the command line? Using properties files baked into the JAR is a no-go, since I want to have the same JAR in staging and production environments with the difference that the…

eof
- 413
- 4
- 14
0
votes
0 answers
What is the difference between jdk8 and jdk17 in StringTable?
when I run this program in jdk8 and jdk17, the result is different.
public class StringIntern {
public static void main(String[] args) {
String s = new String("1");
s.intern();
String s2 = "1";
…

Jueheng Xie
- 21
- 2
0
votes
0 answers
Switch case on class with JDK17
I try to get a switch case by class working using JDK17 Preview.
sealed class A permits X,Y{}
final class X extends A{}
final class Y extends A{}
public static List switchByClass(Class clazz) {
return…

syr
- 836
- 1
- 12
- 28
0
votes
2 answers
JDK 17 ERR_SSL_PROTOCOL_ERROR with Chrome and Selenium
When I ran Selenium tests using selenium/standalone-chrome:97.0 I am getting the following error with JDK 17.
org.openqa.selenium.WebDriverException: unknown error: net::ERR_SSL_PROTOCOL_ERROR
I am accessing the web app with a hostname (not…

hetptis
- 786
- 1
- 12
- 23
0
votes
0 answers
Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M1:verify (default)
Problem :
I updated my JDK JAVA 17 from Java 11.
But I encounter some problem when I want to build my spring project
Here my error when I do maven install :
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] Failed to execute goal…

MasterSinge
- 665
- 3
- 9
- 22
0
votes
1 answer
Why NumberFormat working different for openjdk@11 and openjdk@17?
There is sample code (below).
Result of execution is different for jdk@11 and jdk@17.
Looks like white characters are different after formatting BigDecimal(1000) to String.
Finally result looks the same - BUT, it is not the same String (compare…

THM
- 579
- 6
- 25
0
votes
1 answer
IllegalAccessError on jdk-17 in a project using repast
currently I am working on a java project that uses the repast java library (repast.jar, colt.jar and trove.jar). The project works fine with jdk-11, but currently, I am trying to migrate to jdk-17 and I am not able to run the project because of the…

alexcornejo
- 163
- 1
- 12
0
votes
0 answers
Spring Boot fails to start up: Could not generate CGLIB subclass of class BasicErrorController
I'm upgrading our Spring-Boot application (2.5.6) to use Java 17 and we are going from amazoncorretto:11-al2-jdk to amazoncorretto:17-al2-jdk which uses a distribution of OpenJDK 17.
After bumping our Docker base image to amazoncorretto:17-al2-jdk…

Hans-Christian
- 542
- 4
- 6
0
votes
1 answer
Error running a Java 8 batch with a jdk17
I'm trying to run a java 8 batch with a jdk17, the project is built with a jre1.8.0_192 and I put the following options in the VM:
--add-modules=ALL-SYSTEM --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED…

osefmaster
- 3
- 1
0
votes
1 answer
Update IntelliJ default Gradle version
When starting a new project I get the message unsupported JDK. Using Gradle 7.1. I want to update that default Gradle to 7.3-rc-1.
However, I just can't seem to find where to do this outside of a specific project. I am not sure where IntelliJ…

mar fo
- 33
- 6