You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2023/03/22 23:03:00 UTC

[jira] [Created] (HDDS-8250) Recon crashes on startup with JDK 17: Remove sun.misc.Unsafe or work around it

Siyao Meng created HDDS-8250:
--------------------------------

             Summary: Recon crashes on startup with JDK 17: Remove sun.misc.Unsafe or work around it
                 Key: HDDS-8250
                 URL: https://issues.apache.org/jira/browse/HDDS-8250
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: Ozone Recon
            Reporter: Siyao Meng


Instantly reproducible with {{./compose/ozone}} docker-compose.yml with JDK 17 image (follow HDDS-8247):

{code}
2023-03-22 16:00:35 ************************************************************/
2023-03-22 16:00:35 2023-03-22 23:00:35,102 [main] INFO recon.ReconServer: registered UNIX signal handlers for [TERM, HUP, INT]
2023-03-22 16:00:35 Exception in thread "main" java.lang.ExceptionInInitializerError
2023-03-22 16:00:35     at com.google.inject.internal.cglib.reflect.$FastClassEmitter.<init>(FastClassEmitter.java:67)
2023-03-22 16:00:35     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72)
2023-03-22 16:00:35     at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
2023-03-22 16:00:35     at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216)
2023-03-22 16:00:35     at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64)
2023-03-22 16:00:35     at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:204)
2023-03-22 16:00:35     at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.<init>(ProviderMethod.java:256)
2023-03-22 16:00:35     at com.google.inject.internal.ProviderMethod.create(ProviderMethod.java:71)
2023-03-22 16:00:35     at com.google.inject.internal.ProviderMethodsModule.createProviderMethod(ProviderMethodsModule.java:275)
2023-03-22 16:00:35     at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:144)
2023-03-22 16:00:35     at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:123)
2023-03-22 16:00:35     at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
2023-03-22 16:00:35     at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:349)
2023-03-22 16:00:35     at com.google.inject.AbstractModule.install(AbstractModule.java:122)
2023-03-22 16:00:35     at org.apache.hadoop.ozone.recon.ReconControllerModule.configure(ReconControllerModule.java:106)
2023-03-22 16:00:35     at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
2023-03-22 16:00:35     at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
2023-03-22 16:00:35     at com.google.inject.spi.Elements.getElements(Elements.java:110)
2023-03-22 16:00:35     at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
2023-03-22 16:00:35     at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
2023-03-22 16:00:35     at com.google.inject.Guice.createInjector(Guice.java:96)
2023-03-22 16:00:35     at com.google.inject.Guice.createInjector(Guice.java:73)
2023-03-22 16:00:35     at com.google.inject.Guice.createInjector(Guice.java:62)
2023-03-22 16:00:35     at org.apache.hadoop.ozone.recon.ReconServer.call(ReconServer.java:100)
2023-03-22 16:00:35     at org.apache.hadoop.ozone.recon.ReconServer.call(ReconServer.java:65)
2023-03-22 16:00:35     at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
2023-03-22 16:00:35     at picocli.CommandLine.access$1300(CommandLine.java:145)
2023-03-22 16:00:35     at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
2023-03-22 16:00:35     at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
2023-03-22 16:00:35     at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
2023-03-22 16:00:35     at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
2023-03-22 16:00:35     at picocli.CommandLine.execute(CommandLine.java:2078)
2023-03-22 16:00:35     at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:100)
2023-03-22 16:00:35     at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:91)
2023-03-22 16:00:35     at org.apache.hadoop.ozone.recon.ReconServer.main(ReconServer.java:87)
2023-03-22 16:00:35 Caused by: 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 @6e20b53a
2023-03-22 16:00:35     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
2023-03-22 16:00:35     at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
2023-03-22 16:00:35     at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
2023-03-22 16:00:35     at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
2023-03-22 16:00:35     at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
2023-03-22 16:00:35     at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
2023-03-22 16:00:35     at com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46)
2023-03-22 16:00:35     ... 35 more
2023-03-22 16:00:35 2023-03-22 23:00:35,365 [shutdown-hook-0] INFO recon.ReconServer: SHUTDOWN_MSG: 
2023-03-22 16:00:35 /************************************************************
2023-03-22 16:00:35 SHUTDOWN_MSG: Shutting down ReconServer at db96dd3198fc/172.22.0.4
2023-03-22 16:00:35 ************************************************************/
{code}

Might have something to do with the dependency injection library? Try bumping up Guice.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org