5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17

5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17

5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17
5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17
2024-10-17 11:07:08 - last edited 3 weeks ago
Hardware Version:
Firmware Version: 5.14.32.2

When using OpenJDK 17 and enabling the RADIUS server (Settings > Server Settings > Enable "Built-in RADIUS"), it fails to generate the certificates.  Here's the main error:


Caused by: java.lang.IllegalAccessError: class com.tplink.smb.omada.system.api.util.X509CertificateUtils (in unnamed module @0x313ac989) cannot access class sun.security.x509.X500Name (in module java.base) because module java.base does not export sun.security.x509 to unnamed module @0x313ac989

 

Here is the full text of the error in a gist: https://gist.github.com/mbentley/7542c16bb8cb8c359c1a1bd4de844790#file-error1-txt

 

This can be worked around by adding: --add-opens=java.base/sun.security.x509=ALL-UNNAMED

 

But then there is another error:

 

Caused by: java.lang.IllegalAccessError: class com.tplink.smb.omada.system.api.util.X509CertificateUtils (in unnamed module @0x313ac989) cannot access class sun.security.util.ObjectIdentifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x313ac989

 

And the full text for this one: https://gist.github.com/mbentley/7542c16bb8cb8c359c1a1bd4de844790#file-error2-txt

 

This can be worked around by adding: --add-opens java.base/sun.security.util=ALL-UNNAMED

 

It would be great if these could be properly updated to not need these additional parameters.

  0      
  0      
#1
Options
1 Accepted Solution
Re:5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17-Solution
2024-10-21 03:24:43 - last edited 3 weeks ago

Hi  @mbentley 

 

We are aware of this issue and it will be fixed in Controller 5.15.20.

Currently, please use OpenJDK 8 as a temporary solution.

Thanks for your udnerstanding.

Recommended Solution
  0  
  0  
#3
Options
2 Reply
Re:5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17
2024-10-18 08:44:31

Hi  @mbentley 

Hello, thank you for posting on the TP-Link community, and we certainly appreciate your sharing about this issue. I have forwarded it to the relevant team, and they are working on it. Feel free to let us know of any additional information you may have.

  0  
  0  
#2
Options
Re:5.14.32.2 - Can't Enable RADIUS Server with OpenJDK 17-Solution
2024-10-21 03:24:43 - last edited 3 weeks ago

Hi  @mbentley 

 

We are aware of this issue and it will be fixed in Controller 5.15.20.

Currently, please use OpenJDK 8 as a temporary solution.

Thanks for your udnerstanding.

Recommended Solution
  0  
  0  
#3
Options