I worked with the project in earlier versions and Java 8 in the past. Having switched to the current 5.1 branch of the Graylog2 server project and Java 17, I cannot compile anymore. Is Java 17 the correct java Version?
Maven throws the following errors:
~/project/graylog-project-repos/graylog2-server$ mvn compile
[ERROR] Error executing Maven.
[ERROR] java.lang.IllegalStateException: Unable to load cache item
[ERROR] Caused by: Unable to load cache item
[ERROR] Caused by: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper
[ERROR] Caused by: Exception com.google.inject.internal.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 @2d127a61 [in thread "main"]
I worked with the project in earlier versions and Java 8 in the past. Having switched to the current 5.1 branch of the Graylog2 server project and Java 17, I cannot compile anymore. Is Java 17 the correct java Version?
Maven throws the following errors:
Some more info on my dev environment: