[MAGNOLIA-9226] cglib-nodep-3.3.30 Java 17 Compatibilty issue Created: 11/Dec/23  Updated: 14/Dec/23  Resolved: 14/Dec/23

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Rodolfo Perez III Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AWS java --version :
openjdk 17.0.9 2023-10-17 LTS
OpenJDK Runtime Environment Corretto-17.0.9.8.1 (build 17.0.9+8-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.9.8.1 (build 17.0.9+8-LTS, mixed mode, sharing)

Magnolia version: 6.2.40


Issue Links:
duplicate
duplicates ABTEST-555 cglib-nodep-3.3.30 Java 17 Compatibil... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Steps to reproduce

  1. Upgrade to Java 17 version and deploy into the environment. 
  2. Open JCR Tools / Definitions/ Security.
    • Note: Other apps may be affected that our shakeout test did not cover.

Logs

Exception net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @6487785 [in thread "http-nio-8080-exec-9"] 

Screenshot

GIF

Expected results

Open any apps without any issues and log errors.

Actual results

JCR tools can't be opened. An error is being return by Magnolia.

Workaround

Add JVM options as suggested in https://github.com/cglib/cglib/issues/191


Generated at Mon Feb 12 04:39:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.