[BUILD-460] Update libraries for Java 16 Created: 30/Apr/21  Updated: 20/May/21  Resolved: 03/May/21

Status: Closed
Project: Build
Component/s: BOM
Affects Version/s: BOM 6.2.8
Fix Version/s: BOM 6.2.9

Type: Task Priority: Neutral
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MAGNOLIA-8104 Verify and add Java 16 to certified s... Closed
duplicate
is duplicated by BUILD-461 Upgrade lombok version due to incompa... Closed
relation
is related to MAGNOLIA-8097 DOC: Add Java 16 to 6.2 certified sta... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes

 Description   

That's all I needed for a basic CE setup at least, there might be more for DX Core. I didn't face the same Guice issue, but mostly the two stack traces below. In my case it was easy to trace back to byte-buddy.

--- AT STARTUP
2021-04-29 15:54:06,630 ERROR info.magnolia.event.SimpleEventBus                : Exception caught when dispatching info.magnolia.module.PopulateModulesEvent with info.magnolia.config.module.ModuleConfigurationRegistry$$Lambda$267/0x000000080126e8b0 eventHandler.
java.lang.IllegalArgumentException: Could not create type
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:154) ~[byte-buddy-1.10.8.jar:?]
        ...
Caused by: java.lang.UnsupportedOperationException: Cannot define class using reflection: Unsupported class file major version 60
	at net.bytebuddy.dynamic.loading.ClassInjector$UsingReflection$Dispatcher$Initializable$Unavailable.defineClass(ClassInjector.java:409) ~[byte-buddy-1.10.8.jar:?]

--- AT LOGIN
2021-04-29 15:54:17,623 ERROR info.magnolia.cms.filters.ServletDispatchingFilter: Unable to load servlet class info.magnolia.admincentral.AdmincentralServlet : Failed to initialise UI IoC infrastructure
javax.servlet.ServletException: Failed to initialise UI IoC infrastructure
	at info.magnolia.admincentral.AdmincentralServlet.servletInitialized(AdmincentralServlet.java:101) ~[magnolia-admincentral-6.2.8-SNAPSHOT.jar:?]
        ...
Caused by: java.lang.IllegalArgumentException: Could not create type
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:154) ~[byte-buddy-1.10.8.jar:?]
	...
Caused by: java.lang.UnsupportedOperationException: Cannot define class using reflection: Unsupported class file major version 60
	at net.bytebuddy.dynamic.loading.ClassInjector$UsingReflection$Dispatcher$Initializable$Unavailable.defineClass(ClassInjector.java:409) ~[byte-buddy-1.10.8.jar:?]

Generated at Sun Feb 11 23:42:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.