Project

General

Profile

Actions

Bug #20289

closed

Can't use rudder with openjdk17: cannot access class sun.net.util.IPAddressUtil

Added by François ARMAND over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

It seems that the visibility of some util classes changed in open jdk17, and when we try to compile rudder with it, we get an error:

[2021-11-22T17:00:43.647Z] java.util.concurrent.ExecutionException: Boxed Exception

[2021-11-22T17:00:43.647Z] Caused by: java.lang.IllegalAccessError: class com.normation.rudder.services.servers.AllowedNetwork$ (in unnamed module @0x6c50245e) cannot access class sun.net.util.IPAddressUtil (in module java.base) because module java.base does not export sun.net.util to unnamed module @0x6c50245e

[2021-11-22T17:00:43.647Z]     at com.normation.rudder.services.servers.AllowedNetwork$.isValid(PolicyServerData.scala:88)

I'm setting target = 6.2, but depending on the reach of the change, we may need to correct it only in 7.0. This does not seem like a showstopper since java 11 works well with rudder and is an LTS that should outlive rudder 6.2 support.

Actions

Also available in: Atom PDF